From b233d2054e64e216a5b3868f301bfc934b019b4b Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 24 Jan 2013 10:35:00 -0600 Subject: [PATCH] ieframe/tests: Don't convert to long path name until the file exists. --- dlls/ieframe/tests/webbrowser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c index c1e8b49275c..191587652f6 100644 --- a/dlls/ieframe/tests/webbrowser.c +++ b/dlls/ieframe/tests/webbrowser.c @@ -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);