some code reformatting

svn path=/trunk/; revision=18127
This commit is contained in:
Thomas Bluemel 2005-09-27 18:19:59 +00:00
parent 514a32bcff
commit 116b8b7916

View file

@ -1,6 +1,6 @@
/*
* ReactOS Access Control List Editor
* Copyright (C) 2004 ReactOS Team
* Copyright (C) 2004-2005 ReactOS Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -45,7 +45,7 @@ LengthOfStrResource(IN HINSTANCE hInst,
HGLOBAL hRes;
LPWSTR lpName, lpStr;
if(hInst == NULL)
if (hInst == NULL)
{
return -1;
}
@ -54,7 +54,7 @@ LengthOfStrResource(IN HINSTANCE hInst,
lpName = (LPWSTR)MAKEINTRESOURCE((uID >> 4) + 1);
/* Find the string table block */
if((hrSrc = FindResourceW(hInst, lpName, (LPWSTR)RT_STRING)) &&
if ((hrSrc = FindResourceW(hInst, lpName, (LPWSTR)RT_STRING)) &&
(hRes = LoadResource(hInst, hrSrc)) &&
(lpStr = LockResource(hRes)))
{
@ -62,7 +62,7 @@ LengthOfStrResource(IN HINSTANCE hInst,
/* Find the string we're looking for */
uID &= 0xF; /* position in the block, same as % 16 */
for(x = 0; x < uID; x++)
for (x = 0; x < uID; x++)
{
lpStr += (*lpStr) + 1;
}
@ -82,14 +82,14 @@ AllocAndLoadString(OUT LPWSTR *lpTarget,
ln = LengthOfStrResource(hInst,
uID);
if(ln++ > 0)
if (ln++ > 0)
{
(*lpTarget) = (LPWSTR)LocalAlloc(LMEM_FIXED,
ln * sizeof(WCHAR));
if((*lpTarget) != NULL)
if ((*lpTarget) != NULL)
{
INT Ret;
if(!(Ret = LoadStringW(hInst, uID, *lpTarget, ln)))
if (!(Ret = LoadStringW(hInst, uID, *lpTarget, ln)))
{
LocalFree((HLOCAL)(*lpTarget));
}
@ -109,7 +109,7 @@ LoadAndFormatString(IN HINSTANCE hInstance,
LPWSTR lpFormat;
va_list lArgs;
if(AllocAndLoadString(&lpFormat,
if (AllocAndLoadString(&lpFormat,
hInstance,
uID) > 0)
{