Author: jimtabor Date: Wed Nov 28 23:05:57 2012 New Revision: 57779
URL: http://svn.reactos.org/svn/reactos?rev=57779&view=rev Log: [Win32k] - Fix crash when the exception is thrown.
Modified: trunk/reactos/win32ss/user/ntuser/painting.c
Modified: trunk/reactos/win32ss/user/ntuser/painting.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/paintin... ============================================================================== --- trunk/reactos/win32ss/user/ntuser/painting.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/ntuser/painting.c [iso-8859-1] Wed Nov 28 23:05:57 2012 @@ -1088,6 +1088,8 @@ RETURN(FALSE); }
+ UserRefObjectCo(Window, &Ref); // Here for the exception. + _SEH2_TRY { ProbeForRead(pUnsafePs, sizeof(*pUnsafePs), 1); @@ -1102,8 +1104,6 @@ { RETURN(FALSE); } - - UserRefObjectCo(Window, &Ref);
RETURN(IntEndPaint(Window, &Ps));