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
e31ec426
Commit
e31ec426
authored
Aug 12, 2022
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Aug 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe/tests: Add a test for IPropertySetStorage::Open with STGM_WRITE.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
parent
3535fe25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
intshcut.c
dlls/ieframe/tests/intshcut.c
+19
-0
No files found.
dlls/ieframe/tests/intshcut.c
View file @
e31ec426
...
...
@@ -233,6 +233,25 @@ static void test_ReadAndWriteProperties(void)
ok
(
hr
==
S_OK
,
"Failed to commit properties, hr=0x%lx
\n
"
,
hr
);
pPropStgWrite
->
lpVtbl
->
Release
(
pPropStgWrite
);
/* Test with STGM_WRITE */
hr
=
IPropertySetStorage_Open
(
pPropSetStg
,
&
FMTID_Intshcut
,
STGM_WRITE
,
&
pPropStgWrite
);
todo_wine
ok
(
hr
==
S_OK
,
"Unable to get an IPropertyStorage for writing, hr=0x%lx
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
memset
(
pvread
,
0
,
sizeof
(
pvread
));
hr
=
IPropertyStorage_ReadMultiple
(
pPropStgWrite
,
2
,
ps
,
pvread
);
ok
(
hr
==
S_OK
,
"Unable to read properties, hr=0x%lx
\n
"
,
hr
);
ok
(
pvread
[
1
].
vt
==
VT_I4
,
"got %d
\n
"
,
pvread
[
1
].
vt
);
ok
(
U
(
pvread
[
1
]).
lVal
==
iconIndex
,
"Read wrong icon index: %d
\n
"
,
U
(
pvread
[
1
]).
iVal
);
ok
(
pvread
[
0
].
vt
==
VT_LPWSTR
,
"got %d
\n
"
,
pvread
[
0
].
vt
);
ok
(
lstrcmpW
(
U
(
pvread
[
0
]).
pwszVal
,
iconPath
)
==
0
,
"Wrong icon path read: %s
\n
"
,
wine_dbgstr_w
(
U
(
pvread
[
0
]).
pwszVal
));
PropVariantClear
(
&
pvread
[
0
]);
PropVariantClear
(
&
pvread
[
1
]);
IPropertyStorage_Release
(
pPropStgWrite
);
}
urlA
->
lpVtbl
->
Release
(
urlA
);
IPropertySetStorage_Release
(
pPropSetStg
);
}
...
...
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