mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
Do a more correct check in EDIT_IsInsideDialog ()
svn path=/trunk/; revision=33913
This commit is contained in:
parent
9fe71b1a02
commit
f1d9b70f81
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue