Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d1a3bad7
Commit
d1a3bad7
authored
Mar 09, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack/tests: Free the library after use.
parent
675ed5a9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
advpack.c
dlls/advpack/tests/advpack.c
+4
-1
files.c
dlls/advpack/tests/files.c
+2
-0
install.c
dlls/advpack/tests/install.c
+4
-1
No files found.
dlls/advpack/tests/advpack.c
View file @
d1a3bad7
...
...
@@ -35,6 +35,7 @@
#define REG_VAL_EXISTS(key, value) !RegQueryValueEx(key, value, NULL, NULL, NULL, NULL)
#define OPEN_GUID_KEY() !RegOpenKey(HKEY_LOCAL_MACHINE, GUID_KEY, &guid)
static
HMODULE
hAdvPack
;
static
HRESULT
(
WINAPI
*
pCloseINFEngine
)(
HINF
);
static
HRESULT
(
WINAPI
*
pDelNode
)(
LPCSTR
,
DWORD
);
static
HRESULT
(
WINAPI
*
pGetVersionFromFile
)(
LPCSTR
,
LPDWORD
,
LPDWORD
,
BOOL
);
...
...
@@ -66,7 +67,7 @@ static void get_progfiles_dir(void)
static
BOOL
init_function_pointers
(
void
)
{
HMODULE
hAdvPack
=
LoadLibraryA
(
"advpack.dll"
);
hAdvPack
=
LoadLibraryA
(
"advpack.dll"
);
if
(
!
hAdvPack
)
return
FALSE
;
...
...
@@ -594,4 +595,6 @@ START_TEST(advpack)
setperusersecvalues_test
();
translateinfstring_test
();
translateinfstringex_test
();
FreeLibrary
(
hAdvPack
);
}
dlls/advpack/tests/files.c
View file @
d1a3bad7
...
...
@@ -560,4 +560,6 @@ START_TEST(files)
test_AdvInstallFile
();
delete_test_files
();
FreeLibrary
(
hAdvPack
);
}
dlls/advpack/tests/install.c
View file @
d1a3bad7
...
...
@@ -23,6 +23,7 @@
#include <advpub.h>
#include "wine/test.h"
static
HMODULE
hAdvPack
;
/* function pointers */
static
HRESULT
(
WINAPI
*
pRunSetupCommand
)(
HWND
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
LPCSTR
,
HANDLE
*
,
DWORD
,
LPVOID
);
static
HRESULT
(
WINAPI
*
pLaunchINFSection
)(
HWND
,
HINSTANCE
,
LPSTR
,
INT
);
...
...
@@ -32,7 +33,7 @@ static char CURR_DIR[MAX_PATH];
static
BOOL
init_function_pointers
(
void
)
{
HMODULE
hAdvPack
=
LoadLibraryA
(
"advpack.dll"
);
hAdvPack
=
LoadLibraryA
(
"advpack.dll"
);
if
(
!
hAdvPack
)
return
FALSE
;
...
...
@@ -273,4 +274,6 @@ START_TEST(install)
test_RunSetupCommand
();
test_LaunchINFSection
();
test_LaunchINFSectionEx
();
FreeLibrary
(
hAdvPack
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment