From 0ff7e23ba88eac4eab0894e4966c1d4b7771b941 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 13 May 2024 16:46:18 +0900 Subject: [PATCH] improve 4 --- .../shlwapi/PathFileExistsDefExtAndAttributesW.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/rostests/apitests/shlwapi/PathFileExistsDefExtAndAttributesW.c b/modules/rostests/apitests/shlwapi/PathFileExistsDefExtAndAttributesW.c index 0a0554362d1..2c3e6e593d3 100644 --- a/modules/rostests/apitests/shlwapi/PathFileExistsDefExtAndAttributesW.c +++ b/modules/rostests/apitests/shlwapi/PathFileExistsDefExtAndAttributesW.c @@ -14,14 +14,17 @@ START_TEST(PathFileExistsDefExtAndAttributesW) { WCHAR szPath[MAX_PATH]; DWORD attrs; + BOOL ret; - ok_int(PathFileExistsDefExtAndAttributesW(NULL, 0, NULL), FALSE); + ret = PathFileExistsDefExtAndAttributesW(NULL, 0, NULL); + ok_int(ret, FALSE); GetWindowsDirectoryW(szPath, _countof(szPath)); - - ok_int(PathFileExistsDefExtAndAttributesW(szPath, 0, NULL), TRUE); + ret = PathFileExistsDefExtAndAttributesW(szPath, 0, NULL); + ok_int(ret, TRUE); attrs = 0; - ok_int(PathFileExistsDefExtAndAttributesW(szPath, 0, &attrs), TRUE); + ret = PathFileExistsDefExtAndAttributesW(szPath, 0, &attrs); + ok_int(ret, TRUE); ok(attrs != 0 && attrs != INVALID_FILE_ATTRIBUTES, "attrs was 0x%lX\n", attrs); }