diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_strings.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_strings.cc index b574af1df..71fa6046b 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_strings.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_strings.cc @@ -727,7 +727,7 @@ class StringFormatData : public FormatData { void skip(int32_t count) { while (count-- > 0) { - if (!*input_) { + if (!get()) { break; } } @@ -760,11 +760,11 @@ class WideStringFormatData : public FormatData { return xe::byte_swap(result); } - uint16_t peek(int32_t offset) { return input_[offset]; } + uint16_t peek(int32_t offset) { return xe::byte_swap(input_[offset]); } void skip(int32_t count) { while (count-- > 0) { - if (!*input_) { + if (!get()) { break; } } @@ -794,11 +794,11 @@ class WideCountFormatData : public FormatData { return xe::byte_swap(result); } - uint16_t peek(int32_t offset) { return input_[offset]; } + uint16_t peek(int32_t offset) { return xe::byte_swap(input_[offset]); } void skip(int32_t count) { while (count-- > 0) { - if (!*input_) { + if (!get()) { break; } }