http://bugs.winehq.org/show_bug.cgi?id=20129
--- Comment #8 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-10-04 10:16:49 CDT --- Below is the test, this passes in XP, but fails in wine, so indeed FindWindow cause the bug. I'll fix a patch
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index f1f590c..367bfff 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5477,6 +5477,9 @@ static void test_GetWindowModuleFileName(void)
hwnd = FindWindow("Shell_TrayWnd", NULL); ok(IsWindow(hwnd) || broken(!hwnd), "got invalid tray window %p\n", hwnd); + hwnd = FindWindow("Shell_TrayWnd", buf2); + trace("Executing Findow test qq\n"); + ok(hwnd != 0, "got invalid tray window %p\n", hwnd); SetLastError(0xdeadbeef); ret1 = pGetWindowModuleFileNameA(hwnd, buf1, sizeof(buf1)); ok(!ret1 || broken(ret1), /* win98 */ "expected 0, got %u\n", ret1);