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
8dc5bd8e
Commit
8dc5bd8e
authored
Aug 14, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Always set pcbWritten when writing a stream.
parent
f205eca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
hglobalstream.c
dlls/ole32/hglobalstream.c
+10
-14
No files found.
dlls/ole32/hglobalstream.c
View file @
8dc5bd8e
...
...
@@ -287,8 +287,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_Write(
ULARGE_INTEGER
newSize
;
ULONG
bytesWritten
=
0
;
TRACE
(
"(%p, %p, %ld, %p)
\n
"
,
iface
,
pv
,
cb
,
pcbWritten
);
TRACE
(
"(%p, %p, %ld, %p)
\n
"
,
iface
,
pv
,
cb
,
pcbWritten
);
/*
* If the caller is not interested in the number of bytes written,
...
...
@@ -298,14 +297,10 @@ static HRESULT WINAPI HGLOBALStreamImpl_Write(
pcbWritten
=
&
bytesWritten
;
if
(
cb
==
0
)
{
return
S_OK
;
}
else
{
newSize
.
u
.
HighPart
=
0
;
newSize
.
u
.
LowPart
=
This
->
currentPosition
.
u
.
LowPart
+
cb
;
}
goto
out
;
newSize
.
u
.
HighPart
=
0
;
newSize
.
u
.
LowPart
=
This
->
currentPosition
.
u
.
LowPart
+
cb
;
/*
* Verify if we need to grow the stream
...
...
@@ -334,14 +329,15 @@ static HRESULT WINAPI HGLOBALStreamImpl_Write(
This
->
currentPosition
.
u
.
LowPart
+=
cb
;
/*
*
Return the number of bytes read.
*
Cleanup
*/
*
pcbWritten
=
cb
;
GlobalUnlock
(
This
->
supportHandle
)
;
out:
/*
*
Cleanup
*
Return the number of bytes read.
*/
GlobalUnlock
(
This
->
supportHandle
)
;
*
pcbWritten
=
cb
;
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