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
b6dc718c
Commit
b6dc718c
authored
Dec 02, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Check the current storage for STGM_SIMPLE rather than ancestorStorage.
Since simple mode does not support substorages, we know these are the same.
parent
cf5e6c57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
stg_stream.c
dlls/ole32/stg_stream.c
+2
-2
storage32.c
dlls/ole32/storage32.c
+1
-1
No files found.
dlls/ole32/stg_stream.c
View file @
b6dc718c
...
...
@@ -575,7 +575,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
}
/* In simple mode keep the stream size above the small block limit */
if
(
This
->
parentStorage
->
ancestorStorage
->
base
.
openFlags
&
STGM_SIMPLE
)
if
(
This
->
parentStorage
->
openFlags
&
STGM_SIMPLE
)
libNewSize
.
u
.
LowPart
=
max
(
libNewSize
.
u
.
LowPart
,
LIMIT_TO_USE_SMALL_BLOCK
);
if
(
This
->
streamSize
.
u
.
LowPart
==
libNewSize
.
u
.
LowPart
)
...
...
@@ -868,7 +868,7 @@ static HRESULT WINAPI StgStreamImpl_Stat(
pstatstg
->
grfMode
=
This
->
grfMode
;
/* In simple create mode cbSize is the current pos */
if
((
root
->
base
.
openFlags
&
STGM_SIMPLE
)
&&
root
->
create
)
if
((
This
->
parentStorage
->
openFlags
&
STGM_SIMPLE
)
&&
root
->
create
)
pstatstg
->
cbSize
=
This
->
currentPosition
;
return
S_OK
;
...
...
dlls/ole32/storage32.c
View file @
b6dc718c
...
...
@@ -866,7 +866,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
return
STG_E_ACCESSDENIED
;
}
if
(
This
->
ancestorStorage
->
base
.
openFlags
&
STGM_SIMPLE
)
if
(
This
->
openFlags
&
STGM_SIMPLE
)
if
(
grfMode
&
STGM_CREATE
)
return
STG_E_INVALIDFLAG
;
*
ppstm
=
0
;
...
...
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