diff options
author | Andrew Innes <[email protected]> | 1999-02-05 17:49:04 +0000 |
---|---|---|
committer | Andrew Innes <[email protected]> | 1999-02-05 17:49:04 +0000 |
commit | fb9cc9cc6ed485ee141e6e1116920f111a267d80 (patch) | |
tree | 81e0ef9f5a9cc0df2a150e66a003b0b5eca9130f /src/w32term.c | |
parent | 41a3354e11e2a16599c192c3e26f12a8ffa1b9bc (diff) |
(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 8a53ac2f7f..326dedbd3e 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; |