diff --git a/user/km/driver.cpp b/user/km/driver.cpp index b75ec4f..36c5c31 100644 --- a/user/km/driver.cpp +++ b/user/km/driver.cpp @@ -97,18 +97,11 @@ void kernelmode::Driver::VerifySystemModules() return; } - if ( bytes_returned == NULL ) - { - LOG_INFO( "All system modules valid" ); - free( buffer ); - return; - } - memcpy( &header, buffer, sizeof( header_size )); - if ( header.module_count == NULL ) + if ( header.module_count == 0 ) { - LOG_ERROR( "weird error with module report" ); + LOG_INFO( "All modules valid :)" ); free( buffer ); return; } diff --git a/user/main.cpp b/user/main.cpp index 9e9f15d..8f1f7f7 100644 --- a/user/main.cpp +++ b/user/main.cpp @@ -28,7 +28,7 @@ DWORD WINAPI Init(HINSTANCE hinstDLL) usermode::UManager umanager( thread_pool, report_interface ); kernelmode::KManager kmanager( driver_name, thread_pool, report_interface); - kmanager.RunNmiCallbacks(); + //kmanager.RunNmiCallbacks(); kmanager.VerifySystemModules(); //umanager.ValidateProcessModules();