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
d5ba7451
Commit
d5ba7451
authored
Nov 18, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Avoid sending window messages in FindWindowExW.
parent
c56ba461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
win.c
dlls/user32/tests/win.c
+0
-3
win.c
dlls/user32/win.c
+1
-1
No files found.
dlls/user32/tests/win.c
View file @
d5ba7451
...
...
@@ -7055,7 +7055,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
""
);
ok
(
found
==
NULL
,
"expected a NULL hwnd
\n
"
);
todo_wine
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
num_gettext_msgs
=
0
;
...
...
@@ -7066,7 +7065,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
"caption"
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
todo_wine
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
DestroyWindow
(
hwnd
);
...
...
@@ -7077,7 +7075,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
""
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
todo_wine
ok
(
num_gettext_msgs
==
0
,
"got %u WM_GETTEXT messages
\n
"
,
num_gettext_msgs
);
num_gettext_msgs
=
0
;
...
...
dlls/user32/win.c
View file @
d5ba7451
...
...
@@ -1941,7 +1941,7 @@ HWND WINAPI FindWindowExW( HWND parent, HWND child, LPCWSTR className, LPCWSTR t
{
while
(
list
[
i
])
{
if
(
GetWindowTextW
(
list
[
i
],
buffer
,
len
+
1
))
if
(
InternalGetWindowText
(
list
[
i
],
buffer
,
len
+
1
))
{
if
(
!
strcmpiW
(
buffer
,
title
))
break
;
}
...
...
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