RetroAchievements / RAIntegration

The DLL responsible to integrate emulators with RetroAchievements.org
https://retroachievements.org
MIT License
98 stars 22 forks source link

fix disappearing results for singular text match #809

Closed Jamiras closed 3 years ago

Jamiras commented 3 years ago

Fixes an issue where filtering text search results would sometimes cause a portion of the list to disappear.

If a matching block (chunk of memory) contained only one match, the adjustment to include the entire string was discarding the front of the string, so the lookup for the string was failing, and all entries after the failure were left uninitialized.

Also changes any values outside the ASCII range to the unicode replacement character.