mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
(Windows) Fixed an issue where attempting to capitalize multi-byte Unicode strings crashed the application if built using the MSVC compiler
This commit is contained in:
parent
3b62dc6ee7
commit
768539e8e7
|
@ -551,7 +551,7 @@ namespace Utils
|
|||
std::string line {stringArg};
|
||||
bool active {true};
|
||||
|
||||
for (auto& chr : line) {
|
||||
for (unsigned char chr : line) {
|
||||
if (std::isalnum(chr)) {
|
||||
if (active) {
|
||||
chr = std::toupper(chr);
|
||||
|
|
Loading…
Reference in a new issue