aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32notify.c')
-rw-r--r--src/w32notify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32notify.c b/src/w32notify.c
index 576cf844dab..71787c45db8 100644
--- a/src/w32notify.c
+++ b/src/w32notify.c
@@ -144,8 +144,9 @@ send_notifications (BYTE *info, DWORD info_size, void *desc,
144 if (!notification_buffer_in_use) 144 if (!notification_buffer_in_use)
145 { 145 {
146 if (info_size) 146 if (info_size)
147 memcpy (file_notifications, info, info_size); 147 memcpy (file_notifications, info,
148 notifications_size = info_size; 148 min (info_size, sizeof (file_notifications)));
149 notifications_size = min (info_size, sizeof (file_notifications));
149 notifications_desc = desc; 150 notifications_desc = desc;
150 /* If PostMessage fails, the message queue is full. If that 151 /* If PostMessage fails, the message queue is full. If that
151 happens, the last thing they will worry about is file 152 happens, the last thing they will worry about is file