- Fix crash when the exception is thrown.

svn path=/trunk/; revision=57779
This commit is contained in:
James Tabor 2012-11-28 23:05:57 +00:00
parent 7450523726
commit edf7b69357

View file

@ -1088,6 +1088,8 @@ NtUserEndPaint(HWND hWnd, CONST PAINTSTRUCT* pUnsafePs)
RETURN(FALSE);
}
UserRefObjectCo(Window, &Ref); // Here for the exception.
_SEH2_TRY
{
ProbeForRead(pUnsafePs, sizeof(*pUnsafePs), 1);
@ -1103,8 +1105,6 @@ NtUserEndPaint(HWND hWnd, CONST PAINTSTRUCT* pUnsafePs)
RETURN(FALSE);
}
UserRefObjectCo(Window, &Ref);
RETURN(IntEndPaint(Window, &Ps));
CLEANUP: