mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-08 21:38:40 -06:00
fix: Crash on some Linux systems when opening files
This commit is contained in:
@@ -247,7 +247,7 @@ namespace hex {
|
||||
}
|
||||
|
||||
bool isValid() {
|
||||
return !s_providers.empty() && s_currentProvider < i64(s_providers.size());
|
||||
return !s_providers.empty() && s_currentProvider >= 0 && s_currentProvider < i64(s_providers.size());
|
||||
}
|
||||
|
||||
void markDirty() {
|
||||
|
||||
Reference in New Issue
Block a user