Skip to content

Fix ghost ASIO driver hang by validating HFILE properly#481

Closed
groundhog-max wants to merge 1 commit intothestk:masterfrom
groundhog-audio:fix/asio-ghost-driver-hfile-check
Closed

Fix ghost ASIO driver hang by validating HFILE properly#481
groundhog-max wants to merge 1 commit intothestk:masterfrom
groundhog-audio:fix/asio-ghost-driver-hfile-check

Conversation

@groundhog-max
Copy link
Copy Markdown

OpenFile returns HFILE_ERROR (-1) on failure, which the previous check (if (hfile)) incorrectly accepted as a valid handle. This caused ghost ASIO driver entries (left behind by uninstalled software) to pass validation and hang the app when rtaudio tried to load them. Use (hfile && hfile != HFILE_ERROR) to reject both sentinels explicitly.

OpenFile returns HFILE_ERROR (-1) on failure, which the previous
check (if (hfile)) incorrectly accepted as a valid handle. This
caused ghost ASIO driver entries (left behind by uninstalled
software) to pass validation and hang the app when rtaudio tried
to load them. Use (hfile && hfile != HFILE_ERROR) to reject both
sentinels explicitly.
@groundhog-max groundhog-max deleted the fix/asio-ghost-driver-hfile-check branch April 13, 2026 17:15
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