[FORMATTING] Fix indentation, no functional changes.

This commit is contained in:
Timo Kreuzer 2018-02-19 15:04:38 +01:00
parent a3c58ca76f
commit e688aab6b3

View file

@ -167,6 +167,7 @@ NtUserCallOneParam(
EngSetLastError(ERROR_INVALID_PARAMETER); EngSetLastError(ERROR_INVALID_PARAMETER);
RETURN(0); RETURN(0);
} }
/* Windows allows zero count, in which case it allocates context for 8 moves */ /* Windows allows zero count, in which case it allocates context for 8 moves */
if (count == 0) count = 8; if (count == 0) count = 8;
@ -177,12 +178,14 @@ NtUserCallOneParam(
TYPE_SETWINDOWPOS, TYPE_SETWINDOWPOS,
sizeof(SMWP)); sizeof(SMWP));
if (!psmwp) RETURN(0); if (!psmwp) RETURN(0);
psmwp->acvr = ExAllocatePoolWithTag(PagedPool, count * sizeof(CVR), USERTAG_SWP); psmwp->acvr = ExAllocatePoolWithTag(PagedPool, count * sizeof(CVR), USERTAG_SWP);
if (!psmwp->acvr) if (!psmwp->acvr)
{ {
UserDeleteObject(hDwp, TYPE_SETWINDOWPOS); UserDeleteObject(hDwp, TYPE_SETWINDOWPOS);
RETURN(0); RETURN(0);
} }
RtlZeroMemory(psmwp->acvr, count * sizeof(CVR)); RtlZeroMemory(psmwp->acvr, count * sizeof(CVR));
psmwp->bHandle = TRUE; psmwp->bHandle = TRUE;
psmwp->ccvr = 0; // actualCount psmwp->ccvr = 0; // actualCount
@ -283,6 +286,7 @@ NtUserCallOneParam(
{ {
RETURN(IntGetQueueStatus((DWORD)Param)); RETURN(IntGetQueueStatus((DWORD)Param));
} }
case ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMATS: case ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMATS:
/* FIXME: Should use UserEnterShared */ /* FIXME: Should use UserEnterShared */
RETURN(UserEnumClipboardFormats(Param)); RETURN(UserEnumClipboardFormats(Param));
@ -306,6 +310,7 @@ NtUserCallOneParam(
_SEH2_END; _SEH2_END;
RETURN(Ret); RETURN(Ret);
} }
case ONEPARAM_ROUTINE_SETPROCDEFLAYOUT: case ONEPARAM_ROUTINE_SETPROCDEFLAYOUT:
{ {
PPROCESSINFO ppi; PPROCESSINFO ppi;
@ -318,6 +323,7 @@ NtUserCallOneParam(
EngSetLastError(ERROR_INVALID_PARAMETER); EngSetLastError(ERROR_INVALID_PARAMETER);
RETURN(FALSE); RETURN(FALSE);
} }
case ONEPARAM_ROUTINE_GETPROCDEFLAYOUT: case ONEPARAM_ROUTINE_GETPROCDEFLAYOUT:
{ {
BOOL Ret = TRUE; BOOL Ret = TRUE;
@ -342,18 +348,25 @@ NtUserCallOneParam(
_SEH2_END; _SEH2_END;
RETURN(Ret); RETURN(Ret);
} }
case ONEPARAM_ROUTINE_REPLYMESSAGE: case ONEPARAM_ROUTINE_REPLYMESSAGE:
RETURN(co_MsqReplyMessage((LRESULT)Param)); RETURN(co_MsqReplyMessage((LRESULT)Param));
case ONEPARAM_ROUTINE_MESSAGEBEEP: case ONEPARAM_ROUTINE_MESSAGEBEEP:
/* TODO: Implement sound sentry */ /* TODO: Implement sound sentry */
RETURN(UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_MESSAGE_BEEP, Param)); RETURN(UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_MESSAGE_BEEP, Param));
case ONEPARAM_ROUTINE_CREATESYSTEMTHREADS: case ONEPARAM_ROUTINE_CREATESYSTEMTHREADS:
RETURN(CreateSystemThreads(Param)); RETURN(CreateSystemThreads(Param));
case ONEPARAM_ROUTINE_LOCKFOREGNDWINDOW: case ONEPARAM_ROUTINE_LOCKFOREGNDWINDOW:
RETURN((DWORD_PTR)IntLockSetForegroundWindow(Param)); RETURN((DWORD_PTR)IntLockSetForegroundWindow(Param));
case ONEPARAM_ROUTINE_ALLOWSETFOREGND: case ONEPARAM_ROUTINE_ALLOWSETFOREGND:
RETURN((DWORD_PTR)IntAllowSetForegroundWindow(Param)); RETURN((DWORD_PTR)IntAllowSetForegroundWindow(Param));
} }
ERR("Calling invalid routine number 0x%x in NtUserCallOneParam(), Param=0x%x\n", ERR("Calling invalid routine number 0x%x in NtUserCallOneParam(), Param=0x%x\n",
Routine, Param); Routine, Param);
EngSetLastError(ERROR_INVALID_PARAMETER); EngSetLastError(ERROR_INVALID_PARAMETER);
@ -391,6 +404,7 @@ NtUserCallTwoParam(
Ret = (DWORD_PTR)UserPaintCaption(Window, (INT)Param2); Ret = (DWORD_PTR)UserPaintCaption(Window, (INT)Param2);
RETURN(Ret); RETURN(Ret);
} }
case TWOPARAM_ROUTINE_SETMENUBARHEIGHT: case TWOPARAM_ROUTINE_SETMENUBARHEIGHT:
{ {
DWORD_PTR Ret; DWORD_PTR Ret;
@ -456,6 +470,7 @@ NtUserCallTwoParam(
case TWOPARAM_ROUTINE_UNHOOKWINDOWSHOOK: case TWOPARAM_ROUTINE_UNHOOKWINDOWSHOOK:
RETURN(IntUnhookWindowsHook((int)Param1, (HOOKPROC)Param2)); RETURN(IntUnhookWindowsHook((int)Param1, (HOOKPROC)Param2));
} }
ERR("Calling invalid routine number 0x%x in NtUserCallTwoParam(), Param1=0x%x Parm2=0x%x\n", ERR("Calling invalid routine number 0x%x in NtUserCallTwoParam(), Param1=0x%x Parm2=0x%x\n",
Routine, Param1, Param2); Routine, Param1, Param2);
EngSetLastError(ERROR_INVALID_PARAMETER); EngSetLastError(ERROR_INVALID_PARAMETER);
@ -489,6 +504,7 @@ NtUserCallHwndLock(
{ {
RETURN(FALSE); RETURN(FALSE);
} }
UserRefObjectCo(Window, &Ref); UserRefObjectCo(Window, &Ref);
/* FIXME: Routine can be 0x53 - 0x5E */ /* FIXME: Routine can be 0x53 - 0x5E */
@ -619,15 +635,18 @@ NtUserCallHwnd(
UserLeave(); UserLeave();
return HelpId; return HelpId;
} }
case HWND_ROUTINE_REGISTERSHELLHOOKWINDOW: case HWND_ROUTINE_REGISTERSHELLHOOKWINDOW:
if (IntIsWindow(hWnd)) if (IntIsWindow(hWnd))
return IntRegisterShellHookWindow(hWnd); return IntRegisterShellHookWindow(hWnd);
return FALSE; return FALSE;
break; break;
case HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW: case HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW:
if (IntIsWindow(hWnd)) if (IntIsWindow(hWnd))
return IntDeRegisterShellHookWindow(hWnd); return IntDeRegisterShellHookWindow(hWnd);
return FALSE; return FALSE;
case HWND_ROUTINE_SETMSGBOX: case HWND_ROUTINE_SETMSGBOX:
{ {
PWND Window; PWND Window;
@ -640,6 +659,7 @@ NtUserCallHwnd(
return FALSE; return FALSE;
} }
} }
STUB; STUB;
return 0; return 0;
@ -727,6 +747,7 @@ NtUserCallHwndParam(
UserLeave(); UserLeave();
return 0; return 0;
} }
case HWNDPARAM_ROUTINE_CLEARWINDOWSTATE: case HWNDPARAM_ROUTINE_CLEARWINDOWSTATE:
{ {
PWND pWnd; PWND pWnd;
@ -736,6 +757,7 @@ NtUserCallHwndParam(
UserLeave(); UserLeave();
return 0; return 0;
} }
case HWNDPARAM_ROUTINE_SETWINDOWSTATE: case HWNDPARAM_ROUTINE_SETWINDOWSTATE:
{ {
PWND pWnd; PWND pWnd;