This commit is contained in:
Sam Lantinga
2008-12-13 06:27:58 +00:00
parent ca75771ea7
commit b252c87d35

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;
}