Skip to content

Try all dll_paths in find_dll - #131

Merged
evmar merged 1 commit into
evmar:mainfrom
LinusU:lu-dll-paths
Nov 20, 2025
Merged

evmar merged 1 commit into
evmar:mainfrom
LinusU:lu-dll-paths

Conversation

@LinusU

@LinusU LinusU commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

My program was calling LoadLibraryA with a full path, which then failed as it first tried reading the full path added to the current directory, and bailed early. It seems like the original intent was to try both, but the ? introduces an early return path...

@LinusU

LinusU commented Nov 18, 2025

Copy link
Copy Markdown
Contributor Author

(CI fixed in #130)

@evmar

evmar commented Nov 20, 2025

Copy link
Copy Markdown
Owner

Hmm, I think at one point I made read_file return an empty buffer in the case of file not found (as distinct from other types of errors). It wasn't a great API choice heh

@evmar
evmar merged commit 832d078 into evmar:main Nov 20, 2025
4 of 5 checks passed
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.

2 participants