Properly clean allocated space before using it
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user