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
0839ae88
Commit
0839ae88
authored
Nov 04, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: MsiSetExternalUIRecord not present before Installer 3.1.
parent
e1b2eb34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
install.c
dlls/msi/tests/install.c
+15
-6
No files found.
dlls/msi/tests/install.c
View file @
0839ae88
...
...
@@ -35,6 +35,8 @@
static
UINT
(
WINAPI
*
pMsiQueryComponentStateA
)
(
LPCSTR
,
LPCSTR
,
MSIINSTALLCONTEXT
,
LPCSTR
,
INSTALLSTATE
*
);
static
UINT
(
WINAPI
*
pMsiSetExternalUIRecord
)
(
INSTALLUI_HANDLER_RECORD
,
DWORD
,
LPVOID
,
PINSTALLUI_HANDLER_RECORD
);
static
UINT
(
WINAPI
*
pMsiSourceListEnumSourcesA
)
(
LPCSTR
,
LPCSTR
,
MSIINSTALLCONTEXT
,
DWORD
,
DWORD
,
LPSTR
,
LPDWORD
);
static
UINT
(
WINAPI
*
pMsiSourceListGetInfoA
)
...
...
@@ -1684,6 +1686,7 @@ static void init_functionpointers(void)
trace("GetProcAddress(%s) failed\n", #func);
GET_PROC
(
hmsi
,
MsiQueryComponentStateA
);
GET_PROC
(
hmsi
,
MsiSetExternalUIRecord
);
GET_PROC
(
hmsi
,
MsiSourceListEnumSourcesA
);
GET_PROC
(
hmsi
,
MsiSourceListGetInfoA
);
...
...
@@ -6888,12 +6891,18 @@ static void test_MsiSetExternalUI(void)
ret_a
=
MsiSetExternalUIA
(
NULL
,
0
,
NULL
);
ok
(
ret_a
==
handler_a
,
"expected %p, got %p
\n
"
,
handler_a
,
ret_a
);
error
=
MsiSetExternalUIRecord
(
handler_record
,
INSTALLLOGMODE_ERROR
,
NULL
,
&
prev
);
/* Not present before Installer 3.1 */
if
(
!
pMsiSetExternalUIRecord
)
{
win_skip
(
"MsiSetExternalUIRecord is not available
\n
"
);
return
;
}
error
=
pMsiSetExternalUIRecord
(
handler_record
,
INSTALLLOGMODE_ERROR
,
NULL
,
&
prev
);
ok
(
!
error
,
"MsiSetExternalUIRecord failed %u
\n
"
,
error
);
ok
(
prev
==
NULL
,
"expected NULL, got %p
\n
"
,
prev
);
prev
=
(
INSTALLUI_HANDLER_RECORD
)
0xdeadbeef
;
error
=
MsiSetExternalUIRecord
(
NULL
,
INSTALLLOGMODE_ERROR
,
NULL
,
&
prev
);
error
=
p
MsiSetExternalUIRecord
(
NULL
,
INSTALLLOGMODE_ERROR
,
NULL
,
&
prev
);
ok
(
!
error
,
"MsiSetExternalUIRecord failed %u
\n
"
,
error
);
ok
(
prev
==
handler_record
,
"expected %p, got %p
\n
"
,
handler_record
,
prev
);
...
...
@@ -6910,7 +6919,7 @@ static void test_MsiSetExternalUI(void)
ok
(
ret_w
==
NULL
,
"expected NULL, got %p
\n
"
,
ret_w
);
prev
=
(
INSTALLUI_HANDLER_RECORD
)
0xdeadbeef
;
error
=
MsiSetExternalUIRecord
(
handler_record
,
INSTALLLOGMODE_ERROR
,
NULL
,
&
prev
);
error
=
p
MsiSetExternalUIRecord
(
handler_record
,
INSTALLLOGMODE_ERROR
,
NULL
,
&
prev
);
ok
(
!
error
,
"MsiSetExternalUIRecord failed %u
\n
"
,
error
);
ok
(
prev
==
NULL
,
"expected NULL, got %p
\n
"
,
prev
);
...
...
@@ -6921,14 +6930,14 @@ static void test_MsiSetExternalUI(void)
ok
(
ret_w
==
NULL
,
"expected NULL, got %p
\n
"
,
ret_w
);
prev
=
(
INSTALLUI_HANDLER_RECORD
)
0xdeadbeef
;
error
=
MsiSetExternalUIRecord
(
NULL
,
0
,
NULL
,
&
prev
);
error
=
p
MsiSetExternalUIRecord
(
NULL
,
0
,
NULL
,
&
prev
);
ok
(
!
error
,
"MsiSetExternalUIRecord failed %u
\n
"
,
error
);
ok
(
prev
==
handler_record
,
"expected %p, got %p
\n
"
,
handler_record
,
prev
);
error
=
MsiSetExternalUIRecord
(
handler_record
,
INSTALLLOGMODE_ERROR
,
NULL
,
NULL
);
error
=
p
MsiSetExternalUIRecord
(
handler_record
,
INSTALLLOGMODE_ERROR
,
NULL
,
NULL
);
ok
(
!
error
,
"MsiSetExternalUIRecord failed %u
\n
"
,
error
);
error
=
MsiSetExternalUIRecord
(
NULL
,
0
,
NULL
,
NULL
);
error
=
p
MsiSetExternalUIRecord
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
!
error
,
"MsiSetExternalUIRecord failed %u
\n
"
,
error
);
}
...
...
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