Nicolas Le Cam : shell32/tests: Completly fix GetAttributesOf test when launched from drive root dir.

Alexandre Julliard julliard at winehq.org
Thu Apr 9 11:13:50 CDT 2009


Module: wine
Branch: master
Commit: 1f52f12f3c125f7c07f531c6064760516cc24e5d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f52f12f3c125f7c07f531c6064760516cc24e5d

Author: Nicolas Le Cam <niko.lecam at gmail.com>
Date:   Tue Apr  7 19:14:07 2009 +0200

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

---

 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);
 




More information about the wine-cvs mailing list