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
46f1330e
Commit
46f1330e
authored
Jan 24, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Only use functions if they are implemented.
parent
3272fef9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
source.c
dlls/msi/tests/source.c
+18
-4
No files found.
dlls/msi/tests/source.c
View file @
46f1330e
...
@@ -41,9 +41,17 @@ static void init_functionpointers(void)
...
@@ -41,9 +41,17 @@ static void init_functionpointers(void)
HMODULE
hmsi
=
GetModuleHandleA
(
"msi.dll"
);
HMODULE
hmsi
=
GetModuleHandleA
(
"msi.dll"
);
HMODULE
hadvapi32
=
GetModuleHandleA
(
"advapi32.dll"
);
HMODULE
hadvapi32
=
GetModuleHandleA
(
"advapi32.dll"
);
pMsiSourceListGetInfoA
=
(
void
*
)
GetProcAddress
(
hmsi
,
"MsiSourceListGetInfoA"
);
#define GET_PROC(dll, func) \
pMsiSourceListAddSourceExA
=
(
void
*
)
GetProcAddress
(
hmsi
,
"MsiSourceListAddSourceExA"
);
p ## func = (void *)GetProcAddress(dll, #func); \
pConvertSidToStringSidA
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"ConvertSidToStringSidA"
);
if(!p ## func) \
trace("GetProcAddress(%s) failed\n", #func);
GET_PROC
(
hmsi
,
MsiSourceListAddSourceExA
)
GET_PROC
(
hmsi
,
MsiSourceListGetInfoA
)
GET_PROC
(
hadvapi32
,
ConvertSidToStringSidA
)
#undef GET_PROC
}
}
/* copied from dlls/msi/registry.c */
/* copied from dlls/msi/registry.c */
...
@@ -125,6 +133,12 @@ static void test_MsiSourceListGetInfo(void)
...
@@ -125,6 +133,12 @@ static void test_MsiSourceListGetInfo(void)
HKEY
userkey
,
hkey
;
HKEY
userkey
,
hkey
;
DWORD
size
;
DWORD
size
;
if
(
!
pMsiSourceListGetInfoA
)
{
skip
(
"Skipping MsiSourceListGetInfoA tests
\n
"
);
return
;
}
create_test_guid
(
prodcode
,
prod_squashed
);
create_test_guid
(
prodcode
,
prod_squashed
);
get_user_sid
(
&
usersid
);
get_user_sid
(
&
usersid
);
...
@@ -348,7 +362,7 @@ static void test_MsiSourceListAddSourceEx(void)
...
@@ -348,7 +362,7 @@ static void test_MsiSourceListAddSourceEx(void)
if
(
!
pMsiSourceListAddSourceExA
)
if
(
!
pMsiSourceListAddSourceExA
)
{
{
skip
(
"Skipping MsiSourceListAddSourceEx tests
\n
"
);
skip
(
"Skipping MsiSourceListAddSourceEx
A
tests
\n
"
);
return
;
return
;
}
}
...
...
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