mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[KERNEL32]: Whitespace fixes only, no functional code changes.
svn path=/trunk/; revision=71687
This commit is contained in:
parent
def1d69426
commit
5113536603
1 changed files with 181 additions and 196 deletions
|
@ -257,24 +257,19 @@ QueryDosDeviceA(
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
Buffer = RtlAllocateHeap (RtlGetProcessHeap (),
|
||||
0,
|
||||
ucchMax * sizeof(WCHAR));
|
||||
Buffer = RtlAllocateHeap(RtlGetProcessHeap(), 0, ucchMax * sizeof(WCHAR));
|
||||
if (Buffer == NULL)
|
||||
{
|
||||
if (lpDeviceName)
|
||||
{
|
||||
RtlFreeHeap (RtlGetProcessHeap (),
|
||||
0,
|
||||
DeviceNameU.Buffer);
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, DeviceNameU.Buffer);
|
||||
}
|
||||
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Length = QueryDosDeviceW(lpDeviceName ? DeviceNameU.Buffer : NULL,
|
||||
Buffer,
|
||||
ucchMax);
|
||||
Buffer, ucchMax);
|
||||
if (Length != 0)
|
||||
{
|
||||
TargetPathA.Buffer = lpTargetPath;
|
||||
|
@ -289,23 +284,17 @@ QueryDosDeviceA(
|
|||
TargetPathA.Length = 0;
|
||||
TargetPathA.MaximumLength = (USHORT)CurrentLength;
|
||||
|
||||
RtlUnicodeStringToAnsiString (&TargetPathA,
|
||||
&TargetPathU,
|
||||
FALSE);
|
||||
RtlUnicodeStringToAnsiString(&TargetPathA, &TargetPathU, FALSE);
|
||||
ucchMax -= CurrentLength;
|
||||
TargetPathA.Buffer += TargetPathA.Length;
|
||||
TargetPathU.Buffer += TargetPathU.Length / sizeof(WCHAR);
|
||||
}
|
||||
}
|
||||
|
||||
RtlFreeHeap (RtlGetProcessHeap (),
|
||||
0,
|
||||
Buffer);
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, Buffer);
|
||||
if (lpDeviceName)
|
||||
{
|
||||
RtlFreeHeap (RtlGetProcessHeap (),
|
||||
0,
|
||||
DeviceNameU.Buffer);
|
||||
RtlFreeHeap(RtlGetProcessHeap(), 0, DeviceNameU.Buffer);
|
||||
}
|
||||
return Length;
|
||||
}
|
||||
|
@ -337,8 +326,7 @@ QueryDosDeviceW(
|
|||
PWSTR Ptr;
|
||||
|
||||
/* Open the '\??' directory */
|
||||
RtlInitUnicodeString (&UnicodeString,
|
||||
L"\\??");
|
||||
RtlInitUnicodeString(&UnicodeString, L"\\??");
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&UnicodeString,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
|
@ -359,8 +347,7 @@ QueryDosDeviceW(
|
|||
if (lpDeviceName != NULL)
|
||||
{
|
||||
/* Open the lpDeviceName link object */
|
||||
RtlInitUnicodeString (&UnicodeString,
|
||||
(PWSTR)lpDeviceName);
|
||||
RtlInitUnicodeString(&UnicodeString, (PWSTR)lpDeviceName);
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&UnicodeString,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
|
@ -459,9 +446,7 @@ QueryDosDeviceW(
|
|||
break;
|
||||
}
|
||||
|
||||
memcpy (Ptr,
|
||||
DirInfo->Name.Buffer,
|
||||
DirInfo->Name.Length);
|
||||
memcpy(Ptr, DirInfo->Name.Buffer, DirInfo->Name.Length);
|
||||
Ptr += NameLength;
|
||||
Length += NameLength;
|
||||
*Ptr = UNICODE_NULL;
|
||||
|
|
Loading…
Reference in a new issue