[ros-diffs] [tkreuzer] 36696: remove a RETURN() macro

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Wed Oct 8 17:41:53 CEST 2008


Author: tkreuzer
Date: Wed Oct  8 10:41:52 2008
New Revision: 36696

URL: http://svn.reactos.org/svn/reactos?rev=36696&view=rev
Log:
remove a RETURN() macro

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c?rev=36696&r1=36695&r2=36696&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Wed Oct  8 10:41:52 2008
@@ -1671,7 +1671,7 @@
    PWINDOW Wnd;
    MINMAXINFO SafeMinMax;
    NTSTATUS Status;
-   DECLARE_RETURN(BOOL);
+   BOOL ret;
    USER_REFERENCE_ENTRY Ref;
 
    DPRINT("Enter NtUserGetMinMaxInfo\n");
@@ -1679,7 +1679,8 @@
 
    if(!(Window = UserGetWindowObject(hWnd)))
    {
-      RETURN( FALSE);
+      ret = FALSE;
+      goto cleanup;
    }
 
    UserRefObjectCo(Window, &Ref);
@@ -1703,17 +1704,18 @@
    if(!NT_SUCCESS(Status))
    {
       SetLastNtError(Status);
-      RETURN( FALSE);
-   }
-
-   RETURN( TRUE);
-
-CLEANUP:
+      ret = FALSE;
+      goto cleanup;
+   }
+
+   ret = TRUE;
+
+cleanup:
    if (Window) UserDerefObjectCo(Window);
 
-   DPRINT("Leave NtUserGetMinMaxInfo, ret=%i\n",_ret_);
+   DPRINT("Leave NtUserGetMinMaxInfo, ret=%i\n", ret);
    UserLeave();
-   END_CLEANUP;
+   return ret;
 }
 
 /* EOF */



More information about the Ros-diffs mailing list