29 Jan
2025
29 Jan
'25
9:45 a.m.
eric pouech (@epo) commented about dlls/ntdll/unix/file.c:
TRACE( "long %s short %s mask %s\n", debugstr_w( long_nameW ), debugstr_w( short_nameW ), debugstr_us( mask ));
- if (mask && !match_filename( long_nameW, long_len, mask )) + if (mask && mask->Length != 0 && !match_filename( long_nameW, long_len, mask ))
wouldn't it be simpler for factorize that test in caller (and pass NULL for mask when its length is 0) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6904#note_93180