WinRT: Fixed format string for error message.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 13 Apr 2015 20:52:18 +0200
changeset 9557e05c7ad6ec57
parent 9556 db92b9d74129
child 9558 4bab88dd387e
WinRT: Fixed format string for error message.
src/video/winrt/SDL_winrtvideo.cpp
     1.1 --- a/src/video/winrt/SDL_winrtvideo.cpp	Sun Apr 12 21:02:21 2015 -0400
     1.2 +++ b/src/video/winrt/SDL_winrtvideo.cpp	Mon Apr 13 20:52:18 2015 +0200
     1.3 @@ -325,7 +325,7 @@
     1.4          if (SDL_EGL_ChooseConfig(_this) != 0) {
     1.5              char buf[512];
     1.6              SDL_snprintf(buf, sizeof(buf), "SDL_EGL_ChooseConfig failed: %s", SDL_GetError());
     1.7 -            return SDL_SetError(buf);
     1.8 +            return SDL_SetError("%s", buf);
     1.9          }
    1.10  
    1.11          if (video_data->winrtEglWindow) {   /* ... is the 'old' version of ANGLE/WinRT being used? */