mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed bug 4839 - Read of uninitialized memory in Win32_ResizeWindowShape
(Thanks!)
This commit is contained in:
parent
758badffa5
commit
d5d34de4db
@ -34,6 +34,7 @@ Win32_CreateShaper(SDL_Window * window) {
|
|||||||
result->mode.mode = ShapeModeDefault;
|
result->mode.mode = ShapeModeDefault;
|
||||||
result->mode.parameters.binarizationCutoff = 1;
|
result->mode.parameters.binarizationCutoff = 1;
|
||||||
result->userx = result->usery = 0;
|
result->userx = result->usery = 0;
|
||||||
|
result->hasshape = SDL_FALSE;
|
||||||
result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData));
|
result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData));
|
||||||
((SDL_ShapeData*)result->driverdata)->mask_tree = NULL;
|
((SDL_ShapeData*)result->driverdata)->mask_tree = NULL;
|
||||||
/* Put some driver-data here. */
|
/* Put some driver-data here. */
|
||||||
|
Loading…
Reference in New Issue
Block a user