Hans Leidekker (@hans) commented about dlls/rometadata/tests/rometadata.c:
+ } + if (!(encoded[0] & 0x40)) + { + *len = 2; + return ((encoded[0] & ~0xc0) << 8) + encoded[1]; + } + *len = 4; + return ((encoded[0] & ~0xe0) << 24) + (encoded[1] << 16) + (encoded[2] << 8) + encoded[3]; +} + +/* Tests for WinRT metadata shipped with Windows. */ +static void test_IMetaDataImport_winrt(void) +{ + static const BYTE keyvaluepair_tmpl_params[] = { 2, ELEMENT_TYPE_STRING, ELEMENT_TYPE_OBJECT }; + static const WCHAR *foundation_wow64 = L"c:\\windows\\sysnative\\winmetadata\\windows.foundation.winmd"; + static const WCHAR *foundation = L"c:\\windows\\system32\\winmetadata\\windows.foundation.winmd"; Wouldn't it be better to test the syswow64 version when compiled as 32-bit? That way we ensure that they are identical.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11719#note_149504