Windows: Fixed format string for error message.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 11 Apr 2015 20:43:11 +0200
changeset 95499ee07b0b24f6
parent 9548 2563cb778950
child 9550 e32baab8aef9
child 9551 950a1a7b4c3c
Windows: Fixed format string for error message.
src/render/direct3d11/SDL_render_d3d11.c
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.c	Sat Apr 11 20:41:49 2015 +0200
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.c	Sat Apr 11 20:43:11 2015 +0200
     1.3 @@ -2916,7 +2916,7 @@
     1.4           */
     1.5          char errorMessage[1024];
     1.6          SDL_snprintf(errorMessage, sizeof(errorMessage), __FUNCTION__ ", Convert Pixels failed: %s", SDL_GetError());
     1.7 -        SDL_SetError(errorMessage);
     1.8 +        SDL_SetError("%s", errorMessage);
     1.9          goto done;
    1.10      }
    1.11