mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
c:
This commit is contained in:
parent
ab26f0cf92
commit
b498c8f064
2 changed files with 5 additions and 2 deletions
|
@ -799,7 +799,7 @@ NTSTATUS HandleNmiIOCTL(
|
|||
* We want to register and unregister our callback each time so it becomes harder
|
||||
* for people to hook our callback and get up to some funny business
|
||||
*/
|
||||
callback_handle = KeRegisterNmiCallback( NmiCallback, nmi_context.nmi_core_context );
|
||||
callback_handle = KeRegisterNmiCallback( NmiCallback, &nmi_context );
|
||||
|
||||
if ( !callback_handle )
|
||||
{
|
||||
|
|
|
@ -41,7 +41,7 @@ DWORD WINAPI Init(HINSTANCE hinstDLL)
|
|||
while ( !GetAsyncKeyState( VK_DELETE ) )
|
||||
{
|
||||
srand( time( NULL ) );
|
||||
int seed = ( rand() % 5 );
|
||||
int seed = ( rand() % 6 );
|
||||
|
||||
std::cout << "Seed: " << seed << std::endl;
|
||||
|
||||
|
@ -62,6 +62,9 @@ DWORD WINAPI Init(HINSTANCE hinstDLL)
|
|||
case 4:
|
||||
kmanager.ValidateProcessModules();
|
||||
break;
|
||||
case 5:
|
||||
kmanager.RunNmiCallbacks();
|
||||
break;
|
||||
}
|
||||
|
||||
kmanager.MonitorCallbackReports();
|
||||
|
|
Loading…
Reference in a new issue