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
87326ba7
Commit
87326ba7
authored
Jan 18, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IStream_fnWrite: only return write count if the given pointer
parameter is not NULL.
parent
b89525fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
memorystream.c
dlls/shell32/memorystream.c
+5
-0
No files found.
dlls/shell32/memorystream.c
View file @
87326ba7
...
...
@@ -198,6 +198,7 @@ static HRESULT WINAPI IStream_fnRead (IStream * iface, void* pv, ULONG cb, ULONG
static
HRESULT
WINAPI
IStream_fnWrite
(
IStream
*
iface
,
const
void
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
{
DWORD
dummy_count
;
ICOM_THIS
(
ISHFileStream
,
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -205,6 +206,10 @@ static HRESULT WINAPI IStream_fnWrite (IStream * iface, const void* pv, ULONG cb
if
(
!
pv
)
return
STG_E_INVALIDPOINTER
;
/* WriteFile() doesn't allow to specify NULL as write count pointer */
if
(
!
pcbWritten
)
pcbWritten
=
&
dummy_count
;
if
(
!
WriteFile
(
This
->
handle
,
pv
,
cb
,
pcbWritten
,
NULL
)
)
return
E_FAIL
;
...
...
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