Whoops, return "" even if the window is invalid.
This commit is contained in:
parent
b59ef043a6
commit
4d97d1a549
1 changed files with 1 additions and 1 deletions
|
@ -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 : "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue