Просмотр исходного кода

lm: Ensure log string is non-empty before checking back().

bunnei 8 лет назад
Родитель
Сommit
69697535bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/hle/service/lm/lm.cpp

+ 1 - 1
src/core/hle/service/lm/lm.cpp

@@ -125,7 +125,7 @@ private:
         if (line) {
         if (line) {
             output += std::to_string(line) + ':';
             output += std::to_string(line) + ':';
         }
         }
-        if (output.back() == ':') {
+        if (output.length() > 0 && output.back() == ':') {
             output += ' ';
             output += ' ';
         }
         }
         output += message;
         output += message;