shell32/tests: Use the original path if GetLongPathNameA fails.
This commit is contained in:
parent
8e2684fea4
commit
7524019796
|
@ -540,7 +540,7 @@ static void test_load_save(void)
|
||||||
*p='\0';
|
*p='\0';
|
||||||
|
|
||||||
/* IShellLink returns path in long form */
|
/* IShellLink returns path in long form */
|
||||||
pGetLongPathNameA(mypath, realpath, MAX_PATH);
|
if (!pGetLongPathNameA(mypath, realpath, MAX_PATH)) strcpy( realpath, mypath );
|
||||||
|
|
||||||
/* Overwrite the existing lnk file and point it to existing files */
|
/* Overwrite the existing lnk file and point it to existing files */
|
||||||
desc.description="test 2";
|
desc.description="test 2";
|
||||||
|
|
Loading…
Reference in New Issue