mirror of
https://github.com/yawut/SDL.git
synced 2026-06-16 05:29:29 -05:00
Wayland: Fixed accessing not fully initialized window if no memory available.
The CreateWindow() implementation returned 0 on no more memory instead of -1.
This commit is contained in:
parent
98aaddbdde
commit
74bc344ce7
|
|
@ -147,7 +147,7 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window)
|
|||
|
||||
data = calloc(1, sizeof *data);
|
||||
if (data == NULL)
|
||||
return 0;
|
||||
return SDL_OutOfMemory();
|
||||
|
||||
c = _this->driverdata;
|
||||
window->driverdata = data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user