=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: inetcomm/tests: Don' t test function directly when reporting GetLastError().

Alexandre Julliard julliard at winehq.org
Tue Jan 2 13:19:01 CST 2018


Module: wine
Branch: master
Commit: ad40af14acb57380fea775ab35708cd0b28111c1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ad40af14acb57380fea775ab35708cd0b28111c1

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sat Dec 30 19:58:00 2017 +0100

inetcomm/tests: Don't test function directly when reporting GetLastError().

Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/inetcomm/tests/mimeole.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c
index 4915f99..4c40c11 100644
--- a/dlls/inetcomm/tests/mimeole.c
+++ b/dlls/inetcomm/tests/mimeole.c
@@ -1416,6 +1416,7 @@ static void test_mhtml_protocol_binding(const mhtml_binding_test_t *test)
     HRESULT hres;
     HANDLE file;
     DWORD size;
+    BOOL ret;
 
     p = file_name + GetCurrentDirectoryA(sizeof(file_name), file_name);
     *p++ = '\\';
@@ -1454,7 +1455,8 @@ static void test_mhtml_protocol_binding(const mhtml_binding_test_t *test)
     CHECK_CALLED(ReportResult);
 
     IInternetProtocol_Release(protocol);
-    ok(DeleteFileA("winetest.mht"), "DeleteFile failed: %u\n", GetLastError());
+    ret = DeleteFileA("winetest.mht");
+    ok(ret, "DeleteFile failed: %u\n", GetLastError());
 }
 
 static const struct {




More information about the wine-cvs mailing list