HostGetString: Actually fill a string with data

This commit is contained in:
shuffle2 2015-09-26 19:08:15 -07:00 committed by Tillmann Karras
parent ba96ca289d
commit 2cb5c41fed
1 changed files with 1 additions and 0 deletions

View File

@ -637,6 +637,7 @@ std::string HostGetString(u32 address, size_t size)
u8 res = HostRead_U8(address); u8 res = HostRead_U8(address);
if (!res) if (!res)
break; break;
s += static_cast<char>(res);
++address; ++address;
} while (size == 0 || s.length() < size); } while (size == 0 || s.length() < size);
return s; return s;