mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 14:47:31 +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())
|
if (es->hwndParent && es->hwndParent != GetDesktopWindow())
|
||||||
{
|
{
|
||||||
PWINDOW pParent = ValidateHwnd( es->hwndParent );
|
if (GetClassLongW (es->hwndParent, GCW_ATOM) == (DWORD)MAKEINTATOM(32770))
|
||||||
|
|
||||||
/* TODO: This should really check fnID instead of ExtraDataSize I guess */
|
|
||||||
if (pParent && pParent->ExtraDataSize >= DLGWINDOWEXTRA)
|
|
||||||
{
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue