Author: weiden
Date: Mon Jun 9 19:31:10 2008
New Revision: 33913
URL:
http://svn.reactos.org/svn/reactos?rev=33913&view=rev
Log:
Do a more correct check in EDIT_IsInsideDialog ()
Modified:
trunk/reactos/dll/win32/user32/controls/edit.c
Modified: trunk/reactos/dll/win32/user32/controls/edit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/…
==============================================================================
--- trunk/reactos/dll/win32/user32/controls/edit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/controls/edit.c [iso-8859-1] Mon Jun 9 19:31:10 2008
@@ -4095,13 +4095,8 @@
{
if (es->hwndParent && es->hwndParent != GetDesktopWindow())
{
- PWINDOW pParent = ValidateHwnd( es->hwndParent );
-
- /* TODO: This should really check fnID instead of ExtraDataSize I guess */
- if (pParent && pParent->ExtraDataSize >= DLGWINDOWEXTRA)
- {
+ if (GetClassLongW (es->hwndParent, GCW_ATOM) == (DWORD)MAKEINTATOM(32770))
return TRUE;
- }
}
return FALSE;
}