Thomas J. Moore : ntdll: Also try to stat() the drive root.

Alexandre Julliard julliard at winehq.org
Fri Apr 5 16:04:59 CDT 2019


Module: wine
Branch: master
Commit: 071e729969c5536e3b5958b11d43341803f6bd40
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=071e729969c5536e3b5958b11d43341803f6bd40

Author: Thomas J. Moore <darktjm at gmail.com>
Date:   Thu Apr  4 10:59:09 2019 -0500

ntdll: Also try to stat() the drive root.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46863
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/directory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index b46c2a6..859f4d8 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -2638,7 +2638,7 @@ static NTSTATUS lookup_unix_name( const WCHAR *name, int name_len, char **buffer
         char *p;
         unix_name[pos + ret] = 0;
         for (p = unix_name + pos ; *p; p++) if (*p == '\\') *p = '/';
-        if (!redirect || (!strstr( unix_name, "/windows/") && strncmp( unix_name, "windows/", 8 )))
+        if (!name_len || !redirect || (!strstr( unix_name, "/windows/") && strncmp( unix_name, "windows/", 8 )))
         {
             if (!stat( unix_name, &st ))
             {




More information about the wine-cvs mailing list