ole32: Fail before constructing an object in CreateStreamOnHGlobal to avoid a memory leak.
This commit is contained in:
parent
8296548bb5
commit
4edca3cf4d
|
@ -721,6 +721,9 @@ HRESULT WINAPI CreateStreamOnHGlobal(
|
|||
{
|
||||
HGLOBALStreamImpl* newStream;
|
||||
|
||||
if (!ppstm)
|
||||
return E_INVALIDARG;
|
||||
|
||||
newStream = HGLOBALStreamImpl_Construct(hGlobal,
|
||||
fDeleteOnRelease);
|
||||
|
||||
|
|
Loading…
Reference in New Issue