Răsfoiți Sursa

WinRT: Fixed format string for error message.

Philipp Wiesemann 10 ani în urmă
părinte
comite
0fbd3372d4
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/video/winrt/SDL_winrtvideo.cpp

+ 1 - 1
src/video/winrt/SDL_winrtvideo.cpp

@@ -325,7 +325,7 @@ WINRT_CreateWindow(_THIS, SDL_Window * window)
         if (SDL_EGL_ChooseConfig(_this) != 0) {
             char buf[512];
             SDL_snprintf(buf, sizeof(buf), "SDL_EGL_ChooseConfig failed: %s", SDL_GetError());
-            return SDL_SetError(buf);
+            return SDL_SetError("%s", buf);
         }
 
         if (video_data->winrtEglWindow) {   /* ... is the 'old' version of ANGLE/WinRT being used? */