Commit 4d97d1a5 authored by Sam Lantinga's avatar Sam Lantinga

Whoops, return "" even if the window is invalid.

parent b59ef043
...@@ -1112,7 +1112,7 @@ SDL_SetWindowTitle(SDL_Window * window, const char *title) ...@@ -1112,7 +1112,7 @@ SDL_SetWindowTitle(SDL_Window * window, const char *title)
const char * const char *
SDL_GetWindowTitle(SDL_Window * window) SDL_GetWindowTitle(SDL_Window * window)
{ {
CHECK_WINDOW_MAGIC(window, NULL); CHECK_WINDOW_MAGIC(window, "");
return window->title ? window->title : ""; return window->title ? window->title : "";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment