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
4fe68a9e
Commit
4fe68a9e
authored
Jul 18, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jul 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Check return values in several functions.
parent
a0249bab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
olepicture.c
dlls/oleaut32/olepicture.c
+12
-1
No files found.
dlls/oleaut32/olepicture.c
View file @
4fe68a9e
...
...
@@ -1365,6 +1365,8 @@ static HRESULT OLEPictureImpl_LoadDIB(OLEPictureImpl *This, BYTE *xbuf, ULONG xr
DIB_RGB_COLORS
);
DeleteDC
(
hdcref
);
if
(
This
->
desc
.
u
.
bmp
.
hbitmap
==
0
)
return
E_FAIL
;
This
->
desc
.
picType
=
PICTYPE_BITMAP
;
OLEPictureImpl_SetBitmap
(
This
);
return
S_OK
;
...
...
@@ -1869,6 +1871,8 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
}
else
{
This
->
datalen
=
toread
+
(
headerisdata
?
8
:
0
);
xbuf
=
This
->
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
datalen
);
if
(
!
xbuf
)
return
E_OUTOFMEMORY
;
if
(
headerisdata
)
memcpy
(
xbuf
,
header
,
8
);
...
...
@@ -2644,8 +2648,15 @@ HRESULT WINAPI OleLoadPicture( LPSTREAM lpstream, LONG lSize, BOOL fRunmode,
*
ppvObj
=
NULL
;
return
hr
;
}
IPersistStream_Load
(
ps
,
lpstream
);
hr
=
IPersistStream_Load
(
ps
,
lpstream
);
IPersistStream_Release
(
ps
);
if
(
FAILED
(
hr
))
{
ERR
(
"IPersistStream_Load failed
\n
"
);
IPicture_Release
(
newpic
);
*
ppvObj
=
NULL
;
return
hr
;
}
hr
=
IPicture_QueryInterface
(
newpic
,
riid
,
ppvObj
);
if
(
hr
)
FIXME
(
"Failed to get interface %s from IPicture.
\n
"
,
debugstr_guid
(
riid
));
...
...
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