mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 03:33:28 +00:00
Fix the VID_SetCaption () bug here too
This commit is contained in:
parent
f837616025
commit
ea766e6203
1 changed files with 3 additions and 1 deletions
|
@ -1940,7 +1940,9 @@ void VID_MenuKey (int key)
|
|||
void VID_SetCaption (char *text)
|
||||
{
|
||||
if (text && *text) {
|
||||
SetWindowText(mainwindow,(LPSTR) va ("%s %s: %s", PROGRAM, VERSION, text));
|
||||
char *temp = strdup (text);
|
||||
SetWindowText(mainwindow,(LPSTR) va ("%s %s: %s", PROGRAM, VERSION, temp));
|
||||
free (temp);
|
||||
} else {
|
||||
SetWindowText(mainwindow,(LPSTR) va ("%s %s", PROGRAM, VERSION));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue