From f1d9b70f81c9a6d7f670313f963c68b0e85f717f Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Tue, 10 Jun 2008 00:31:10 +0000 Subject: [PATCH] Do a more correct check in EDIT_IsInsideDialog () svn path=/trunk/; revision=33913 --- reactos/dll/win32/user32/controls/edit.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/reactos/dll/win32/user32/controls/edit.c b/reactos/dll/win32/user32/controls/edit.c index 7f783987d59..ca896acacea 100644 --- a/reactos/dll/win32/user32/controls/edit.c +++ b/reactos/dll/win32/user32/controls/edit.c @@ -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; }