Skip to content

Commit

Permalink
Don't fail initialization if the helper window class already exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 23, 2014
1 parent a5f52ac commit b80f4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windows/SDL_windowswindow.c
Expand Up @@ -673,7 +673,7 @@ SDL_HelperWindowCreate(void)

/* Register the class. */
SDL_HelperWindowClass = RegisterClass(&wce);
if (SDL_HelperWindowClass == 0) {
if (SDL_HelperWindowClass == 0 && GetLastError() != ERROR_CLASS_ALREADY_EXISTS) {
return WIN_SetError("Unable to create Helper Window Class");
}

Expand Down

0 comments on commit b80f4f9

Please sign in to comment.