Skip to content
Permalink
Browse files

Windows: Fixed format string for error message.

  • Loading branch information
philippwiesemann committed Apr 11, 2015
1 parent 56c82bc commit 26b4898ac21ce2226fed1ac8975e4bc04ad4c304
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 26b4898

Please sign in to comment.