Author: jgardou Date: Thu Sep 18 14:26:59 2014 New Revision: 64193
URL: http://svn.reactos.org/svn/reactos?rev=64193&view=rev Log: [WIN32K] - Check the right variable for error condition
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] Thu Sep 18 14:26:59 2014 @@ -1930,7 +1930,7 @@ RETURN(Result);
CLEANUP: - if (hrgnUpdate && (Result != ERROR)) + if (hrgnUpdate && (_ret_ != ERROR)) { /* Give everything back to the caller */ RgnTemp = RGNOBJAPI_Lock(hrgnUpdate, NULL);