From 971bd0510bfdbe46171e8cb36f261b1ecaa8ee71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Tue, 30 Dec 2014 21:58:12 +0000 Subject: [PATCH] [WIN32K]: Some whitespace fixes. This gives me also the occasion to test few things: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ░░░░░░█ █ █▀▀ █ █ █▀█░░░░░ ░░░░░░█▀█ █▀▀ █ ▄ █ ▄ █ █░░░░░ ░░░░░░▀ ▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀░░░░░ ░░░░░░█ █ █▀▀ █ █ █▀█░░░░░ ░░░░░░█▀█ █▀▀ █ ▄ █ ▄ █ █░░░░░ ░░░░░░▀ ▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀░░░░░ !error RosBuild: dance RosBuild: dance RosKGB: hi! svn path=/trunk/; revision=65915 --- reactos/win32ss/user/ntuser/useratom.c | 85 +++++++++++++------------- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/reactos/win32ss/user/ntuser/useratom.c b/reactos/win32ss/user/ntuser/useratom.c index f8c845c7f14..46d9832a7ac 100644 --- a/reactos/win32ss/user/ntuser/useratom.c +++ b/reactos/win32ss/user/ntuser/useratom.c @@ -12,69 +12,70 @@ DBG_DEFAULT_CHANNEL(UserMisc); RTL_ATOM FASTCALL IntAddAtom(LPWSTR AtomName) { - NTSTATUS Status = STATUS_SUCCESS; - PTHREADINFO pti; - RTL_ATOM Atom; + NTSTATUS Status = STATUS_SUCCESS; + PTHREADINFO pti; + RTL_ATOM Atom; - pti = PsGetCurrentThreadWin32Thread(); - if (pti->rpdesk == NULL) - { - SetLastNtError(Status); - return (RTL_ATOM)0; - } + pti = PsGetCurrentThreadWin32Thread(); + if (pti->rpdesk == NULL) + { + SetLastNtError(Status); + return (RTL_ATOM)0; + } - Status = RtlAddAtomToAtomTable(gAtomTable, AtomName, &Atom); + Status = RtlAddAtomToAtomTable(gAtomTable, AtomName, &Atom); - if (!NT_SUCCESS(Status)) - { - SetLastNtError(Status); - return (RTL_ATOM)0; - } - return Atom; + if (!NT_SUCCESS(Status)) + { + SetLastNtError(Status); + return (RTL_ATOM)0; + } + return Atom; } ULONG FASTCALL IntGetAtomName(RTL_ATOM nAtom, LPWSTR lpBuffer, ULONG cjBufSize) { - NTSTATUS Status = STATUS_SUCCESS; - PTHREADINFO pti; - ULONG Size = cjBufSize; + NTSTATUS Status = STATUS_SUCCESS; + PTHREADINFO pti; + ULONG Size = cjBufSize; - pti = PsGetCurrentThreadWin32Thread(); - if (pti->rpdesk == NULL) - { - SetLastNtError(Status); - return 0; - } + pti = PsGetCurrentThreadWin32Thread(); + if (pti->rpdesk == NULL) + { + SetLastNtError(Status); + return 0; + } - Status = RtlQueryAtomInAtomTable(gAtomTable, nAtom, NULL, NULL, lpBuffer, &Size); + Status = RtlQueryAtomInAtomTable(gAtomTable, nAtom, NULL, NULL, lpBuffer, &Size); - if (!NT_SUCCESS(Status)) - { - SetLastNtError(Status); - return 0; - } + if (!NT_SUCCESS(Status)) + { + SetLastNtError(Status); + return 0; + } - return Size; + return Size; } RTL_ATOM FASTCALL IntAddGlobalAtom(LPWSTR lpBuffer, BOOL PinAtom) { - RTL_ATOM Atom; - NTSTATUS Status = STATUS_SUCCESS; + RTL_ATOM Atom; + NTSTATUS Status = STATUS_SUCCESS; - Status = RtlAddAtomToAtomTable(gAtomTable, lpBuffer, &Atom); + Status = RtlAddAtomToAtomTable(gAtomTable, lpBuffer, &Atom); - if (!NT_SUCCESS(Status)) - { - ERR("Error init Global Atom.\n"); - return 0; - } + if (!NT_SUCCESS(Status)) + { + ERR("Error init Global Atom.\n"); + return 0; + } - if ( Atom && PinAtom ) RtlPinAtomInAtomTable(gAtomTable, Atom); + if (Atom && PinAtom) + RtlPinAtomInAtomTable(gAtomTable, Atom); - return Atom; + return Atom; } /*!