projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0922e75
)
; Fix unclean code in w32fns.c
author
Eli Zaretskii
<eliz@gnu.org>
Sun, 30 Oct 2022 12:45:18 +0000
(14:45 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sun, 30 Oct 2022 12:45:18 +0000
(14:45 +0200)
* src/w32fns.c (setup_w32_kbdhook): Fix a typo and check errors
from the call to StringFromGUID2. Reported by Juanma Barranquero
<lekktu@gmail.com>.
src/w32fns.c
patch
|
blob
|
history
diff --git
a/src/w32fns.c
b/src/w32fns.c
index 5f652ae9e4654f6d197549b99a082662e82efe62..93b7f80f268c5d3e8827ccdb2111596827d02f20 100644
(file)
--- a/
src/w32fns.c
+++ b/
src/w32fns.c
@@
-2734,8
+2734,7
@@
setup_w32_kbdhook (void)
int i;
CoCreateGuid (&guid);
- StringFromGUID2 (&guid, newTitle, 64);
- if (newTitle != NULL)
+ if (oldTitle != NULL && StringFromGUID2 (&guid, newTitle, 64))
{
GetConsoleTitleW (oldTitle, 1024);
SetConsoleTitleW (newTitle);