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
995fe926
Commit
995fe926
authored
Jan 10, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole2: Fix error handling in ReadClassStg().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9608c794
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
ole2.c
dlls/ole2.dll16/ole2.c
+9
-2
No files found.
dlls/ole2.dll16/ole2.c
View file @
995fe926
...
...
@@ -46,6 +46,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
#define E_INVALIDARG16 MAKE_SCODE(SEVERITY_ERROR, FACILITY_NULL, 3)
static
HICON
convert_icon_to_32
(
HICON16
icon16
)
{
...
...
@@ -296,8 +297,14 @@ HRESULT WINAPI ReadClassStg16(SEGPTR pstg, CLSID *pclsid)
TRACE
(
"(%x, %p)
\n
"
,
pstg
,
pclsid
);
if
(
pclsid
==
NULL
)
return
E_POINTER
;
if
(
!
pclsid
)
return
E_INVALIDARG16
;
memset
(
pclsid
,
0
,
sizeof
(
*
pclsid
));
if
(
!
pstg
)
return
E_INVALIDARG16
;
/*
* read a STATSTG structure (contains the clsid) from the storage
*/
...
...
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