diff options
author | Andrew Innes <andrewi@gnu.org> | 1999-02-05 17:49:04 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 1999-02-05 17:49:04 +0000 |
commit | 1902107ec95318f451d66fa2f7da12bf3e9b371a (patch) | |
tree | 7816bbeb08385327b43a0d163add2a5d8d377f86 /src/w32term.c | |
parent | 1db50edc7ec10a437777542efcfafc6c0a27df5b (diff) | |
download | emacs-1902107ec95318f451d66fa2f7da12bf3e9b371a.tar.gz |
(construct_drag_n_drop): Call DraqQueryPoint before
recording drop position.
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 5 |
1 files 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; |