Skip to content

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

Open
udf wants to merge 1 commit into
enzo1982:masterfrom
udf:master
Open

Fix CoreAudio DLL path not being found (on newer Wine?)#15
udf wants to merge 1 commit into
enzo1982:masterfrom
udf:master

Conversation

@udf

@udf udf commented Feb 24, 2024

Copy link
Copy Markdown

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant