Skip to content

Commit 5aaa06b

Browse files
committed
- Fix AbiWord Crash when sizing.
svn path=/trunk/; revision=62751
1 parent 9b7d5bc commit 5aaa06b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

reactos/win32ss/user/ntuser/callback.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,18 @@ IntSetTebWndCallback (HWND * hWnd, PWND * pWnd, PVOID * pActCtx)
9797
*pWnd = ClientInfo->CallbackWnd.pWnd;
9898
*pActCtx = ClientInfo->CallbackWnd.pActCtx;
9999

100-
ClientInfo->CallbackWnd.hWnd = hWndS;
101-
ClientInfo->CallbackWnd.pWnd = DesktopHeapAddressToUser(Window);
102-
ClientInfo->CallbackWnd.pActCtx = Window->pActCtx;
100+
if (Window)
101+
{
102+
ClientInfo->CallbackWnd.hWnd = hWndS;
103+
ClientInfo->CallbackWnd.pWnd = DesktopHeapAddressToUser(Window);
104+
ClientInfo->CallbackWnd.pActCtx = Window->pActCtx;
105+
}
106+
else //// What if Dispatching WM_SYS/TIMER with NULL window? Fix AbiWord Crash when sizing.
107+
{
108+
ClientInfo->CallbackWnd.hWnd = hWndS;
109+
ClientInfo->CallbackWnd.pWnd = Window;
110+
ClientInfo->CallbackWnd.pActCtx = 0;
111+
}
103112
}
104113

105114
static VOID

0 commit comments

Comments
 (0)