Skip to content

Commit

Permalink
Windows: Fixed format string for error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Apr 11, 2015
1 parent 56c82bc commit 26b4898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/direct3d11/SDL_render_d3d11.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 26b4898

Please sign in to comment.