[3/3] ntdll: test paths relative to current drive root

Vincent Povirk madewokherd+8cd9 at gmail.com
Sun Apr 5 14:29:28 CDT 2009


This patchset should fix bug 15883.

Vincent Povirk
-------------- next part --------------
From a48fa660cd280e6b81256429fa02de7fa9c0ead6 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sun, 5 Apr 2009 13:49:39 -0500
Subject: [PATCH] ntdll: test paths relative to current drive root

---
 dlls/ntdll/tests/path.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index 9d39cdc..5db3140 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -258,6 +258,8 @@ static void test_RtlGetFullPathName_U(void)
             { "c:///test\\..\\file\\..\\//", "c:\\",             NULL},
             { "c:/test../file",              "c:\\test.\\file",  "file",
                                              "c:\\test..\\file", "file"},  /* vista */
+            { "\\test\\file",                "c:\\test\\file",   "file"},
+            { "/bin/sh",                     "c:\\bin\\sh",      "sh"},
             { NULL, NULL, NULL}
         };
 
@@ -269,6 +271,8 @@ static void test_RtlGetFullPathName_U(void)
     DWORD reslen;
     UINT len;
 
+    SetCurrentDirectoryA("c:\\");
+
     for (test = tests; test->path; test++)
     {
         len= strlen(test->rname) * sizeof(WCHAR);
-- 
1.5.4.3


More information about the wine-patches mailing list