summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_utf8decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_utf8decoder.cpp')
-rw-r--r--core/fxcrt/cfx_utf8decoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_utf8decoder.cpp b/core/fxcrt/cfx_utf8decoder.cpp
index bee5e16da4..8adab5c602 100644
--- a/core/fxcrt/cfx_utf8decoder.cpp
+++ b/core/fxcrt/cfx_utf8decoder.cpp
@@ -43,5 +43,7 @@ void CFX_UTF8Decoder::Input(uint8_t byte) {
} else if (byte < 0xfe) {
m_PendingBytes = 5;
m_PendingChar = (byte & 0x01) << 30;
+ } else {
+ m_PendingBytes = 0;
}
}