From 26b4898ac21ce2226fed1ac8975e4bc04ad4c304 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 11 Apr 2015 20:43:11 +0200 Subject: [PATCH] Windows: Fixed format string for error message. --- src/render/direct3d11/SDL_render_d3d11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.c b/src/render/direct3d11/SDL_render_d3d11.c index c8a487a6b..3cc212831 100644 --- a/src/render/direct3d11/SDL_render_d3d11.c +++ b/src/render/direct3d11/SDL_render_d3d11.c @@ -2916,7 +2916,7 @@ D3D11_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect, */ char errorMessage[1024]; SDL_snprintf(errorMessage, sizeof(errorMessage), __FUNCTION__ ", Convert Pixels failed: %s", SDL_GetError()); - SDL_SetError(errorMessage); + SDL_SetError("%s", errorMessage); goto done; }