aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorEli Zaretskii2012-10-18 07:13:29 +0200
committerEli Zaretskii2012-10-18 07:13:29 +0200
commit0b86d359eb52cef840345f7fd09b5f4342aede03 (patch)
treecf6f40a1e99685727a2004930bfab592724478dd /src/w32term.c
parent9a85d8539c1685b90599a77c5b7872c8ce1a86c2 (diff)
downloademacs-0b86d359eb52cef840345f7fd09b5f4342aede03.tar.gz
emacs-0b86d359eb52cef840345f7fd09b5f4342aede03.zip
Use XIL/XLI instead of make_number/XINT for converting descriptor to a ptr.
More safety checks in using the pointer obtained from descriptor. Not tested yet.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 1285b5a06f6..c00bbe0f3cd 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3282,7 +3282,7 @@ queue_notifications (struct input_event *event, W32Msg *msg, struct frame *f,
3282 { 3282 {
3283 DWORD info_size = notifications_size; 3283 DWORD info_size = notifications_size;
3284 Lisp_Object cs = intern ("utf-16le"); 3284 Lisp_Object cs = intern ("utf-16le");
3285 Lisp_Object obj = w32_get_watch_object (make_number (notifications_desc)); 3285 Lisp_Object obj = w32_get_watch_object (notifications_desc);
3286 3286
3287 /* notifications_size could be zero when the buffer of 3287 /* notifications_size could be zero when the buffer of
3288 notifications overflowed on the OS level, or when the 3288 notifications overflowed on the OS level, or when the