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