Do a more correct check in EDIT_IsInsideDialog ()

svn path=/trunk/; revision=33913
This commit is contained in:
Thomas Bluemel 2008-06-10 00:31:10 +00:00
parent 9fe71b1a02
commit f1d9b70f81

View file

@ -4095,13 +4095,8 @@ static BOOL EDIT_IsInsideDialog(EDITSTATE *es)
{
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;
}