Commit 4edca3cf authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fail before constructing an object in CreateStreamOnHGlobal to avoid a memory leak.

parent 8296548b
......@@ -721,6 +721,9 @@ HRESULT WINAPI CreateStreamOnHGlobal(
{
HGLOBALStreamImpl* newStream;
if (!ppstm)
return E_INVALIDARG;
newStream = HGLOBALStreamImpl_Construct(hGlobal,
fDeleteOnRelease);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment