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
bdee2120
Commit
bdee2120
authored
May 03, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
May 03, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow ISequentialStream_Write to work if access mode is STGM_READWRITE.
parent
5b8eb2d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
stg_stream.c
dlls/ole32/stg_stream.c
+5
-7
No files found.
dlls/ole32/stg_stream.c
View file @
bdee2120
...
...
@@ -414,8 +414,12 @@ HRESULT WINAPI StgStreamImpl_Write(
TRACE
(
"(%p, %p, %ld, %p)
\n
"
,
iface
,
pv
,
cb
,
pcbWritten
);
if
(
!
(
This
->
grfMode
&
STGM_WRITE
))
/*
* Do we have permission to write to this stream?
*/
if
(
!
(
This
->
grfMode
&
(
STGM_WRITE
|
STGM_READWRITE
)))
{
return
STG_E_ACCESSDENIED
;
}
/*
* If the caller is not interested in the number of bytes written,
...
...
@@ -429,12 +433,6 @@ HRESULT WINAPI StgStreamImpl_Write(
*/
*
pcbWritten
=
0
;
/*
* Do we have permission to write to this stream?
*/
if
(
!
(
This
->
grfMode
&
(
STGM_WRITE
|
STGM_READWRITE
)))
return
STG_E_ACCESSDENIED
;
if
(
cb
==
0
)
{
return
S_OK
;
...
...
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