Don't fail initialization if the helper window class already exists.
This commit is contained in:
parent
0438b40945
commit
c505974f89
1 changed files with 1 additions and 1 deletions
|
@ -673,7 +673,7 @@ SDL_HelperWindowCreate(void)
|
||||||
|
|
||||||
/* Register the class. */
|
/* Register the class. */
|
||||||
SDL_HelperWindowClass = RegisterClass(&wce);
|
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");
|
return WIN_SetError("Unable to create Helper Window Class");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue