https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a8cda82924e4428b4d503f7eec4ed19e168725de

commit a8cda82924e4428b4d503f7eec4ed19e168725de
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Thu Sep 12 10:04:13 2024 +0300
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Sun Sep 15 19:28:07 2024 +0300

    [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);

Reply via email to