From: Alexandre Julliard Date: Mon, 23 Jun 2008 15:22:01 +0000 (+0200) Subject: shell32/tests: Use the original path if GetLongPathNameA fails. X-Git-Tag: wine-1.1.0~311 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=7524019796b1e181fb220dd1ac293bde35bf707d;p=wine%2Feterwine.git shell32/tests: Use the original path if GetLongPathNameA fails. --- diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index 5cbd8bfcd7..54bb291593 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -540,7 +540,7 @@ static void test_load_save(void) *p='\0'; /* 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 */ desc.description="test 2";