Module: wine Branch: master Commit: 4b09ed1486b4c880c7ed1cbbfd3d9b1335f4d4ab URL: https://gitlab.winehq.org/wine/wine/-/commit/4b09ed1486b4c880c7ed1cbbfd3d9b1...
Author: André Zwing nerv@dawncrow.de Date: Thu Dec 29 17:00:08 2022 +0100
setupapi/tests: Don't test function directly when reporting GetLastError().
---
dlls/setupapi/tests/install.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/setupapi/tests/install.c b/dlls/setupapi/tests/install.c index f53740a8824..2bbcbec88dc 100644 --- a/dlls/setupapi/tests/install.c +++ b/dlls/setupapi/tests/install.c @@ -2291,8 +2291,10 @@ static void test_rename(void) ok(delete_file("a/six.txt"), "File should exist.\n"); SetupCloseFileQueue(queue);
- ok(delete_file("a/"), "Failed to delete directory, error %lu.\n", GetLastError()); - ok(delete_file("b/"), "Failed to delete directory, error %lu.\n", GetLastError()); + ret = delete_file("a/"); + ok(ret, "Failed to delete directory, error %lu.\n", GetLastError()); + ret = delete_file("b/"); + ok(ret, "Failed to delete directory, error %lu.\n", GetLastError()); }
static WCHAR service_name[] = L"Wine Test Service";