Explorar o código

Fixed Windows warning

Sam Lantinga %!s(int64=9) %!d(string=hai) anos
pai
achega
9da4717d12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/windows/SDL_windowsmessagebox.c

+ 1 - 1
src/video/windows/SDL_windowsmessagebox.c

@@ -485,7 +485,7 @@ WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
         ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
     }
 
-    *buttonid = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
+    *buttonid = (int)DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
 
     FreeDialogData(dialog);
     return 0;