mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
SteamTarget: Remove unnecessary VirtualProtect calls
This commit is contained in:
parent
a9d947812e
commit
4693542321
@ -193,11 +193,11 @@ DWORD VirtualControllerThread::callRealXinputGetState(DWORD dwUserIndex, XINPUT_
|
||||
{
|
||||
*(Address + i) = realBytes[i];
|
||||
}
|
||||
VirtualProtect(Address, opPatchLenght, dwOldProtect, &dwBkup); //Revert permission change...
|
||||
//VirtualProtect(Address, opPatchLenght, dwOldProtect, &dwBkup); //Revert permission change...
|
||||
|
||||
ret = XGetState(dwUserIndex, pState); //Cal REAL XInputGetState...
|
||||
|
||||
VirtualProtect(Address, opPatchLenght, PAGE_EXECUTE_READWRITE, &dwOldProtect); //Change permissions of memory..
|
||||
//VirtualProtect(Address, opPatchLenght, PAGE_EXECUTE_READWRITE, &dwOldProtect); //Change permissions of memory..
|
||||
for (int i = 0; i < opPatchLenght; i++) //repatch Valve's hook
|
||||
{
|
||||
*(Address + i) = valveHookBytes[i];
|
||||
|
Loading…
Reference in New Issue
Block a user