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
1c2bbe8f
Commit
1c2bbe8f
authored
Mar 14, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Handle ILockBytes creation failure (PVS-Studio).
parent
f597fe8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
clipboard.c
dlls/ole32/clipboard.c
+6
-0
No files found.
dlls/ole32/clipboard.c
View file @
1c2bbe8f
...
@@ -576,6 +576,12 @@ static HRESULT render_embed_source_hack(IDataObject *data, LPFORMATETC fmt)
...
@@ -576,6 +576,12 @@ static HRESULT render_embed_source_hack(IDataObject *data, LPFORMATETC fmt)
hStorage
=
GlobalAlloc
(
GMEM_SHARE
|
GMEM_MOVEABLE
,
0
);
hStorage
=
GlobalAlloc
(
GMEM_SHARE
|
GMEM_MOVEABLE
,
0
);
if
(
hStorage
==
NULL
)
return
E_OUTOFMEMORY
;
if
(
hStorage
==
NULL
)
return
E_OUTOFMEMORY
;
hr
=
CreateILockBytesOnHGlobal
(
hStorage
,
FALSE
,
&
ptrILockBytes
);
hr
=
CreateILockBytesOnHGlobal
(
hStorage
,
FALSE
,
&
ptrILockBytes
);
if
(
FAILED
(
hr
))
{
GlobalFree
(
hStorage
);
return
hr
;
}
hr
=
StgCreateDocfileOnILockBytes
(
ptrILockBytes
,
STGM_SHARE_EXCLUSIVE
|
STGM_READWRITE
,
0
,
&
std
.
u
.
pstg
);
hr
=
StgCreateDocfileOnILockBytes
(
ptrILockBytes
,
STGM_SHARE_EXCLUSIVE
|
STGM_READWRITE
,
0
,
&
std
.
u
.
pstg
);
ILockBytes_Release
(
ptrILockBytes
);
ILockBytes_Release
(
ptrILockBytes
);
...
...
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