Skip to content
Snippets Groups Projects
Commit 9bc7912e authored by Huw D. M. Davies's avatar Huw D. M. Davies Committed by Alexandre Julliard
Browse files

CreateStreamOnHGlobal should alloc a shared memory block if supplied

handle is 0.
parent 14264c0f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment