mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
user32-Mouse_Message_Hwnd: Use malloc() instead of HeapAlloc() in winex11.
This commit is contained in:
parent
7b5a66b852
commit
d589a0bc44
@ -57,10 +57,10 @@ index 550c5f06f37..8204e3dba9e 100644
|
||||
+ if (hrgn)
|
||||
+ {
|
||||
+ if (!(size = NtGdiGetRegionData( hrgn, 0, NULL ))) return;
|
||||
+ if (!(data = HeapAlloc( GetProcessHeap(), 0, size ))) return;
|
||||
+ if (!(data = malloc( size ))) return;
|
||||
+ if (!NtGdiGetRegionData( hrgn, size, data ))
|
||||
+ {
|
||||
+ HeapFree( GetProcessHeap(), 0, data );
|
||||
+ free( data );
|
||||
+ return;
|
||||
+ }
|
||||
+ SERVER_START_REQ( set_layer_region )
|
||||
@ -73,7 +73,7 @@ index 550c5f06f37..8204e3dba9e 100644
|
||||
+ wine_server_call( req );
|
||||
+ }
|
||||
+ SERVER_END_REQ;
|
||||
+ HeapFree( GetProcessHeap(), 0, data );
|
||||
+ free( data );
|
||||
+ }
|
||||
+ else /* clear existing region */
|
||||
+ {
|
||||
|
Loading…
Reference in New Issue
Block a user