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
7b475390
Commit
7b475390
authored
Oct 09, 2009
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use rgiidExclude in StorageImpl::CopyTo.
parent
e8ce3e60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
storage32.c
dlls/ole32/storage32.c
+18
-4
No files found.
dlls/ole32/storage32.c
View file @
7b475390
...
...
@@ -1462,10 +1462,8 @@ static HRESULT WINAPI StorageImpl_CopyTo(
HRESULT
hr
;
IStorage
*
pstgTmp
,
*
pstgChild
;
IStream
*
pstrTmp
,
*
pstrChild
;
BOOL
skip
=
FALSE
;
if
((
ciidExclude
!=
0
)
||
(
rgiidExclude
!=
NULL
))
FIXME
(
"Exclude option not implemented
\n
"
);
BOOL
skip
=
FALSE
,
skip_storage
=
FALSE
,
skip_stream
=
FALSE
;
int
i
;
TRACE
(
"(%p, %d, %p, %p, %p)
\n
"
,
iface
,
ciidExclude
,
rgiidExclude
,
...
...
@@ -1488,6 +1486,16 @@ static HRESULT WINAPI StorageImpl_CopyTo(
IStorage_Stat
(
iface
,
&
curElement
,
STATFLAG_NONAME
);
IStorage_SetClass
(
pstgDest
,
&
curElement
.
clsid
);
for
(
i
=
0
;
i
<
ciidExclude
;
++
i
)
{
if
(
IsEqualGUID
(
&
IID_IStorage
,
&
rgiidExclude
[
i
]))
skip_storage
=
TRUE
;
else
if
(
IsEqualGUID
(
&
IID_IStream
,
&
rgiidExclude
[
i
]))
skip_stream
=
TRUE
;
else
WARN
(
"Unknown excluded GUID: %s
\n
"
,
debugstr_guid
(
&
rgiidExclude
[
i
]));
}
do
{
/*
...
...
@@ -1518,6 +1526,9 @@ static HRESULT WINAPI StorageImpl_CopyTo(
if
(
curElement
.
type
==
STGTY_STORAGE
)
{
if
(
skip_storage
)
continue
;
/*
* open child source storage
*/
...
...
@@ -1571,6 +1582,9 @@ static HRESULT WINAPI StorageImpl_CopyTo(
}
else
if
(
curElement
.
type
==
STGTY_STREAM
)
{
if
(
skip_stream
)
continue
;
/*
* create a new stream in destination storage. If the stream already
* exist, it will be deleted and a new one will be created.
...
...
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