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
617f6908
Commit
617f6908
authored
Jan 26, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Jan 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Returns an error if trying to write to a stream opened for read.
parent
0b16006b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
stg_stream.c
dlls/ole32/stg_stream.c
+4
-1
storage32.c
dlls/ole32/storage32.c
+1
-0
storage32.h
dlls/ole32/storage32.h
+1
-1
No files found.
dlls/ole32/stg_stream.c
View file @
617f6908
...
...
@@ -411,7 +411,10 @@ HRESULT WINAPI StgStreamImpl_Write(
TRACE
(
"(%p, %p, %ld, %p)
\n
"
,
iface
,
pv
,
cb
,
pcbWritten
);
if
(
!
(
This
->
grfMode
&
STGM_WRITE
))
return
STG_E_ACCESSDENIED
;
/*
* If the caller is not interested in the number of bytes written,
* we use another buffer to avoid "if" statements in the code.
...
...
dlls/ole32/storage32.c
View file @
617f6908
...
...
@@ -336,6 +336,7 @@ HRESULT WINAPI StorageBaseImpl_OpenStream(
if
(
newStream
!=
0
)
{
newStream
->
grfMode
=
grfMode
;
*
ppstm
=
(
IStream
*
)
newStream
;
/*
...
...
dlls/ole32/storage32.h
View file @
617f6908
...
...
@@ -626,7 +626,7 @@ struct StgStreamImpl
*/
BlockChainStream
*
bigBlockChain
;
SmallBlockChainStream
*
smallBlockChain
;
DWORD
grfMode
;
};
/*
...
...
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