diff options
| author | flacs <tilkax@gmail.com> | 2015-09-29 03:44:23 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-09-29 03:44:23 +0200 |
| commit | 4c1922ae5a1fbe47b358a6d68170f4fe3d00e96c (patch) | |
| tree | 33647fb6df79075db9bee9c7bbb8aae3f0c34602 /Source/Core | |
| parent | ba96ca289d6038275f890e8eff77912a16ddbaf1 (diff) | |
| parent | 2cb5c41fed211bd6c07dbe3288c4dbbda0e0c041 (diff) | |
Merge pull request #3096 from dolphin-emu/shuffle2-fix-getstring
HostGetString: Actually fill a string with data
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/MMU.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/MMU.cpp b/Source/Core/Core/PowerPC/MMU.cpp index 240887316f..9a06058bb1 100644 --- a/Source/Core/Core/PowerPC/MMU.cpp +++ b/Source/Core/Core/PowerPC/MMU.cpp @@ -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; |
