commit | c73c9971427538d8183e57dc10b51566839bebb2 | [log] [tgz] |
---|---|---|
author | Ryan C. Gordon <icculus@icculus.org> | Wed Jun 26 01:29:01 2019 -0400 |
committer | Ryan C. Gordon <icculus@icculus.org> | Wed Jun 26 01:29:01 2019 -0400 |
tree | ad417887de92b6f5ab09ebbcdaec1edb3a0a7b72 | |
parent | 01ec6cbd48a547a9cb095714ab4883ee33ffadcc [diff] |
windows: Call GetWindowText() with the correct parameters (thanks, Zebediah!) GetWindowText() wants you to tell it the size of the buffer--including the terminating NULL char--but we weren't counting that last char, losing the last char of the string in the process. This was only seen with the special case of SDL_CreateWindowFrom() to use an existing native window, not the usual SDL_CreateWindow() codepath. Fixes Bugzilla #4696.