QB64-Phoenix-Edition / QB64pe

The QB64 Phoenix Edition Repository
https://qb64phoenix.com
Other
131 stars 26 forks source link

Fix shared directory state between KILL, FILES, and _FILES$ #557

Closed a740g closed 1 month ago

a740g commented 1 month ago

This PR addresses a bug where KILL, FILES, and _FILES$ unintentionally shared a static DIR pointer when performing file searches. As a result, calling any of these functions would reset the search state of _FILES$, leading to unexpected behavior.

Each of these functions (KILL, FILES, and _FILES$) now maintains its own separate directory search state, preventing interference between them.

This issue was reported here.