Skip to content

Commit

Permalink
SDL_GetWindowWMInfo returns boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jul 20, 2017
1 parent 48fa0df commit 350b097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/sdl4ogre/sdlwindowhelper.cpp
Expand Up @@ -21,7 +21,7 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
struct SDL_SysWMinfo wmInfo;
SDL_VERSION(&wmInfo.version);

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

Ogre::String winHandle;
Expand Down

0 comments on commit 350b097

Please sign in to comment.