Convert strings before returning them

This commit is contained in:
Dr. Chat 2015-07-27 18:23:11 -05:00
parent 6a26fd08cd
commit e37479c7b0
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class StringPointerParam : public ParamBase<uint32_t> {
uintptr_t host_address() const {
return reinterpret_cast<uintptr_t>(host_ptr_);
}
STR value() const { return STR(host_ptr_); }
STR value() const { return xe::load_and_swap<STR>(host_ptr_); }
operator CHAR*() const { return host_ptr_; }
operator bool() const { return host_ptr_ != nullptr; }