Commit 9bc7912e authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

CreateStreamOnHGlobal should alloc a shared memory block if supplied

handle is 0.
parent 14264c0f
......@@ -251,7 +251,8 @@ HGLOBALStreamImpl* HGLOBALStreamImpl_Construct(
*/
if (newStream->supportHandle == NULL)
{
newStream->supportHandle = GlobalAlloc(GMEM_MOVEABLE | GMEM_NODISCARD, 0);
newStream->supportHandle = GlobalAlloc(GMEM_MOVEABLE | GMEM_NODISCARD |
GMEM_SHARE, 0);
}
/*
......
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