Zebediah Figura : ntdll: Fix a typo in get_current_directory().
Alexandre Julliard
julliard at winehq.org
Sun Jan 5 13:18:20 CST 2020
Module: wine
Branch: master
Commit: 230a09b707fe90b243d76fb8d24c4d5e71a71a2c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=230a09b707fe90b243d76fb8d24c4d5e71a71a2c
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat Jan 4 11:35:05 2020 -0600
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/env.c b/dlls/ntdll/env.c
index 116a57a8e7..de3ada01a0 100644
--- a/dlls/ntdll/env.c
+++ b/dlls/ntdll/env.c
@@ -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 );
More information about the wine-cvs
mailing list