fix
This commit is contained in:
parent
607b5651b9
commit
b095bc2bce
|
@ -293,9 +293,10 @@ _FX BOOLEAN Gui_InitMisc(HMODULE module)
|
|||
|
||||
if (SbieApi_QueryConfBool(NULL, L"UseChangeSpeed", FALSE)) {
|
||||
P_SetTimer SetTimer = Ldr_GetProcAddrNew(DllName_user32, "SetTimer", "SetTimer");
|
||||
if (SetTimer)
|
||||
if (SetTimer) {
|
||||
SBIEDLL_HOOK(Gui_, SetTimer);
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -97,11 +97,13 @@ _FX BOOLEAN Kernel_Init()
|
|||
|
||||
SBIEDLL_HOOK(Kernel_, GetTickCount);
|
||||
P_GetTickCount64 GetTickCount64 = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetTickCount64", "GetTickCount64");
|
||||
if (GetTickCount64)
|
||||
if (GetTickCount64) {
|
||||
SBIEDLL_HOOK(Kernel_, GetTickCount64);
|
||||
}
|
||||
P_QueryUnbiasedInterruptTime QueryUnbiasedInterruptTime = Ldr_GetProcAddrNew(Dll_Kernel32, L"QueryUnbiasedInterruptTime", "QueryUnbiasedInterruptTime");
|
||||
if (QueryUnbiasedInterruptTime)
|
||||
if (QueryUnbiasedInterruptTime) {
|
||||
SBIEDLL_HOOK(Kernel_, QueryUnbiasedInterruptTime);
|
||||
}
|
||||
SBIEDLL_HOOK(Kernel_, QueryPerformanceCounter);
|
||||
//SBIEDLL_HOOK(Kernel_, Sleep);
|
||||
SBIEDLL_HOOK(Kernel_, SleepEx);
|
||||
|
|
Loading…
Reference in New Issue