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
92dbc57a
Commit
92dbc57a
authored
Jan 20, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix a stream leak on failure.
parent
f3fe497b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tmarshal.c
dlls/oleaut32/tmarshal.c
+3
-0
No files found.
dlls/oleaut32/tmarshal.c
View file @
92dbc57a
...
...
@@ -153,6 +153,7 @@ _unmarshal_interface(marshal_state *buf, REFIID riid, LPUNKNOWN *pUnk) {
hres
=
IStream_Write
(
pStm
,
buf
->
base
+
buf
->
curoff
,
xsize
,
&
res
);
if
(
hres
)
{
ERR
(
"stream write %x
\n
"
,
hres
);
IStream_Release
(
pStm
);
return
hres
;
}
...
...
@@ -160,12 +161,14 @@ _unmarshal_interface(marshal_state *buf, REFIID riid, LPUNKNOWN *pUnk) {
hres
=
IStream_Seek
(
pStm
,
seekto
,
SEEK_SET
,
&
newpos
);
if
(
hres
)
{
ERR
(
"Failed Seek %x
\n
"
,
hres
);
IStream_Release
(
pStm
);
return
hres
;
}
hres
=
CoUnmarshalInterface
(
pStm
,
riid
,(
LPVOID
*
)
pUnk
);
if
(
hres
)
{
ERR
(
"Unmarshalling interface %s failed with %x
\n
"
,
debugstr_guid
(
riid
),
hres
);
IStream_Release
(
pStm
);
return
hres
;
}
...
...
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