diff --git a/Star Ruler 2.exe b/Star Ruler 2.exe index eeb5028..3d6eba2 100644 Binary files a/Star Ruler 2.exe and b/Star Ruler 2.exe differ diff --git a/source/loader/main.c b/source/loader/main.c index a7b0b17..a6f9263 100644 --- a/source/loader/main.c +++ b/source/loader/main.c @@ -4,7 +4,7 @@ static inline __forceinline __declspec(allocator) wchar_t* wstrdup(const wchar_t size_t i = 0; while (_String[i] != 0) i++; - wchar_t* ret = (wchar_t *)HeapAlloc(GetProcessHeap(), 0, i + 1); + wchar_t* ret = (wchar_t *)HeapAlloc(GetProcessHeap(), 0, sizeof(wchar_t) * (i + 1)); wsprintfW(ret, L"%s", _String); return ret; }