ieframe/tests: Don't convert to long path name until the file exists.
This commit is contained in:
parent
b28a4507a9
commit
b233d2054e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue