Commit eb447712 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Make GMEM_DDESHARE blocks owned by the calling module.

parent 1346740a
......@@ -283,7 +283,11 @@ HGLOBAL16 WINAPI GlobalAlloc16(
HANDLE16 owner = GetCurrentPDB16();
if (flags & GMEM_DDESHARE)
owner = GetExePtr(owner); /* Make it a module handle */
{
/* make it owned by the calling module */
STACK16FRAME *frame = CURRENT_STACK16;
owner = GetExePtr( frame->cs );
}
return GLOBAL_Alloc( flags, size, owner, WINE_LDT_FLAGS_DATA );
}
......
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