--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403327
This commit is contained in:
Sam Lantinga 2008-12-13 06:27:58 +00:00
parent 8437f9f8d2
commit 0e5cb512e3

View file

@ -527,9 +527,9 @@ SDL_HelperWindowDestroy(void)
/* Destroy the window. */
if (SDL_HelperWindow != NULL) {
if (DestroyWindow(SDL_HelperWindow) == 0) {
SDL_SetError("Unable to destroy Helper Window: error %d.",
GetLastError());
return;
SDL_SetError("Unable to destroy Helper Window: error %d.",
GetLastError());
return;
}
SDL_HelperWindow = NULL;
}
@ -537,9 +537,9 @@ SDL_HelperWindowDestroy(void)
/* Unregister the class. */
if (SDL_HelperWindowClass != 0) {
if ((UnregisterClass(SDL_HelperWindowClassName, hInstance)) == 0) {
SDL_SetError("Unable to destroy Helper Window Class: error %d.",
GetLastError());
return;
SDL_SetError("Unable to destroy Helper Window Class: error %d.",
GetLastError());
return;
}
SDL_HelperWindowClass = 0;
}