forked from Green-Sky/tomato
Merge commit '852f2a6343518919e5ca8d3c1bbcab9f493e3cd8'
This commit is contained in:
4
external/sdl/SDL/test/testnativew32.c
vendored
4
external/sdl/SDL/test/testnativew32.c
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
||||
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@ -68,7 +68,7 @@ CreateWindowNative(int w, int h)
|
||||
CreateWindow("SDL Test", "", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, w, h, NULL, NULL, GetModuleHandle(NULL),
|
||||
NULL);
|
||||
if (hwnd == NULL) {
|
||||
if (!hwnd) {
|
||||
MessageBox(NULL, "Window Creation Failed!", "Error!",
|
||||
MB_ICONEXCLAMATION | MB_OK);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user