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/nt…
==============================================================================
--- 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 */