BoCA icon indicating copy to clipboard operation
BoCA copied to clipboard

Fix CoreAudio DLL path not being found (on newer Wine?)

Open udf opened this issue 1 year ago • 0 comments

FindFirstFile considers a path with a trailing backslash as invalid:

This parameter should not be NULL, an invalid string (for example, an empty string or a string that is missing the terminating null character), or end in a trailing backslash ().

It seems the trailing backslash used to be fine on older versions of Wine, but it has since been fixed.

This could be resolved by trimming the backslash, but I think it's better to use PathFileExists instead, which "Determines whether a path to a file system object such as a file or folder is valid.".

I have not tested the changes on Windows, however (but if the Microsoft Documentation is to be believed then it shouldn't have worked before).

udf avatar Feb 24 '24 23:02 udf