projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7450523
)
[Win32k]
author
James Tabor
<james.tabor@reactos.org>
Wed, 28 Nov 2012 23:05:57 +0000
(23:05 +0000)
committer
James Tabor
<james.tabor@reactos.org>
Wed, 28 Nov 2012 23:05:57 +0000
(23:05 +0000)
- Fix crash when the exception is thrown.
svn path=/trunk/; revision=57779
reactos/win32ss/user/ntuser/painting.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/user/ntuser/painting.c
b/reactos/win32ss/user/ntuser/painting.c
index
f85adff
..
5779fff
100644
(file)
--- a/
reactos/win32ss/user/ntuser/painting.c
+++ b/
reactos/win32ss/user/ntuser/painting.c
@@
-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: