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
a31e9a1b
Commit
a31e9a1b
authored
May 04, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Run tests again with older msi versions (MsiApplyMultiplePatchesA).
parent
6f602084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
package.c
dlls/msi/tests/package.c
+20
-9
No files found.
dlls/msi/tests/package.c
View file @
a31e9a1b
...
...
@@ -32,6 +32,8 @@
static
const
char
msifile
[]
=
"winetest.msi"
;
char
CURR_DIR
[
MAX_PATH
];
static
UINT
(
WINAPI
*
pMsiApplyMultiplePatchesA
)(
LPCSTR
,
LPCSTR
,
LPCSTR
);
static
void
get_user_sid
(
LPSTR
*
usersid
)
{
HANDLE
token
;
...
...
@@ -11537,13 +11539,18 @@ static void test_MsiApplyMultiplePatches(void)
{
UINT
r
,
type
=
GetDriveType
(
NULL
);
r
=
MsiApplyMultiplePatchesA
(
NULL
,
NULL
,
NULL
);
if
(
!
pMsiApplyMultiplePatchesA
)
{
win_skip
(
"MsiApplyMultiplePatchesA not found
\n
"
);
return
;
}
r
=
pMsiApplyMultiplePatchesA
(
NULL
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %u
\n
"
,
r
);
r
=
MsiApplyMultiplePatchesA
(
""
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
""
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %u
\n
"
,
r
);
r
=
MsiApplyMultiplePatchesA
(
";"
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
";"
,
NULL
,
NULL
);
todo_wine
{
if
(
type
==
DRIVE_FIXED
)
...
...
@@ -11554,7 +11561,7 @@ static void test_MsiApplyMultiplePatches(void)
"Expected ERROR_INVALID_NAME, got %u
\n
"
,
r
);
}
r
=
MsiApplyMultiplePatchesA
(
" ;"
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
" ;"
,
NULL
,
NULL
);
todo_wine
{
if
(
type
==
DRIVE_FIXED
)
...
...
@@ -11565,7 +11572,7 @@ static void test_MsiApplyMultiplePatches(void)
"Expected ERROR_INVALID_NAME, got %u
\n
"
,
r
);
}
r
=
MsiApplyMultiplePatchesA
(
";;"
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
";;"
,
NULL
,
NULL
);
todo_wine
{
if
(
type
==
DRIVE_FIXED
)
...
...
@@ -11576,10 +11583,10 @@ static void test_MsiApplyMultiplePatches(void)
"Expected ERROR_INVALID_NAME, got %u
\n
"
,
r
);
}
r
=
MsiApplyMultiplePatchesA
(
"nosuchpatchpackage;"
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
"nosuchpatchpackage;"
,
NULL
,
NULL
);
todo_wine
ok
(
r
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %u
\n
"
,
r
);
r
=
MsiApplyMultiplePatchesA
(
";nosuchpatchpackage"
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
";nosuchpatchpackage"
,
NULL
,
NULL
);
todo_wine
{
if
(
type
==
DRIVE_FIXED
)
...
...
@@ -11590,15 +11597,19 @@ static void test_MsiApplyMultiplePatches(void)
"Expected ERROR_INVALID_NAME, got %u
\n
"
,
r
);
}
r
=
MsiApplyMultiplePatchesA
(
"nosuchpatchpackage;nosuchpatchpackage"
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
"nosuchpatchpackage;nosuchpatchpackage"
,
NULL
,
NULL
);
todo_wine
ok
(
r
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %u
\n
"
,
r
);
r
=
MsiApplyMultiplePatchesA
(
" nosuchpatchpackage ; nosuchpatchpackage "
,
NULL
,
NULL
);
r
=
p
MsiApplyMultiplePatchesA
(
" nosuchpatchpackage ; nosuchpatchpackage "
,
NULL
,
NULL
);
todo_wine
ok
(
r
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %u
\n
"
,
r
);
}
START_TEST
(
package
)
{
HMODULE
hmsi
=
GetModuleHandleA
(
"msi.dll"
);
pMsiApplyMultiplePatchesA
=
(
void
*
)
GetProcAddress
(
hmsi
,
"MsiApplyMultiplePatchesA"
);
GetCurrentDirectoryA
(
MAX_PATH
,
CURR_DIR
);
test_createpackage
();
...
...
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