shell32/tests: Completely fix GetAttributesOf test when launched from drive root dir.

Nicolas Le Cam niko.lecam at gmail.com
Tue Apr 7 12:14:07 CDT 2009


---
 dlls/shell32/tests/shlfolder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index 5492b84..08ea9cc 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -848,6 +848,8 @@ static void test_GetAttributesOf(void)
     IMalloc_Free(ppM, newPIDL);
 
     /* append testdirectory name to path */
+    if (cCurrDirA[len-1] == '\\')
+        cCurrDirA[len-1] = 0;
     lstrcatA(cCurrDirA, "\\testdir");
     MultiByteToWideChar(CP_ACP, 0, cCurrDirA, -1, cCurrDirW, MAX_PATH);
 
-- 
1.5.6.3


--=-N/4PnpstHekp29Zkfxvm--




More information about the wine-patches mailing list