eric pouech (@epo) commented about dlls/ntdll/tests/directory.c:
+ WCHAR *mask_value = {0}; + ULONG mask_len = 0; + + if (mask) + { + mask_len = mask->Length / sizeof(WCHAR); + mask_value = mask->Buffer; + } + + /* Perform the query */ + status = pNtQueryDirectoryFile( handle, NULL, NULL, NULL, &io, data, data_size, + FileDirectoryInformation, TRUE, mask, restart_scan ); + + if (validate_only && status != expected_status) return FALSE; + + todo_wine this generates tons of failures...
as you're fixing it in next patch, it's fine to use todo_wine_if(status != expected_status) same remark applies to the other todo_wine calls in this function -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6904#note_92914