src/video/windows/SDL_windowswindow.c
changeset 8238 9e09e1561e00
parent 8205 1a97f96f55cd
child 8253 75ad8ebb3768
--- a/src/video/windows/SDL_windowswindow.c	Sat Feb 22 17:32:18 2014 -0800
+++ b/src/video/windows/SDL_windowswindow.c	Sat Feb 22 17:39:35 2014 -0800
@@ -673,7 +673,7 @@
 
     /* 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");
     }