Properly clean allocated space before using it

This commit is contained in:
AeonLucid
2021-10-31 00:01:44 +02:00
parent afb082ee88
commit 7fbf7f225e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -62,6 +62,7 @@ namespace SDK
Max = Count;
Data = static_cast<wchar_t*>((*GMalloc)->Malloc(Count * 2));
memset(Data, 0, Count * 2);
memcpy(Data, other, charLen * 2);
}
}
+1 -1
View File
@@ -27,7 +27,7 @@ SDK::FString __fastcall PlayFabApiGetUrlProxy(SDK::UPlayFabAPISettings* thiz, co
{
logger::Print("[Agent] GetURL called with callPath %s\n", callPath.ToString().c_str());
return std::wstring(L"http://127.0.0.1:8888") + std::wstring(callPath.c_str());
return std::wstring(L"http://127.0.0.1:5000") + std::wstring(callPath.c_str());
}
DWORD WINAPI OnDllAttach(LPVOID base)