[SHELL32_APITEST] Several fixes (#8266)

Fix the shell32 apitests so that they pass on Windows Server 2003 - Windows 10. Many of these fixes are for Vista+, but the most important fixes are for ShellExecCmdLine and FindExecutable which had issues closing windows after tests and deleting test files. Failing to delete these files breaks the other test (i.e. running ShellExecCmdLine would break FindExecutable and vis-versa.)
This commit is contained in:
Carl J. Bialorucki
2025-07-29 14:06:13 -06:00
committed by GitHub
parent c9842e5aad
commit b86422cd4b
20 changed files with 524 additions and 308 deletions

View File

@@ -34,10 +34,9 @@ static void TEST_GUIDFromStringA(void)
}
_SEH2_END;
if (IsWindowsVistaOrGreater())
ok_int(ret, FALSE);
else
ok_int(ret, 0xDEADBEEF);
ok(ret == FALSE || // Win8+
ret == (int)(0xDEADBEEF), // Win2k3-Win7
"Wrong value for ret (0x%X)\n", ret);
ok_int(memcmp(&guid, &invalid_guid, sizeof(guid)) == 0, TRUE);
guid = invalid_guid;
@@ -81,10 +80,9 @@ static void TEST_GUIDFromStringW(void)
}
_SEH2_END;
if (IsWindowsVistaOrGreater())
ok_int(ret, 0xDEADBEEF);
else
ok_int(ret, FALSE);
ok(ret == (int)(0xDEADBEEF) || // Win8+
ret == FALSE, // Win2k3-Win7
"Wrong value for ret (0x%X)\n", ret);
ok_int(memcmp(&guid, &invalid_guid, sizeof(guid)) == 0, TRUE);
guid = invalid_guid;