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
55b89f4a
Commit
55b89f4a
authored
Oct 15, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add some tests for MsiGetTargetPathW.
parent
843382f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
package.c
dlls/msi/tests/package.c
+29
-0
No files found.
dlls/msi/tests/package.c
View file @
55b89f4a
...
...
@@ -843,7 +843,10 @@ static void test_doaction( void )
static
void
test_gettargetpath_bad
(
void
)
{
static
const
WCHAR
boo
[]
=
{
'b'
,
'o'
,
'o'
,
0
};
static
const
WCHAR
empty
[]
=
{
0
};
char
buffer
[
0x80
];
WCHAR
bufferW
[
0x80
];
MSIHANDLE
hpkg
;
DWORD
sz
;
UINT
r
;
...
...
@@ -869,6 +872,32 @@ static void test_gettargetpath_bad(void)
r
=
MsiGetTargetPath
(
hpkg
,
"boo"
,
buffer
,
NULL
);
ok
(
r
==
ERROR_DIRECTORY
,
"wrong return val
\n
"
);
sz
=
0
;
r
=
MsiGetTargetPath
(
hpkg
,
""
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_DIRECTORY
,
"wrong return val
\n
"
);
r
=
MsiGetTargetPathW
(
0
,
NULL
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong return val
\n
"
);
r
=
MsiGetTargetPathW
(
0
,
NULL
,
NULL
,
&
sz
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong return val
\n
"
);
r
=
MsiGetTargetPathW
(
0
,
boo
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_HANDLE
,
"wrong return val
\n
"
);
r
=
MsiGetTargetPathW
(
0
,
boo
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_HANDLE
,
"wrong return val
\n
"
);
r
=
MsiGetTargetPathW
(
hpkg
,
boo
,
NULL
,
NULL
);
ok
(
r
==
ERROR_DIRECTORY
,
"wrong return val
\n
"
);
r
=
MsiGetTargetPathW
(
hpkg
,
boo
,
bufferW
,
NULL
);
ok
(
r
==
ERROR_DIRECTORY
,
"wrong return val
\n
"
);
sz
=
0
;
r
=
MsiGetTargetPathW
(
hpkg
,
empty
,
bufferW
,
&
sz
);
ok
(
r
==
ERROR_DIRECTORY
,
"wrong return val
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
...
...
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