mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 05:11:21 +00:00
- Fixed the length parameter for calling RtlGetCurrentDirectory_U (GetCurrentDirectoryW).
svn path=/trunk/; revision=4409
This commit is contained in:
parent
1032130eaf
commit
d7d389bf60
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: curdir.c,v 1.34 2003/01/15 21:24:33 chorns Exp $
|
/* $Id: curdir.c,v 1.35 2003/03/23 10:46:59 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -81,7 +81,7 @@ GetCurrentDirectoryW (
|
||||||
{
|
{
|
||||||
ULONG Length;
|
ULONG Length;
|
||||||
|
|
||||||
Length = RtlGetCurrentDirectory_U (nBufferLength,
|
Length = RtlGetCurrentDirectory_U (nBufferLength * sizeof(WCHAR),
|
||||||
lpBuffer);
|
lpBuffer);
|
||||||
|
|
||||||
return (Length / sizeof (WCHAR));
|
return (Length / sizeof (WCHAR));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue