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
eed12099
Commit
eed12099
authored
Apr 03, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: STGM_PRIORITY implies STGM_SHARE_EXCLUSIVE.
parent
7bffb5e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
storage32.c
dlls/ole32/storage32.c
+8
-1
storage32.c
dlls/ole32/tests/storage32.c
+7
-0
No files found.
dlls/ole32/storage32.c
View file @
eed12099
...
...
@@ -5908,10 +5908,17 @@ HRESULT WINAPI StgOpenStorage(
goto
end
;
}
/* STGM_PRIORITY implies exclusive access */
if
(
grfMode
&
STGM_PRIORITY
)
{
grfMode
&=
~
0xf0
;
/* remove the existing sharing mode */
grfMode
|=
STGM_SHARE_EXCLUSIVE
;
}
/*
* Validate the sharing mode
*/
if
(
!
(
grfMode
&
(
STGM_TRANSACTED
|
STGM_PRIORITY
)
))
if
(
!
(
grfMode
&
STGM_TRANSACTED
))
switch
(
STGM_SHARE_MODE
(
grfMode
))
{
case
STGM_SHARE_EXCLUSIVE
:
...
...
dlls/ole32/tests/storage32.c
View file @
eed12099
...
...
@@ -474,6 +474,13 @@ static void test_open_storage(void)
if
(
stg
)
IStorage_Release
(
stg
);
/* open like Project 2003 */
stg
=
NULL
;
r
=
StgOpenStorage
(
filename
,
NULL
,
STGM_PRIORITY
,
NULL
,
0
,
&
stg
);
ok
(
r
==
S_OK
,
"should succeed
\n
"
);
if
(
stg
)
IStorage_Release
(
stg
);
r
=
DeleteFileW
(
filename
);
ok
(
r
,
"file didn't exist
\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