Module: wine Branch: master Commit: e9f6ff8cd401c8e2cf3c12e155a8ea33c97abcd3 URL: https://gitlab.winehq.org/wine/wine/-/commit/e9f6ff8cd401c8e2cf3c12e155a8ea3...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Oct 13 17:53:59 2023 +0200
user32/tests: Don't test GetWindowModuleFileName() on windows belonging to another process.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55777
---
dlls/user32/tests/win.c | 15 --------------- 1 file changed, 15 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index cf5f0d932e8..2fd31be3314 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -8777,27 +8777,12 @@ static void test_GetWindowModuleFileName(void)
DestroyWindow(hwnd);
- buf2[0] = 0; hwnd = (HWND)0xdeadbeef; SetLastError(0xdeadbeef); ret1 = pGetWindowModuleFileNameA(hwnd, buf1, sizeof(buf1)); ok(!ret1, "expected 0, got %u\n", ret1); ok(GetLastError() == ERROR_INVALID_WINDOW_HANDLE, "expected ERROR_INVALID_WINDOW_HANDLE, got %lu\n", GetLastError()); - - hwnd = FindWindowA("Shell_TrayWnd", NULL); - ok(IsWindow(hwnd) || broken(!hwnd), "got invalid tray window %p\n", hwnd); - SetLastError(0xdeadbeef); - ret1 = pGetWindowModuleFileNameA(hwnd, buf1, sizeof(buf1)); - ok(!ret1, "expected 0, got %u\n", ret1); - ret1 = GetModuleFileNameA(0, buf1, sizeof(buf1)); - hwnd = GetDesktopWindow(); - ok(IsWindow(hwnd), "got invalid desktop window %p\n", hwnd); - SetLastError(0xdeadbeef); - ret2 = pGetWindowModuleFileNameA(hwnd, buf2, sizeof(buf2)); - ok(!ret2 || - ret1 == ret2, /* vista */ - "expected 0 or %u, got %u %s\n", ret1, ret2, buf2); }
static void test_hwnd_message(void)