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
b1281f9c
Commit
b1281f9c
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: Allow STGM_WRITE in IPropertyStorage::Open.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
parent
e31ec426
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
intshcut.c
dlls/ieframe/intshcut.c
+5
-0
intshcut.c
dlls/ieframe/tests/intshcut.c
+1
-1
No files found.
dlls/ieframe/intshcut.c
View file @
b1281f9c
...
@@ -718,9 +718,14 @@ static HRESULT WINAPI PropertySetStorage_Open(
...
@@ -718,9 +718,14 @@ static HRESULT WINAPI PropertySetStorage_Open(
DWORD
grfMode
,
DWORD
grfMode
,
IPropertyStorage
**
ppprstg
)
IPropertyStorage
**
ppprstg
)
{
{
const
DWORD
STGM_ACCESS_MASK
=
0x0000000f
;
InternetShortcut
*
This
=
impl_from_IPropertySetStorage
(
iface
);
InternetShortcut
*
This
=
impl_from_IPropertySetStorage
(
iface
);
TRACE
(
"(%s, 0x%lx, %p)
\n
"
,
debugstr_guid
(
rfmtid
),
grfMode
,
ppprstg
);
TRACE
(
"(%s, 0x%lx, %p)
\n
"
,
debugstr_guid
(
rfmtid
),
grfMode
,
ppprstg
);
/* ole32 doesn't like STGM_WRITE */
if
((
grfMode
&
STGM_ACCESS_MASK
)
==
STGM_WRITE
)
grfMode
=
(
grfMode
&
~
STGM_ACCESS_MASK
)
|
STGM_READWRITE
;
/* Note: The |STGM_SHARE_EXCLUSIVE is to cope with a bug in the implementation. Should be fixed in ole32. */
/* Note: The |STGM_SHARE_EXCLUSIVE is to cope with a bug in the implementation. Should be fixed in ole32. */
return
IPropertySetStorage_Open
(
This
->
property_set_storage
,
return
IPropertySetStorage_Open
(
This
->
property_set_storage
,
rfmtid
,
rfmtid
,
...
...
dlls/ieframe/tests/intshcut.c
View file @
b1281f9c
...
@@ -236,7 +236,7 @@ static void test_ReadAndWriteProperties(void)
...
@@ -236,7 +236,7 @@ static void test_ReadAndWriteProperties(void)
/* Test with STGM_WRITE */
/* Test with STGM_WRITE */
hr
=
IPropertySetStorage_Open
(
pPropSetStg
,
&
FMTID_Intshcut
,
STGM_WRITE
,
&
pPropStgWrite
);
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
);
ok
(
hr
==
S_OK
,
"Unable to get an IPropertyStorage for writing, hr=0x%lx
\n
"
,
hr
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
...
...
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