From bc52612f7776c68c3509fc11379a6bebfc7be93c Mon Sep 17 00:00:00 2001 From: Saulius Krasuckas Date: Mon, 14 Nov 2005 11:23:02 +0000 Subject: [PATCH] Fix a test for InternetCreateUrlA as no Windows platform sets last error here. Make InternetCreateUrlA pass the test. --- dlls/wininet/internet.c | 2 -- dlls/wininet/tests/http.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 4252224b725..f733ed6f260 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -3584,8 +3584,6 @@ static BOOL calc_url_length(LPURL_COMPONENTSW lpUrlComponents, SetLastError(ERROR_INVALID_PARAMETER); return FALSE; } - else - SetLastError(ERROR_ALREADY_EXISTS); } if (lpUrlComponents->lpszPassword) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index f319011a5a6..375a40ea472 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -784,8 +784,8 @@ static void InternetCreateUrlA_test() len = 42; ret = InternetCreateUrlA(&urlComp, 0, szUrl, &len); ok(ret, "Expected success\n"); - ok(GetLastError() == ERROR_ALREADY_EXISTS, - "Expected ERROR_ALREADYEXISTS, got %ld\n", GetLastError()); + ok(GetLastError() == 0xdeadbeef, + "Expected 0xdeadbeef, got %ld\n", GetLastError()); ok(len == 32, "Expected len 32, got %ld\n", len); ok(!strcmp(szUrl, CREATE_URL4), "Expected %s, got %s\n", CREATE_URL3, szUrl); -- 2.11.4.GIT