use proper casts for class arrays

This commit is contained in:
pizzaboxer 2022-07-06 09:01:46 +01:00
parent 499ed2c4db
commit 870ee59aaa
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ Context__requirePermission_t Context__requirePermission = (Context__requirePermi
void __fastcall Context__requirePermission_hook(void* _this, void*, int permission, const char* operation)
{
int identity = *(int*)_this;
int identity = ((int*)_this)[0];
if (!Context__isInRole(identity, permission))
{

View File

@ -158,7 +158,7 @@ bool __fastcall Http__trustCheck_hook(const char* url)
// no idea if thats a detours quirk (i doubt it) or if thats how its just actually handled
// practically no url is ever going to be seven characters long so it doesn't really matter
url = *(char**)url;
url = ((char**)url)[0];
}
std::string _url = std::string(url);