Merge pull request #3096 from dolphin-emu/shuffle2-fix-getstring

HostGetString: Actually fill a string with data
This commit is contained in:
flacs 2015-09-29 03:44:23 +02:00
commit 4c1922ae5a
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);
if (!res)
break;
s += static_cast<char>(res);
++address;
} while (size == 0 || s.length() < size);
return s;