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
e39fc206
Commit
e39fc206
authored
Jan 28, 2011
by
Alexander Scott-Johns
Committed by
Alexandre Julliard
Jan 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix error handling in get_data_from_metafilepict and get_data_from_bitmap.
parent
6c6b15f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
clipboard.c
dlls/ole32/clipboard.c
+2
-5
No files found.
dlls/ole32/clipboard.c
View file @
e39fc206
...
@@ -876,9 +876,8 @@ static HRESULT get_data_from_metafilepict(IDataObject *data, FORMATETC *fmt, HGL
...
@@ -876,9 +876,8 @@ static HRESULT get_data_from_metafilepict(IDataObject *data, FORMATETC *fmt, HGL
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
hr
=
dup_metafilepict
(
med
.
u
.
hMetaFilePict
,
&
copy
);
hr
=
dup_metafilepict
(
med
.
u
.
hMetaFilePict
,
&
copy
);
if
(
FAILED
(
hr
))
return
hr
;
*
mem
=
copy
;
if
(
SUCCEEDED
(
hr
))
*
mem
=
copy
;
ReleaseStgMedium
(
&
med
);
ReleaseStgMedium
(
&
med
);
...
@@ -906,10 +905,8 @@ static HRESULT get_data_from_bitmap(IDataObject *data, FORMATETC *fmt, HBITMAP *
...
@@ -906,10 +905,8 @@ static HRESULT get_data_from_bitmap(IDataObject *data, FORMATETC *fmt, HBITMAP *
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
hr
=
dup_bitmap
(
med
.
u
.
hBitmap
,
&
copy
);
hr
=
dup_bitmap
(
med
.
u
.
hBitmap
,
&
copy
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
hbm
)
*
hbm
=
copy
;
if
(
SUCCEEDED
(
hr
))
*
hbm
=
copy
;
else
hr
=
E_FAIL
;
ReleaseStgMedium
(
&
med
);
ReleaseStgMedium
(
&
med
);
...
...
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