Author: tkreuzer
Date: Sat Jun 20 16:14:20 2009
New Revision: 41479
URL:
http://svn.reactos.org/svn/reactos?rev=41479&view=rev
Log:
Remove usage of RETURN() macro
Modified:
branches/ros-amd64-bringup/reactos/subsystems/win32/win32k/ntuser/misc.c
Modified: branches/ros-amd64-bringup/reactos/subsystems/win32/win32k/ntuser/misc.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/subsy…
==============================================================================
--- branches/ros-amd64-bringup/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1]
Sat Jun 20 16:14:20 2009
@@ -102,29 +102,31 @@
break;
case THREADSTATE_INSENDMESSAGE:
{
- DWORD Ret = ISMEX_NOSEND;
PUSER_MESSAGE_QUEUE MessageQueue =
((PTHREADINFO)PsGetCurrentThreadWin32Thread())->MessageQueue;
DPRINT1("THREADSTATE_INSENDMESSAGE\n");
+ ret = ISMEX_NOSEND;
if (!IsListEmpty(&MessageQueue->SentMessagesListHead))
{
- Ret = ISMEX_SEND;
+ ret = ISMEX_SEND;
}
else if (!IsListEmpty(&MessageQueue->NotifyMessagesListHead))
{
/* FIXME Need to set message flag when in callback mode with notify */
- Ret = ISMEX_NOTIFY;
+ ret = ISMEX_NOTIFY;
}
/* FIXME Need to set message flag if replied to or ReplyMessage */
- RETURN( Ret);
+ break;
}
case THREADSTATE_GETMESSAGETIME:
/* FIXME Needs more work! */
- RETURN( ((PTHREADINFO)PsGetCurrentThreadWin32Thread())->timeLast);
+ ret = ((PTHREADINFO)PsGetCurrentThreadWin32Thread())->timeLast;
+ break;
case THREADSTATE_GETINPUTSTATE:
- RETURN( HIWORD(IntGetQueueStatus(FALSE)) & (QS_KEY | QS_MOUSEBUTTON));
+ ret = HIWORD(IntGetQueueStatus(FALSE)) & (QS_KEY | QS_MOUSEBUTTON);
+ break;
}
DPRINT("Leave NtUserGetThreadState, ret=%i\n", ret);