Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e9f6ff8c
Commit
e9f6ff8c
authored
Oct 13, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Don't test GetWindowModuleFileName() on windows belonging to another process.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55777
parent
44ab1206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
win.c
dlls/user32/tests/win.c
+0
-15
No files found.
dlls/user32/tests/win.c
View file @
e9f6ff8c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment