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
e9d334d0
Commit
e9d334d0
authored
Mar 07, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more incorrect uses of STGM_ enumerations.
parent
f3324120
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
stg_bigblockfile.c
dlls/ole32/stg_bigblockfile.c
+7
-4
stg_stream.c
dlls/ole32/stg_stream.c
+6
-1
storage32.c
dlls/ole32/storage32.c
+0
-8
storage32.h
dlls/ole32/storage32.h
+8
-0
No files found.
dlls/ole32/stg_bigblockfile.c
View file @
e9d334d0
...
...
@@ -866,8 +866,11 @@ static void BIGBLOCKFILE_RemapAllMappedPages(LPBIGBLOCKFILE This)
*/
static
DWORD
BIGBLOCKFILE_GetProtectMode
(
DWORD
openFlags
)
{
if
(
openFlags
&
(
STGM_WRITE
|
STGM_READWRITE
))
return
PAGE_READWRITE
;
else
return
PAGE_READONLY
;
switch
(
STGM_ACCESS_MODE
(
openFlags
))
{
case
STGM_WRITE
:
case
STGM_READWRITE
:
return
PAGE_READWRITE
;
}
return
PAGE_READONLY
;
}
dlls/ole32/stg_stream.c
View file @
e9d334d0
...
...
@@ -443,7 +443,12 @@ HRESULT WINAPI StgStreamImpl_Write(
/*
* Do we have permission to write to this stream?
*/
if
(
!
(
This
->
grfMode
&
(
STGM_WRITE
|
STGM_READWRITE
)))
{
switch
(
STGM_ACCESS_MODE
(
This
->
grfMode
))
{
case
STGM_WRITE
:
case
STGM_READWRITE
:
break
;
default:
return
STG_E_ACCESSDENIED
;
}
...
...
dlls/ole32/storage32.c
View file @
e9d334d0
...
...
@@ -52,14 +52,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(storage);
#define FILE_BEGIN 0
#define STGM_ACCESS_MODE(stgm) ((stgm)&0x0000f)
#define STGM_SHARE_MODE(stgm) ((stgm)&0x000f0)
#define STGM_CREATE_MODE(stgm) ((stgm)&0x0f000)
#define STGM_KNOWN_FLAGS (0xf0ff | \
STGM_TRANSACTED | STGM_CONVERT | STGM_PRIORITY | STGM_NOSCRATCH | \
STGM_NOSNAPSHOT | STGM_DIRECT_SWMR | STGM_DELETEONRELEASE | STGM_SIMPLE)
/* Used for OleConvertIStorageToOLESTREAM and OleConvertOLESTREAMToIStorage */
#define OLESTREAM_ID 0x501
#define OLESTREAM_MAX_STR_LEN 255
...
...
dlls/ole32/storage32.h
View file @
e9d334d0
...
...
@@ -100,6 +100,14 @@ static const ULONG PROPERTY_NULL = 0xFFFFFFFF;
#define LIMIT_TO_USE_SMALL_BLOCK 0x1000
#define NUM_BLOCKS_PER_DEPOT_BLOCK 128
#define STGM_ACCESS_MODE(stgm) ((stgm)&0x0000f)
#define STGM_SHARE_MODE(stgm) ((stgm)&0x000f0)
#define STGM_CREATE_MODE(stgm) ((stgm)&0x0f000)
#define STGM_KNOWN_FLAGS (0xf0ff | \
STGM_TRANSACTED | STGM_CONVERT | STGM_PRIORITY | STGM_NOSCRATCH | \
STGM_NOSNAPSHOT | STGM_DIRECT_SWMR | STGM_DELETEONRELEASE | STGM_SIMPLE)
/*
* These are signatures to detect the type of Document file.
*/
...
...
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