mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +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,14 +4095,9 @@ 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