user32-Mouse_Message_Hwnd: Use malloc() instead of HeapAlloc() in winex11.

This commit is contained in:
Zebediah Figura 2022-04-23 17:52:17 -05:00
parent 7b5a66b852
commit d589a0bc44

View File

@ -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 */
+ {