winemac.drv: Call GlobalReAlloc with GMEM_MOVEABLE flag.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
This commit is contained in:
Rémi Bernon 2022-11-19 17:13:25 +01:00 committed by Alexandre Julliard
parent dfd44bb979
commit 6299e8a54c

View file

@ -105,7 +105,7 @@ static HANDLE get_pasteboard_data(UINT64 pasteboard, UINT desired_format)
params.data = GlobalLock(handle);
status = MACDRV_CALL(dnd_get_data, &params);
GlobalUnlock(handle);
if (!status) return GlobalReAlloc(handle, params.size, 0);
if (!status) return GlobalReAlloc(handle, params.size, GMEM_MOVEABLE);
GlobalFree(handle);
if (status != STATUS_BUFFER_OVERFLOW) return 0;
}