use proper casts for class arrays
This commit is contained in:
parent
499ed2c4db
commit
870ee59aaa
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue