wibo icon indicating copy to clipboard operation
wibo copied to clipboard

Add trailing periods support to `FindFirstFileA`

Open AngheloAlf opened this issue 10 months ago • 1 comments

Adds support to handle directories with trailing periods (ie include/.) passed to FindFirstFileA and family.

I couldn't find docs on how the function should behave in this case (https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findfirstfilea), but assuming it means "find anything on the passed directory" makes the program happy.

This was needed by "GCC 2.95.3 SN 1.14's cpp.exe"

I also added an assert in FindFirstFileA to check for wildcards and a few other unrelated logs. I can remove them if preferred.

AngheloAlf avatar Apr 02 '24 19:04 AngheloAlf

Removed the wildcard assert since the CI test passes a wildcard to FindFirstFileA

AngheloAlf avatar Apr 02 '24 19:04 AngheloAlf