src/video/windows/SDL_windowswindow.c
changeset 12906 bd5a067d1fd8
parent 12503 806492103856
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Tue Jun 25 11:47:02 2019 +0300
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Wed Jun 26 01:29:01 2019 -0400
     1.3 @@ -386,7 +386,7 @@
     1.4      titleLen = GetWindowTextLength(hwnd);
     1.5      title = SDL_small_alloc(TCHAR, titleLen + 1, &isstack);
     1.6      if (title) {
     1.7 -        titleLen = GetWindowText(hwnd, title, titleLen);
     1.8 +        titleLen = GetWindowText(hwnd, title, titleLen + 1);
     1.9      } else {
    1.10          titleLen = 0;
    1.11      }