src/video/windows/SDL_windowswindow.c
changeset 8238 9e09e1561e00
parent 8205 1a97f96f55cd
child 8253 75ad8ebb3768
equal deleted inserted replaced
8237:6cc44a5d9eef 8238:9e09e1561e00
   671     wce.lpszClassName = (LPCWSTR) SDL_HelperWindowClassName;
   671     wce.lpszClassName = (LPCWSTR) SDL_HelperWindowClassName;
   672     wce.hInstance = hInstance;
   672     wce.hInstance = hInstance;
   673 
   673 
   674     /* Register the class. */
   674     /* Register the class. */
   675     SDL_HelperWindowClass = RegisterClass(&wce);
   675     SDL_HelperWindowClass = RegisterClass(&wce);
   676     if (SDL_HelperWindowClass == 0) {
   676     if (SDL_HelperWindowClass == 0 && GetLastError() != ERROR_CLASS_ALREADY_EXISTS) {
   677         return WIN_SetError("Unable to create Helper Window Class");
   677         return WIN_SetError("Unable to create Helper Window Class");
   678     }
   678     }
   679 
   679 
   680     /* Create the window. */
   680     /* Create the window. */
   681     SDL_HelperWindow = CreateWindowEx(0, SDL_HelperWindowClassName,
   681     SDL_HelperWindow = CreateWindowEx(0, SDL_HelperWindowClassName,