From 8e5bf80622e5af917037611d2f750cc9d3a0263a Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 3 Jul 2008 07:05:50 +0000 Subject: [PATCH] - Fixed an issue with Avira AntiVir Personal, reported by Christoph von Wittich. - GetLastActivePopup is unimplemented and returns a zero. So User32 locally checks and sees the zero and passes it to win32k for processing. There an (kbug) exception is thrown. svn path=/trunk/; revision=34274 --- reactos/subsystems/win32/win32k/ntuser/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index e13040381a4..abad9a28c40 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -3634,6 +3634,8 @@ co_UserSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi) Wnd = Window->Wnd; + if (!Wnd) return 0; // No go on zero. + if ((INT)Index >= 0) { if ((Index + sizeof(LONG)) > Wnd->ExtraDataSize)