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
50436da5
Commit
50436da5
authored
Mar 29, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix StgOpenStorage's handling of the STGM_PRIORITY flag.
parent
3217e534
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
storage32.c
dlls/ole32/storage32.c
+1
-1
storage32.c
dlls/ole32/tests/storage32.c
+26
-0
No files found.
dlls/ole32/storage32.c
View file @
50436da5
...
...
@@ -5911,7 +5911,7 @@ HRESULT WINAPI StgOpenStorage(
/*
* Validate the sharing mode
*/
if
(
!
(
grfMode
&
STGM_TRANSACTED
))
if
(
!
(
grfMode
&
(
STGM_TRANSACTED
|
STGM_PRIORITY
)
))
switch
(
STGM_SHARE_MODE
(
grfMode
))
{
case
STGM_SHARE_EXCLUSIVE
:
...
...
dlls/ole32/tests/storage32.c
View file @
50436da5
...
...
@@ -448,6 +448,32 @@ static void test_open_storage(void)
ok
(
r
==
0
,
"wrong ref count
\n
"
);
}
/* open like visio 2003 */
stg
=
NULL
;
r
=
StgOpenStorage
(
filename
,
NULL
,
STGM_PRIORITY
|
STGM_SHARE_DENY_NONE
,
NULL
,
0
,
&
stg
);
ok
(
r
==
S_OK
,
"should succeed
\n
"
);
if
(
stg
)
IStorage_Release
(
stg
);
/* test other sharing modes with STGM_PRIORITY */
stg
=
NULL
;
r
=
StgOpenStorage
(
filename
,
NULL
,
STGM_PRIORITY
|
STGM_SHARE_EXCLUSIVE
,
NULL
,
0
,
&
stg
);
ok
(
r
==
S_OK
,
"should succeed
\n
"
);
if
(
stg
)
IStorage_Release
(
stg
);
stg
=
NULL
;
r
=
StgOpenStorage
(
filename
,
NULL
,
STGM_PRIORITY
|
STGM_SHARE_DENY_WRITE
,
NULL
,
0
,
&
stg
);
ok
(
r
==
S_OK
,
"should succeed
\n
"
);
if
(
stg
)
IStorage_Release
(
stg
);
stg
=
NULL
;
r
=
StgOpenStorage
(
filename
,
NULL
,
STGM_PRIORITY
|
STGM_SHARE_DENY_READ
,
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