Merge from trunk.
Make FindWindow case insensitive. Fixes bug 919.
Modified:
branches/ros-branch-0_2_8/reactos/subsys/win32k/ntuser/window.c
_____
Modified:
branches/ros-branch-0_2_8/reactos/subsys/win32k/ntuser/window.c
--- branches/ros-branch-0_2_8/reactos/subsys/win32k/ntuser/window.c
2005-10-21 21:13:07 UTC (rev 18666)
+++ branches/ros-branch-0_2_8/reactos/subsys/win32k/ntuser/window.c
2005-10-21 21:16:36 UTC (rev 18667)
@@ -2274,7 +2274,7 @@
/* Do not send WM_GETTEXT messages in the kernel mode version!
The user mode version however calls GetWindowText() which
will
send WM_GETTEXT messages to windows belonging to its
processes */
- if((!CheckWindowName || !RtlCompareUnicodeString(WindowName,
&(Child->WindowName), FALSE)) &&
+ if((!CheckWindowName || !RtlCompareUnicodeString(WindowName,
&(Child->WindowName), TRUE)) &&
(!ClassAtom || Child->Class->Atom == ClassAtom))
{
Ret = Child->hSelf;
@@ -2453,7 +2453,7 @@
The user mode version however calls GetWindowText()
which will
send WM_GETTEXT messages to windows belonging to its
processes */
WindowMatches = !CheckWindowName ||
!RtlCompareUnicodeString(
- &WindowName,
&TopLevelWindow->WindowName, FALSE);
+ &WindowName,
&TopLevelWindow->WindowName, TRUE);
ClassMatches = !CheckClassName ||
ClassAtom == TopLevelWindow->Class->Atom;
Make FindWindow case insensitive. Fixes bug 919.
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
_____
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
--- trunk/reactos/subsys/win32k/ntuser/window.c 2005-10-21 20:31:59 UTC
(rev 18665)
+++ trunk/reactos/subsys/win32k/ntuser/window.c 2005-10-21 21:13:07 UTC
(rev 18666)
@@ -2274,7 +2274,7 @@
/* Do not send WM_GETTEXT messages in the kernel mode version!
The user mode version however calls GetWindowText() which
will
send WM_GETTEXT messages to windows belonging to its
processes */
- if((!CheckWindowName || !RtlCompareUnicodeString(WindowName,
&(Child->WindowName), FALSE)) &&
+ if((!CheckWindowName || !RtlCompareUnicodeString(WindowName,
&(Child->WindowName), TRUE)) &&
(!ClassAtom || Child->Class->Atom == ClassAtom))
{
Ret = Child->hSelf;
@@ -2453,7 +2453,7 @@
The user mode version however calls GetWindowText()
which will
send WM_GETTEXT messages to windows belonging to its
processes */
WindowMatches = !CheckWindowName ||
!RtlCompareUnicodeString(
- &WindowName,
&TopLevelWindow->WindowName, FALSE);
+ &WindowName,
&TopLevelWindow->WindowName, TRUE);
ClassMatches = !CheckClassName ||
ClassAtom == TopLevelWindow->Class->Atom;