aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 5f652ae9e46..93b7f80f268 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -2734,8 +2734,7 @@ setup_w32_kbdhook (void)
2734 int i; 2734 int i;
2735 2735
2736 CoCreateGuid (&guid); 2736 CoCreateGuid (&guid);
2737 StringFromGUID2 (&guid, newTitle, 64); 2737 if (oldTitle != NULL && StringFromGUID2 (&guid, newTitle, 64))
2738 if (newTitle != NULL)
2739 { 2738 {
2740 GetConsoleTitleW (oldTitle, 1024); 2739 GetConsoleTitleW (oldTitle, 1024);
2741 SetConsoleTitleW (newTitle); 2740 SetConsoleTitleW (newTitle);