From a8cda82924e4428b4d503f7eec4ed19e168725de Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 12 Sep 2024 10:04:13 +0300 Subject: [PATCH] [IPHLPAPI_APITEST] Fix a test for x64 --- modules/rostests/apitests/iphlpapi/GetInterfaceName.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/rostests/apitests/iphlpapi/GetInterfaceName.c b/modules/rostests/apitests/iphlpapi/GetInterfaceName.c index 2228ba943e0..988c54572e0 100644 --- a/modules/rostests/apitests/iphlpapi/GetInterfaceName.c +++ b/modules/rostests/apitests/iphlpapi/GetInterfaceName.c @@ -112,7 +112,11 @@ test_NhGetInterfaceNameFromGuid(GUID AdapterGUID, DWORD par1, DWORD par2) Error = GetLastError(); ok_long(ApiReturn, ((GetVersion() & 0xFF) >= 6) ? ERROR_INVALID_PARAMETER : ERROR_NOT_FOUND); +#ifdef _M_AMD64 + ok_long(Error, ERROR_FILE_NOT_FOUND); +#else ok_long(Error, 0); +#endif ok(ulOutBufLen == sizeof(Name), "ulOutBufLen is %ld, expected = sizeof(Name)\n", ulOutBufLen);