André Hentschel : wininet/tests: Don' t call GetLastError() twice.
Alexandre Julliard
julliard at winehq.org
Fri Dec 31 11:01:02 CST 2010
Module: wine
Branch: master
Commit: 145031b8d42cffa918b5dad58855606be15b19d4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=145031b8d42cffa918b5dad58855606be15b19d4
Author: André Hentschel <nerv at dawncrow.de>
Date: Thu Dec 30 19:30:12 2010 +0100
wininet/tests: Don't call GetLastError() twice.
---
dlls/wininet/tests/url.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/tests/url.c b/dlls/wininet/tests/url.c
index 2ffecbc..15fbb09 100644
--- a/dlls/wininet/tests/url.c
+++ b/dlls/wininet/tests/url.c
@@ -465,21 +465,21 @@ static void InternetCrackUrl_test(void)
ret = InternetCrackUrlA(TEST_URL3, 0, ICU_DECODE, &urlComponents);
GLE = GetLastError();
ok(ret==firstret && (GLE==firstGLE), "InternetCrackUrl returned %d with GLE=%d (expected to return %d)\n",
- ret, GetLastError(), firstret);
+ ret, GLE, firstret);
copy_compsA(&urlSrc, &urlComponents, 32, 1024, 0, 1024, 2048, 1024);
SetLastError(0xdeadbeef);
ret = InternetCrackUrlA(TEST_URL3, 0, ICU_DECODE, &urlComponents);
GLE = GetLastError();
ok(ret==firstret && (GLE==firstGLE), "InternetCrackUrl returned %d with GLE=%d (expected to return %d)\n",
- ret, GetLastError(), firstret);
+ ret, GLE, firstret);
copy_compsA(&urlSrc, &urlComponents, 32, 1024, 1024, 0, 2048, 1024);
SetLastError(0xdeadbeef);
ret = InternetCrackUrlA(TEST_URL3, 0, ICU_DECODE, &urlComponents);
GLE = GetLastError();
ok(ret==firstret && (GLE==firstGLE), "InternetCrackUrl returned %d with GLE=%d (expected to return %d)\n",
- ret, GetLastError(), firstret);
+ ret, GLE, firstret);
copy_compsA(&urlSrc, &urlComponents, 32, 1024, 1024, 1024, 0, 1024);
SetLastError(0xdeadbeef);
More information about the wine-cvs
mailing list