aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32inevt.c2
-rw-r--r--src/w32notify.c5
-rw-r--r--src/w32term.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index 06629d37cf6..2cbf31efda3 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -624,7 +624,7 @@ handle_file_notifications (struct input_event *hold_quit)
624 Lisp_Object action = lispy_file_action (fni->Action); 624 Lisp_Object action = lispy_file_action (fni->Action);
625 625
626 inev.kind = FILE_NOTIFY_EVENT; 626 inev.kind = FILE_NOTIFY_EVENT;
627 inev.code = (ptrdiff_t)notifications_desc; 627 inev.code = (ptrdiff_t)XINT (XIL ((EMACS_INT)notifications_desc));
628 inev.timestamp = GetTickCount (); 628 inev.timestamp = GetTickCount ();
629 inev.modifiers = 0; 629 inev.modifiers = 0;
630 inev.frame_or_window = callback; 630 inev.frame_or_window = callback;
diff --git a/src/w32notify.c b/src/w32notify.c
index f14621001a8..9fcd15e7f8f 100644
--- a/src/w32notify.c
+++ b/src/w32notify.c
@@ -600,8 +600,9 @@ w32_get_watch_object (void *desc)
600{ 600{
601 Lisp_Object descriptor = XIL ((EMACS_INT)desc); 601 Lisp_Object descriptor = XIL ((EMACS_INT)desc);
602 602
603 /* This is called from the input queue handling code, so we cannot 603 /* This is called from the input queue handling code, inside a
604 possibly QUIT if watch_list is not in the right condition. */ 604 critical section, so we cannot possibly QUIT if watch_list is not
605 in the right condition. */
605 return NILP (watch_list) ? Qnil : assoc_no_quit (descriptor, watch_list); 606 return NILP (watch_list) ? Qnil : assoc_no_quit (descriptor, watch_list);
606} 607}
607 608
diff --git a/src/w32term.c b/src/w32term.c
index c00bbe0f3cd..3ebd849ec31 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3305,7 +3305,8 @@ queue_notifications (struct input_event *event, W32Msg *msg, struct frame *f,
3305 Lisp_Object action = lispy_file_action (fni->Action); 3305 Lisp_Object action = lispy_file_action (fni->Action);
3306 3306
3307 event->kind = FILE_NOTIFY_EVENT; 3307 event->kind = FILE_NOTIFY_EVENT;
3308 event->code = (ptrdiff_t)notifications_desc; 3308 event->code
3309 = (ptrdiff_t)XINT (XIL ((EMACS_INT)notifications_desc));
3309 event->timestamp = msg->msg.time; 3310 event->timestamp = msg->msg.time;
3310 event->modifiers = 0; 3311 event->modifiers = 0;
3311 event->frame_or_window = callback; 3312 event->frame_or_window = callback;