From fb9cc9cc6ed485ee141e6e1116920f111a267d80 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Fri, 5 Feb 1999 17:49:04 +0000 Subject: [PATCH] (construct_drag_n_drop): Call DraqQueryPoint before recording drop position. --- src/w32term.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index 8a53ac2f7f2..326dedbd3e0 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1972,14 +1972,15 @@ construct_drag_n_drop (result, msg, f) result->timestamp = msg->msg.time; result->modifiers = msg->dwModifiers; + hdrop = (HDROP) msg->msg.wParam; + DragQueryPoint (hdrop, &p); + p.x = LOWORD (msg->msg.lParam); p.y = HIWORD (msg->msg.lParam); ScreenToClient (msg->msg.hwnd, &p); XSETINT (result->x, p.x); XSETINT (result->y, p.y); - hdrop = (HDROP) msg->msg.wParam; - DragQueryPoint (hdrop, &p); num_files = DragQueryFile (hdrop, 0xFFFFFFFF, NULL, 0); files = Qnil; -- 2.39.2