forked from Mirrors/wine-wine
shell32: Fix return value for DragQueryPoint.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47514
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 4c6aa8b2fa
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
parent
721e319aed
commit
7bad7c1387
|
@ -556,7 +556,7 @@ BOOL WINAPI DragQueryPoint(HDROP hDrop, POINT *p)
|
||||||
lpDropFileStruct = GlobalLock(hDrop);
|
lpDropFileStruct = GlobalLock(hDrop);
|
||||||
|
|
||||||
*p = lpDropFileStruct->pt;
|
*p = lpDropFileStruct->pt;
|
||||||
bRet = lpDropFileStruct->fNC;
|
bRet = !lpDropFileStruct->fNC;
|
||||||
|
|
||||||
GlobalUnlock(hDrop);
|
GlobalUnlock(hDrop);
|
||||||
return bRet;
|
return bRet;
|
||||||
|
|
|
@ -777,7 +777,7 @@ static LRESULT WINAPI drop_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARA
|
||||||
ok(num == strlen(DROPTEST_FILENAME), "got %u\n", num);
|
ok(num == strlen(DROPTEST_FILENAME), "got %u\n", num);
|
||||||
ok(!strcmp(filename, DROPTEST_FILENAME), "got %s\n", filename);
|
ok(!strcmp(filename, DROPTEST_FILENAME), "got %s\n", filename);
|
||||||
r = DragQueryPoint(hDrop, &pt);
|
r = DragQueryPoint(hDrop, &pt);
|
||||||
todo_wine ok(r == expected, "expected %d, got %d\n", expected, r);
|
ok(r == expected, "expected %d, got %d\n", expected, r);
|
||||||
ok(pt.x == 10, "expected 10, got %d\n", pt.x);
|
ok(pt.x == 10, "expected 10, got %d\n", pt.x);
|
||||||
ok(pt.y == 20, "expected 20, got %d\n", pt.y);
|
ok(pt.y == 20, "expected 20, got %d\n", pt.y);
|
||||||
DragFinish(hDrop);
|
DragFinish(hDrop);
|
||||||
|
|
|
@ -455,7 +455,7 @@ BOOL query_drag_drop(macdrv_query* query)
|
||||||
{
|
{
|
||||||
dropfiles->pt.x = pt.x;
|
dropfiles->pt.x = pt.x;
|
||||||
dropfiles->pt.y = pt.y;
|
dropfiles->pt.y = pt.y;
|
||||||
dropfiles->fNC = TRUE;
|
dropfiles->fNC = FALSE;
|
||||||
|
|
||||||
TRACE("sending WM_DROPFILES: hwnd %p pt %s %s\n", hwnd, wine_dbgstr_point(&pt),
|
TRACE("sending WM_DROPFILES: hwnd %p pt %s %s\n", hwnd, wine_dbgstr_point(&pt),
|
||||||
debugstr_w((WCHAR*)((char*)dropfiles + dropfiles->pFiles)));
|
debugstr_w((WCHAR*)((char*)dropfiles + dropfiles->pFiles)));
|
||||||
|
|
Loading…
Reference in New Issue