CreateStreamOnHGlobal should alloc a shared memory block if supplied

handle is 0.
oldstable
Huw D M Davies 2000-07-08 11:46:16 +00:00 committed by Alexandre Julliard
parent 14264c0fd6
commit 9bc7912e32
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/*