mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[Win32k]
- Fix crash when the exception is thrown. svn path=/trunk/; revision=57779
This commit is contained in:
parent
7450523726
commit
edf7b69357
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue