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

This commit is contained in:
Nicolas Le Cam 2009-04-07 19:14:07 +02:00 committed by Alexandre Julliard
parent 3a0eb81cea
commit 1f52f12f3c
1 changed files with 2 additions and 0 deletions

View File

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