Skip to content

Commit 350b097

Browse files
authored
SDL_GetWindowWMInfo returns boolean
1 parent 48fa0df commit 350b097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/sdl4ogre/sdlwindowhelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
2121
struct SDL_SysWMinfo wmInfo;
2222
SDL_VERSION(&wmInfo.version);
2323

24-
if (SDL_GetWindowWMInfo(mSDLWindow, &wmInfo) == -1)
24+
if (!SDL_GetWindowWMInfo(mSDLWindow, &wmInfo))
2525
throw std::runtime_error("Couldn't get WM Info!");
2626

2727
Ogre::String winHandle;

0 commit comments

Comments
 (0)