diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor.cpp index bc95e3b05..d6ad3111c 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor.cpp @@ -102,8 +102,14 @@ bool skipComment(const char *&data, const char *end) { while (data != end && *data != '*') { ++data; } - if (data != end) ++data; - if (data == end || *data == '/') { + if (data != end) { + ++data; + if (data != end && *data == '/') { + ++data; + break; + } + } + if (data == end) { break; } }