Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c0cc85f7
Commit
c0cc85f7
authored
Jul 31, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Use GetModuleHandleA instead of LoadLibraryA.
parent
b90c6e27
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
18 deletions
+4
-18
devinst.c
dlls/setupapi/tests/devinst.c
+1
-6
parser.c
dlls/setupapi/tests/parser.c
+1
-3
query.c
dlls/setupapi/tests/query.c
+1
-4
stringtable.c
dlls/setupapi/tests/stringtable.c
+1
-5
No files found.
dlls/setupapi/tests/devinst.c
View file @
c0cc85f7
...
...
@@ -39,14 +39,11 @@ static HKEY (WINAPI *pSetupDiOpenClassRegKeyExA)(GUID*,REGSAM,DWORD,PCSTR,PV
static
void
init_function_pointers
(
void
)
{
hSetupAPI
=
LoadLibrary
A
(
"setupapi.dll"
);
hSetupAPI
=
GetModuleHandle
A
(
"setupapi.dll"
);
if
(
hSetupAPI
)
{
pSetupDiCreateDeviceInfoListExW
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupDiCreateDeviceInfoListExW"
);
pSetupDiDestroyDeviceInfoList
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupDiDestroyDeviceInfoList"
);
pSetupDiOpenClassRegKeyExA
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupDiOpenClassRegKeyExA"
);
}
}
static
void
test_SetupDiCreateDeviceInfoListEx
(
void
)
...
...
@@ -129,8 +126,6 @@ static void test_SetupDiOpenClassRegKeyExA(void)
START_TEST
(
devinst
)
{
init_function_pointers
();
if
(
!
hSetupAPI
)
return
;
if
(
pSetupDiCreateDeviceInfoListExW
&&
pSetupDiDestroyDeviceInfoList
)
test_SetupDiCreateDeviceInfoListEx
();
...
...
dlls/setupapi/tests/parser.c
View file @
c0cc85f7
...
...
@@ -36,9 +36,7 @@ static LPCWSTR (WINAPI *pSetupGetField)(PINFCONTEXT,DWORD);
static
void
init_function_pointers
(
void
)
{
hSetupAPI
=
LoadLibraryA
(
"setupapi.dll"
);
if
(
!
hSetupAPI
)
return
;
hSetupAPI
=
GetModuleHandleA
(
"setupapi.dll"
);
pSetupGetField
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"pSetupGetField"
);
}
...
...
dlls/setupapi/tests/query.c
View file @
c0cc85f7
...
...
@@ -38,10 +38,8 @@ CHAR WIN_DIR[MAX_PATH];
static
void
init_function_pointers
(
void
)
{
hSetupAPI
=
LoadLibrary
A
(
"setupapi.dll"
);
hSetupAPI
=
GetModuleHandle
A
(
"setupapi.dll"
);
if
(
hSetupAPI
)
{
pSetupCloseInfFile
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupCloseInfFile"
);
pSetupGetInfInformationA
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupGetInfInformationA"
);
pSetupOpenInfFileA
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupOpenInfFileA"
);
...
...
@@ -49,7 +47,6 @@ static void init_function_pointers(void)
pSetupGetSourceFileLocationA
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupGetSourceFileLocationA"
);
pSetupGetSourceInfoA
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupGetSourceInfoA"
);
pSetupGetTargetPathA
=
(
void
*
)
GetProcAddress
(
hSetupAPI
,
"SetupGetTargetPathA"
);
}
}
static
void
get_directories
(
void
)
...
...
dlls/setupapi/tests/stringtable.c
View file @
c0cc85f7
...
...
@@ -59,9 +59,7 @@ HANDLE table, table2; /* Handles pointing to our tables */
static
void
load_it_up
(
void
)
{
hdll
=
LoadLibraryA
(
"setupapi.dll"
);
if
(
!
hdll
)
return
;
hdll
=
GetModuleHandleA
(
"setupapi.dll"
);
pStringTableInitialize
=
(
void
*
)
GetProcAddress
(
hdll
,
"StringTableInitialize"
);
if
(
!
pStringTableInitialize
)
...
...
@@ -192,6 +190,4 @@ START_TEST(stringtable)
/* assume we can always distroy */
pStringTableDestroy
(
table
);
pStringTableDestroy
(
table2
);
FreeLibrary
(
hdll
);
}
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