On Saturday, 1 July 2017 at 00:48:01 UTC, bauss wrote:
On Saturday, 1 July 2017 at 00:40:11 UTC, ag0aep6g wrote:[...]Yeah, the cast was unnecessary. So this is my code after the changes:string ReadWinString(HANDLE process, DWORD address, size_t stringSize, string defaultValue = "") {if (!process || !address) { return defaultValue; } [...]
I have solved the problem. It was caused by an invalid address, so the code actually worked fine.