From 11edaf36b077bd38ec18649c4daff8ca5f6f4c48 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 17 Mar 2002 17:49:56 +0000 Subject: [PATCH] Fixed the copy length in GetSystemDirectory(). svn path=/trunk/; revision=2725 --- reactos/lib/kernel32/file/curdir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/kernel32/file/curdir.c b/reactos/lib/kernel32/file/curdir.c index f44761cfc9e..654cf9933aa 100644 --- a/reactos/lib/kernel32/file/curdir.c +++ b/reactos/lib/kernel32/file/curdir.c @@ -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 @@ -286,7 +286,7 @@ GetSystemDirectoryW ( { memmove (lpBuffer, SystemDirectory.Buffer, - Length); + SystemDirectory.Length); lpBuffer[Length] = 0; } @@ -346,7 +346,7 @@ GetWindowsDirectoryW ( { memmove (lpBuffer, WindowsDirectory.Buffer, - Length); + WindowsDirectory.Length); lpBuffer[Length] = 0; }