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
cc0a458f
Commit
cc0a458f
authored
Feb 14, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Feb 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Add IStream_CopyTo to the sub-stream implementation.
parent
5f8c7665
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
+40
-2
mimeole.c
dlls/inetcomm/mimeole.c
+40
-2
No files found.
dlls/inetcomm/mimeole.c
View file @
cc0a458f
...
...
@@ -1251,8 +1251,46 @@ static HRESULT WINAPI sub_stream_CopyTo(
ULARGE_INTEGER
*
pcbRead
,
ULARGE_INTEGER
*
pcbWritten
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
HRESULT
hr
=
S_OK
;
BYTE
tmpBuffer
[
128
];
ULONG
bytesRead
,
bytesWritten
,
copySize
;
ULARGE_INTEGER
totalBytesRead
;
ULARGE_INTEGER
totalBytesWritten
;
TRACE
(
"(%p)->(%p, %d, %p, %p)
\n
"
,
iface
,
pstm
,
cb
.
LowPart
,
pcbRead
,
pcbWritten
);
totalBytesRead
.
QuadPart
=
0
;
totalBytesWritten
.
QuadPart
=
0
;
while
(
cb
.
QuadPart
>
0
)
{
if
(
cb
.
QuadPart
>=
sizeof
(
tmpBuffer
)
)
copySize
=
sizeof
(
tmpBuffer
);
else
copySize
=
cb
.
u
.
LowPart
;
hr
=
IStream_Read
(
iface
,
tmpBuffer
,
copySize
,
&
bytesRead
);
if
(
FAILED
(
hr
))
break
;
totalBytesRead
.
QuadPart
+=
bytesRead
;
if
(
bytesRead
)
{
hr
=
IStream_Write
(
pstm
,
tmpBuffer
,
bytesRead
,
&
bytesWritten
);
if
(
FAILED
(
hr
))
break
;
totalBytesWritten
.
QuadPart
+=
bytesWritten
;
}
if
(
bytesRead
!=
copySize
)
cb
.
QuadPart
=
0
;
else
cb
.
QuadPart
-=
bytesRead
;
}
if
(
pcbRead
)
pcbRead
->
QuadPart
=
totalBytesRead
.
QuadPart
;
if
(
pcbWritten
)
pcbWritten
->
QuadPart
=
totalBytesWritten
.
QuadPart
;
return
hr
;
}
static
HRESULT
WINAPI
sub_stream_Commit
(
...
...
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