ieframe/tests: Don't convert to long path name until the file exists.

This commit is contained in:
Andrew Eikum 2013-01-24 10:35:00 -06:00 committed by Alexandre Julliard
parent b28a4507a9
commit b233d2054e
1 changed files with 3 additions and 2 deletions

View File

@ -3529,8 +3529,6 @@ static void test_FileProtocol(void)
GetTempPathA(MAX_PATH, file_path);
strcat(file_path, test_file);
GetLongPathNameA(file_path, file_path, sizeof(file_path));
strcat(file_url, file_path);
webbrowser = create_webbrowser();
if(!webbrowser)
@ -3546,6 +3544,9 @@ static void test_FileProtocol(void)
}
CloseHandle(file);
GetLongPathNameA(file_path, file_path, sizeof(file_path));
strcat(file_url, file_path);
test_ConnectionPoint(webbrowser, TRUE);
test_ClientSite(webbrowser, &ClientSite, TRUE);
test_DoVerb(webbrowser);