Author: ion
Date: Mon Jul 11 01:22:01 2011
New Revision: 52626

URL: http://svn.reactos.org/svn/reactos?rev=52626&view=rev
Log:
[NTDLL]: Always compile your code before comitting, like my cat used to say.

Modified:
    trunk/reactos/lib/rtl/path.c

Modified: trunk/reactos/lib/rtl/path.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/path.c?rev=52626&r1=52625&r2=52626&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Mon Jul 11 01:22:01 2011
@@ -167,7 +167,7 @@
 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 @@
 
     /* 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 @@
     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;


Reply via email to