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
548d8a2a
Commit
548d8a2a
authored
Sep 10, 2001
by
Bill Medland
Committed by
Alexandre Julliard
Sep 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic implementation of IStream:Clone.
parent
0a64cc69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
stg_stream.c
dlls/ole32/stg_stream.c
+36
-2
No files found.
dlls/ole32/stg_stream.c
View file @
548d8a2a
...
@@ -826,10 +826,44 @@ HRESULT WINAPI StgStreamImpl_Stat(
...
@@ -826,10 +826,44 @@ HRESULT WINAPI StgStreamImpl_Stat(
return
E_FAIL
;
return
E_FAIL
;
}
}
/***
* This method is part of the IStream interface.
*
* This method returns a clone of the interface that allows for
* another seek pointer
*
* See the documentation of IStream for more info.
*
* I am not totally sure what I am doing here but I presume that this
* should be basically as simple as creating a new stream with the same
* parent etc and positioning its seek cursor.
*/
HRESULT
WINAPI
StgStreamImpl_Clone
(
HRESULT
WINAPI
StgStreamImpl_Clone
(
IStream
*
iface
,
IStream
*
iface
,
IStream
**
ppstm
)
/* [out] */
IStream
**
ppstm
)
/* [out] */
{
{
FIXME
(
"not implemented!
\n
"
);
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
return
E_NOTIMPL
;
HRESULT
hres
;
StgStreamImpl
*
new_stream
;
LARGE_INTEGER
seek_pos
;
/*
* Sanity check
*/
if
(
ppstm
==
0
)
return
STG_E_INVALIDPOINTER
;
new_stream
=
StgStreamImpl_Construct
(
This
->
parentStorage
,
This
->
grfMode
,
This
->
ownerProperty
);
if
(
!
new_stream
)
return
STG_E_INSUFFICIENTMEMORY
;
/* Currently the only reason for new_stream=0 */
*
ppstm
=
(
IStream
*
)
new_stream
;
seek_pos
.
QuadPart
=
This
->
currentPosition
.
QuadPart
;
hres
=
StgStreamImpl_Seek
(
*
ppstm
,
seek_pos
,
STREAM_SEEK_SET
,
NULL
);
assert
(
SUCCEEDED
(
hres
));
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