ntdll: Fix a typo in get_current_directory().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48415
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-01-04 11:35:05 -06:00 committed by Alexandre Julliard
parent 01d521e5af
commit 230a09b707
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ static void get_current_directory( UNICODE_STRING *dir )
if (!wine_unix_to_nt_file_name( &unix_name, &nt_name ))
{
/* skip the \??\ prefix */
if (nt_name.Length > 6 * sizeof(WCHAR*) && nt_name.Buffer[5] == ':')
if (nt_name.Length > 6 * sizeof(WCHAR) && nt_name.Buffer[5] == ':')
{
dir->Length = nt_name.Length - 4 * sizeof(WCHAR);
memcpy( dir->Buffer, nt_name.Buffer + 4, dir->Length );