Fixed the copy length in GetSystemDirectory().
authorHartmut Birr <osexpert@googlemail.com>
Sun, 17 Mar 2002 17:49:56 +0000 (17:49 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sun, 17 Mar 2002 17:49:56 +0000 (17:49 +0000)
svn path=/trunk/; revision=2725

reactos/lib/kernel32/file/curdir.c

index f44761c..654cf99 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: curdir.c,v 1.26 2000/08/15 12:38:26 ekohl Exp $
+/* $Id: curdir.c,v 1.27 2002/03/17 17:49:56 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -286,7 +286,7 @@ GetSystemDirectoryW (
        {
                memmove (lpBuffer,
                         SystemDirectory.Buffer,
        {
                memmove (lpBuffer,
                         SystemDirectory.Buffer,
-                        Length);
+                        SystemDirectory.Length);
                lpBuffer[Length] = 0;
        }
 
                lpBuffer[Length] = 0;
        }
 
@@ -346,7 +346,7 @@ GetWindowsDirectoryW (
        {
                memmove (lpBuffer,
                         WindowsDirectory.Buffer,
        {
                memmove (lpBuffer,
                         WindowsDirectory.Buffer,
-                        Length);
+                        WindowsDirectory.Length);
                lpBuffer[Length] = 0;
        }
 
                lpBuffer[Length] = 0;
        }