CreateStreamOnHGlobal should alloc a shared memory block if supplied
handle is 0.
This commit is contained in:
parent
14264c0fd6
commit
9bc7912e32
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue