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
3ac34f74
Commit
3ac34f74
authored
Dec 13, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Properly free temporary objects when StorageBaseImpl_CopyTo fails.
parent
6afe24c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
storage32.c
dlls/ole32/storage32.c
+26
-25
No files found.
dlls/ole32/storage32.c
View file @
3ac34f74
...
...
@@ -1690,17 +1690,17 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo(
NULL
,
0
,
&
pstgTmp
);
}
if
(
hr
!=
S_OK
)
goto
cleanup
;
if
(
hr
==
S_OK
)
{
/*
* do the copy recursively
*/
hr
=
IStorage_CopyTo
(
pstgChild
,
ciidExclude
,
rgiidExclude
,
NULL
,
pstgTmp
);
/*
* do the copy recursively
*/
hr
=
IStorage_CopyTo
(
pstgChild
,
ciidExclude
,
rgiidExclude
,
NULL
,
pstgTmp
);
IStorage_Release
(
pstgTmp
);
}
IStorage_Release
(
pstgTmp
);
IStorage_Release
(
pstgChild
);
}
else
if
(
curElement
.
type
==
STGTY_STREAM
)
...
...
@@ -1726,27 +1726,28 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo(
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
pstrChild
);
if
(
hr
!=
S_OK
)
goto
cleanup
;
if
(
hr
==
S_OK
)
{
/*
* Get the size of the source stream
*/
IStream_Stat
(
pstrChild
,
&
strStat
,
STATFLAG_NONAME
);
/*
* Get the size of the source stream
*/
IStream_Stat
(
pstrChild
,
&
strStat
,
STATFLAG_NONAME
);
/*
* Set the size of the destination stream.
*/
IStream_SetSize
(
pstrTmp
,
strStat
.
cbSize
);
/*
* Set the size of the destination stream.
*/
IStream_SetSize
(
pstrTmp
,
strStat
.
cbSize
);
/*
* do the copy
*/
hr
=
IStream_CopyTo
(
pstrChild
,
pstrTmp
,
strStat
.
cbSize
,
NULL
,
NULL
);
/*
* do the copy
*/
hr
=
IStream_CopyTo
(
pstrChild
,
pstrTmp
,
strStat
.
cbSize
,
NULL
,
NULL
);
IStream_Release
(
pstrChild
);
}
IStream_Release
(
pstrTmp
);
IStream_Release
(
pstrChild
);
}
else
{
...
...
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