mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[FORMATTING]
Fix indentation (mixed tabs and spaces) by always using 4 spaces svn path=/trunk/; revision=27586
This commit is contained in:
parent
13c22ddec4
commit
3a9951f710
2 changed files with 547 additions and 542 deletions
|
@ -187,7 +187,8 @@ CreateShortcutFolder(int csidl, UINT nID, LPTSTR name, int nameLen)
|
|||
|
||||
|
||||
static VOID
|
||||
CreateRandomSid (PSID *Sid)
|
||||
CreateRandomSid(
|
||||
OUT PSID *Sid)
|
||||
{
|
||||
SID_IDENTIFIER_AUTHORITY SystemAuthority = {SECURITY_NT_AUTHORITY};
|
||||
LARGE_INTEGER SystemTime;
|
||||
|
@ -196,7 +197,8 @@ CreateRandomSid (PSID *Sid)
|
|||
NtQuerySystemTime (&SystemTime);
|
||||
Seed = &SystemTime.u.LowPart;
|
||||
|
||||
RtlAllocateAndInitializeSid (&SystemAuthority,
|
||||
RtlAllocateAndInitializeSid(
|
||||
&SystemAuthority,
|
||||
4,
|
||||
SECURITY_NT_NON_UNIQUE,
|
||||
RtlUniform(Seed),
|
||||
|
@ -211,9 +213,10 @@ CreateRandomSid (PSID *Sid)
|
|||
|
||||
|
||||
static VOID
|
||||
AppendRidToSid (PSID *Dst,
|
||||
PSID Src,
|
||||
ULONG NewRid)
|
||||
AppendRidToSid(
|
||||
IN PSID *Dst,
|
||||
IN PSID Src,
|
||||
IN ULONG NewRid)
|
||||
{
|
||||
ULONG Rid[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
UCHAR RidCount;
|
||||
|
@ -230,7 +233,8 @@ AppendRidToSid (PSID *Dst,
|
|||
RidCount++;
|
||||
}
|
||||
|
||||
RtlAllocateAndInitializeSid (RtlIdentifierAuthoritySid (Src),
|
||||
RtlAllocateAndInitializeSid(
|
||||
RtlIdentifierAuthoritySid(Src),
|
||||
RidCount,
|
||||
Rid[0],
|
||||
Rid[1],
|
||||
|
@ -245,7 +249,8 @@ AppendRidToSid (PSID *Dst,
|
|||
|
||||
|
||||
static VOID
|
||||
CreateTempDir(LPCWSTR VarName)
|
||||
CreateTempDir(
|
||||
IN LPCWSTR VarName)
|
||||
{
|
||||
TCHAR szTempDir[MAX_PATH];
|
||||
TCHAR szBuffer[MAX_PATH];
|
||||
|
@ -533,10 +538,10 @@ InstallReactOS (HINSTANCE hInstance)
|
|||
SetUserDefaultLCID(GetSystemDefaultLCID());
|
||||
SetThreadLocale(GetSystemDefaultLCID());
|
||||
|
||||
/* create desktop shortcuts */
|
||||
/* Create desktop shortcuts */
|
||||
CreateShortcut(CSIDL_DESKTOP, NULL, IDS_SHORT_CMD, _T("cmd.exe"), IDS_CMT_CMD);
|
||||
|
||||
/* create program startmenu shortcuts */
|
||||
/* Create program startmenu shortcuts */
|
||||
CreateShortcut(CSIDL_PROGRAMS, NULL, IDS_SHORT_EXPLORER, _T("explorer.exe"), IDS_CMT_EXPLORER);
|
||||
/* workaround to stop empty links for trunk builds */
|
||||
if (GetSystemDirectory(szBuffer, MAX_PATH))
|
||||
|
@ -551,7 +556,7 @@ InstallReactOS (HINSTANCE hInstance)
|
|||
}
|
||||
|
||||
|
||||
/* create administritive tools startmenu shortcuts */
|
||||
/* Create administritive tools startmenu shortcuts */
|
||||
CreateShortcut(CSIDL_COMMON_ADMINTOOLS, NULL, IDS_SHORT_SERVICE, _T("servman.exe"), IDS_CMT_SERVMAN);
|
||||
CreateShortcut(CSIDL_COMMON_ADMINTOOLS, NULL, IDS_SHORT_DEVICE, _T("devmgmt.exe"), IDS_CMT_DEVMGMT);
|
||||
|
||||
|
@ -571,7 +576,7 @@ InstallReactOS (HINSTANCE hInstance)
|
|||
}
|
||||
}
|
||||
|
||||
/* create Games subfolder and fill if the exe is available */
|
||||
/* Create Games subfolder and fill if the exe is available */
|
||||
if (CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256))
|
||||
{
|
||||
CreateShortcut(CSIDL_PROGRAMS, sGames, IDS_SHORT_SOLITAIRE, _T("sol.exe"), IDS_CMT_SOLITAIRE);
|
||||
|
|
Loading…
Reference in a new issue