]> git.eshelyaron.com Git - emacs.git/commitdiff
(construct_drag_n_drop): Call DraqQueryPoint before
authorAndrew Innes <andrewi@gnu.org>
Fri, 5 Feb 1999 17:49:04 +0000 (17:49 +0000)
committerAndrew Innes <andrewi@gnu.org>
Fri, 5 Feb 1999 17:49:04 +0000 (17:49 +0000)
recording drop position.

src/w32term.c

index 8a53ac2f7f253f054e1168f5ea0b32acc57a8970..326dedbd3e0297f4846828e0dbe35ba18eac618f 100644 (file)
@@ -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;