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
04735d6f
Commit
04735d6f
authored
Apr 23, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
May 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use share modes when creating storage files.
parent
a60d41d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
storage32.c
dlls/ole32/storage32.c
+1
-8
storage32.c
dlls/ole32/tests/storage32.c
+2
-2
No files found.
dlls/ole32/storage32.c
View file @
04735d6f
...
...
@@ -7562,7 +7562,7 @@ static HRESULT create_storagefile(
/*
* Interpret the STGM value grfMode
*/
shareMode
=
FILE_SHARE_READ
|
FILE_SHARE_WRITE
;
shareMode
=
GetShareModeFromSTGM
(
grfMode
)
;
accessMode
=
GetAccessModeFromSTGM
(
grfMode
);
if
(
grfMode
&
STGM_DELETEONRELEASE
)
...
...
@@ -7570,13 +7570,6 @@ static HRESULT create_storagefile(
else
fileAttributes
=
FILE_ATTRIBUTE_NORMAL
|
FILE_FLAG_RANDOM_ACCESS
;
if
(
STGM_SHARE_MODE
(
grfMode
)
&&
!
(
grfMode
&
STGM_SHARE_DENY_NONE
))
{
static
int
fixme
;
if
(
!
fixme
++
)
FIXME
(
"Storage share mode not implemented.
\n
"
);
}
*
ppstgOpen
=
0
;
hFile
=
CreateFileW
(
pwcsName
,
...
...
dlls/ole32/tests/storage32.c
View file @
04735d6f
...
...
@@ -3176,8 +3176,8 @@ static const struct lock_test lock_tests[] = {
{
STGM_CREATE
|
STGM_SHARE_EXCLUSIVE
|
STGM_READWRITE
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
rwex_locked_bytes
,
0
,
TRUE
},
{
STGM_CREATE
|
STGM_SHARE_EXCLUSIVE
|
STGM_READWRITE
|
STGM_TRANSACTED
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
rwex_locked_bytes
,
0
,
TRUE
},
{
STGM_CREATE
|
STGM_READWRITE
|
STGM_TRANSACTED
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
rw_locked_bytes
,
0
,
FALSE
},
{
STGM_CREATE
|
STGM_READWRITE
|
STGM_SHARE_DENY_WRITE
|
STGM_TRANSACTED
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
rwdw_locked_bytes
,
0
,
TRU
E
},
{
STGM_CREATE
|
STGM_WRITE
|
STGM_SHARE_DENY_WRITE
|
STGM_TRANSACTED
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
wodw_locked_bytes
,
0
,
TRU
E
},
{
STGM_CREATE
|
STGM_READWRITE
|
STGM_SHARE_DENY_WRITE
|
STGM_TRANSACTED
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
rwdw_locked_bytes
,
0
,
FALS
E
},
{
STGM_CREATE
|
STGM_WRITE
|
STGM_SHARE_DENY_WRITE
|
STGM_TRANSACTED
,
TRUE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
wodw_locked_bytes
,
0
,
FALS
E
},
{
STGM_SHARE_EXCLUSIVE
|
STGM_READWRITE
,
FALSE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
rwex_locked_bytes
,
rwex_fail_ranges
,
TRUE
},
{
STGM_SHARE_EXCLUSIVE
|
STGM_READWRITE
|
STGM_TRANSACTED
,
FALSE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
,
rwex_locked_bytes
,
rwex_fail_ranges
,
TRUE
},
{
STGM_READWRITE
|
STGM_TRANSACTED
,
FALSE
,
GENERIC_READ
|
GENERIC_WRITE
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
rw_locked_bytes
,
rw_fail_ranges
,
TRUE
},
...
...
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