mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[NTDLL]: Always compile your code before comitting, like my cat used to say.
svn path=/trunk/; revision=52626
This commit is contained in:
parent
043ba4e228
commit
7ef2dcbe22
1 changed files with 3 additions and 3 deletions
|
@ -167,7 +167,7 @@ NTAPI
|
|||
RtlGetCurrentDirectory_U(IN ULONG MaximumLength,
|
||||
IN PWSTR Buffer)
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG Length, Bytes;
|
||||
PCURDIR CurDir;
|
||||
PWSTR CurDirName;
|
||||
DPRINT("RtlGetCurrentDirectory %lu %p\n", MaximumLength, Buffer);
|
||||
|
@ -183,7 +183,7 @@ RtlGetCurrentDirectory_U(IN ULONG MaximumLength,
|
|||
|
||||
/* Check for x:\ vs x:\path\foo (note the trailing slash) */
|
||||
Bytes = Length * sizeof(WCHAR);
|
||||
if ((Length <= 1) || (CurDirName[Length - 2] == ":"))
|
||||
if ((Length <= 1) || (CurDirName[Length - 2] == L':'))
|
||||
{
|
||||
/* Check if caller does not have enough space */
|
||||
if (MaximumLength <= Bytes)
|
||||
|
@ -211,7 +211,7 @@ RtlGetCurrentDirectory_U(IN ULONG MaximumLength,
|
|||
ASSERT(Buffer[Length - 1] == L'\\');
|
||||
|
||||
/* Again check for our two cases (drive root vs path) */
|
||||
if ((Length <= 1) || (Buffer[Length - 2] != ":"))
|
||||
if ((Length <= 1) || (Buffer[Length - 2] != L':'))
|
||||
{
|
||||
/* Replace the trailing slash with a null */
|
||||
Buffer[Length - 1] = UNICODE_NULL;
|
||||
|
|
Loading…
Reference in a new issue