diff --git a/src/video/win32/SDL_win32events.c b/src/video/win32/SDL_win32events.c index 682832e05..f25f33958 100644 --- a/src/video/win32/SDL_win32events.c +++ b/src/video/win32/SDL_win32events.c @@ -732,7 +732,7 @@ WIN_SetError(const char *prefix) FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, buffer, SDL_arraysize(buffer), NULL); message = WIN_StringToUTF8(buffer); - SDL_SetError("%s%s%s", prefix ? prefix : "", prefix ? ":" : "", message); + SDL_SetError("%s%s%s", prefix ? prefix : "", prefix ? ": " : "", message); SDL_free(message); } diff --git a/src/video/win32/SDL_win32opengl.c b/src/video/win32/SDL_win32opengl.c index 47f09d9ab..d3abd00cb 100644 --- a/src/video/win32/SDL_win32opengl.c +++ b/src/video/win32/SDL_win32opengl.c @@ -536,7 +536,7 @@ WIN_GL_CreateContext(_THIS, SDL_Window * window) } if (!context) { - SDL_SetError("Could not create GL context"); + WIN_SetError("Could not create GL context"); return NULL; }