Author: jimtabor
Date: Tue Apr 15 02:26:47 2014
New Revision: 62751
URL:
http://svn.reactos.org/svn/reactos?rev=62751&view=rev
Log:
- Fix AbiWord Crash when sizing.
Modified:
trunk/reactos/win32ss/user/ntuser/callback.c
Modified: trunk/reactos/win32ss/user/ntuser/callback.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/callba…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/callback.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/callback.c [iso-8859-1] Tue Apr 15 02:26:47 2014
@@ -97,9 +97,18 @@
*pWnd = ClientInfo->CallbackWnd.pWnd;
*pActCtx = ClientInfo->CallbackWnd.pActCtx;
- ClientInfo->CallbackWnd.hWnd = hWndS;
- ClientInfo->CallbackWnd.pWnd = DesktopHeapAddressToUser(Window);
- ClientInfo->CallbackWnd.pActCtx = Window->pActCtx;
+ if (Window)
+ {
+ ClientInfo->CallbackWnd.hWnd = hWndS;
+ ClientInfo->CallbackWnd.pWnd = DesktopHeapAddressToUser(Window);
+ ClientInfo->CallbackWnd.pActCtx = Window->pActCtx;
+ }
+ else //// What if Dispatching WM_SYS/TIMER with NULL window? Fix AbiWord Crash when
sizing.
+ {
+ ClientInfo->CallbackWnd.hWnd = hWndS;
+ ClientInfo->CallbackWnd.pWnd = Window;
+ ClientInfo->CallbackWnd.pActCtx = 0;
+ }
}
static VOID