# HG changeset patch # User Loïc Guilloux # Date 2021-10-22 14:34:48 # Node ID 976c6433ce5db60f9daeb5a70c3edb80ca87241c # Parent 95c22eb930e04af28e84a99644526eb3c3991fa3 Fix #9643, 95386dc: Incorrect determination of screenshot format (#9644) diff --git a/src/screenshot.cpp b/src/screenshot.cpp --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -584,7 +584,7 @@ void InitializeScreenshotFormats() { uint j = 0; for (uint i = 0; i < lengthof(_screenshot_formats); i++) { - if (_screenshot_format_name.compare(_screenshot_formats[i].extension) != 0) { + if (_screenshot_format_name.compare(_screenshot_formats[i].extension) == 0) { j = i; break; }