mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 10:17:26 +00:00
winemac.drv: Call GlobalReAlloc with GMEM_MOVEABLE flag.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
This commit is contained in:
parent
dfd44bb979
commit
6299e8a54c
|
@ -105,7 +105,7 @@ static HANDLE get_pasteboard_data(UINT64 pasteboard, UINT desired_format)
|
|||
params.data = GlobalLock(handle);
|
||||
status = MACDRV_CALL(dnd_get_data, ¶ms);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue