shell32/tests: Fix crash when launched from drive root dir.
This commit is contained in:
parent
bf7fa5b690
commit
4955fabbd4
|
@ -818,7 +818,7 @@ static void test_GetAttributesOf(void)
|
||||||
win_skip("GetCurrentDirectoryA returned empty string. Skipping test_GetAttributesOf\n");
|
win_skip("GetCurrentDirectoryA returned empty string. Skipping test_GetAttributesOf\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(cCurrDirA[len-1] == '\\')
|
if (len > 3 && cCurrDirA[len-1] == '\\')
|
||||||
cCurrDirA[len-1] = 0;
|
cCurrDirA[len-1] = 0;
|
||||||
|
|
||||||
/* create test directory */
|
/* create test directory */
|
||||||
|
|
Loading…
Reference in New Issue