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
ae8c0ab5
Commit
ae8c0ab5
authored
Apr 20, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test MsiSummaryInfoGetProperty reading an empty property.
parent
7932d76a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
suminfo.c
dlls/msi/tests/suminfo.c
+11
-0
No files found.
dlls/msi/tests/suminfo.c
View file @
ae8c0ab5
...
@@ -67,8 +67,10 @@ START_TEST(suminfo)
...
@@ -67,8 +67,10 @@ START_TEST(suminfo)
const
char
*
msifile
=
"winetest.msi"
;
const
char
*
msifile
=
"winetest.msi"
;
MSIHANDLE
hdb
=
0
,
hsuminfo
;
MSIHANDLE
hdb
=
0
,
hsuminfo
;
UINT
r
,
count
,
type
;
UINT
r
,
count
,
type
;
DWORD
dwcount
;
INT
val
;
INT
val
;
FILETIME
ft
;
FILETIME
ft
;
char
buf
[
0x10
];
DeleteFile
(
msifile
);
DeleteFile
(
msifile
);
...
@@ -108,6 +110,15 @@ START_TEST(suminfo)
...
@@ -108,6 +110,15 @@ START_TEST(suminfo)
ok
(
type
==
0
,
"wrong type
\n
"
);
ok
(
type
==
0
,
"wrong type
\n
"
);
ok
(
val
==
1234
,
"wrong val
\n
"
);
ok
(
val
==
1234
,
"wrong val
\n
"
);
buf
[
0
]
=
'x'
;
buf
[
1
]
=
0
;
dwcount
=
0x10
;
r
=
MsiSummaryInfoGetProperty
(
hsuminfo
,
PID_REVNUMBER
,
&
type
,
&
val
,
NULL
,
buf
,
&
dwcount
);
ok
(
r
==
ERROR_SUCCESS
,
"getpropcount failed
\n
"
);
ok
(
buf
[
0
]
==
'x'
,
"cleared buffer
\n
"
);
ok
(
dwcount
==
0x10
,
"count wasn't zero
\n
"
);
ok
(
type
==
VT_EMPTY
,
"should be empty
\n
"
);
r
=
MsiSummaryInfoSetProperty
(
hsuminfo
,
PID_TITLE
,
VT_LPSTR
,
0
,
NULL
,
"Mike"
);
r
=
MsiSummaryInfoSetProperty
(
hsuminfo
,
PID_TITLE
,
VT_LPSTR
,
0
,
NULL
,
"Mike"
);
ok
(
r
==
ERROR_FUNCTION_FAILED
,
"MsiSummaryInfoSetProperty wrong error
\n
"
);
ok
(
r
==
ERROR_FUNCTION_FAILED
,
"MsiSummaryInfoSetProperty wrong error
\n
"
);
...
...
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