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

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Hentschel 2017-12-30 19:58:00 +01:00 committed by Alexandre Julliard
parent a1da7dbd2b
commit ad40af14ac
1 changed files with 3 additions and 1 deletions

View File

@ -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 {