mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
HostGetString: Actually fill a string with data
This commit is contained in:
parent
ba96ca289d
commit
2cb5c41fed
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user