mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
eee
This commit is contained in:
parent
6246307bfd
commit
a180c98391
2 changed files with 11 additions and 4 deletions
|
@ -287,6 +287,9 @@ NTSTATUS HandleValidateDriversIOCTL(
|
||||||
return STATUS_ABANDONED;
|
return STATUS_ABANDONED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MODULE_VALIDATION_FAILURE_HEADER header;
|
||||||
|
header.module_count = head->count;
|
||||||
|
|
||||||
if ( head->count > 0 )
|
if ( head->count > 0 )
|
||||||
{
|
{
|
||||||
DEBUG_LOG( "found INVALID drivers with count: %i", head->count );
|
DEBUG_LOG( "found INVALID drivers with count: %i", head->count );
|
||||||
|
@ -294,9 +297,6 @@ NTSTATUS HandleValidateDriversIOCTL(
|
||||||
Irp->IoStatus.Information = sizeof( MODULE_VALIDATION_FAILURE_HEADER ) +
|
Irp->IoStatus.Information = sizeof( MODULE_VALIDATION_FAILURE_HEADER ) +
|
||||||
MODULE_VALIDATION_FAILURE_MAX_REPORT_COUNT * sizeof( MODULE_VALIDATION_FAILURE );
|
MODULE_VALIDATION_FAILURE_MAX_REPORT_COUNT * sizeof( MODULE_VALIDATION_FAILURE );
|
||||||
|
|
||||||
MODULE_VALIDATION_FAILURE_HEADER header;
|
|
||||||
header.module_count = head->count;
|
|
||||||
|
|
||||||
RtlCopyMemory(
|
RtlCopyMemory(
|
||||||
Irp->AssociatedIrp.SystemBuffer,
|
Irp->AssociatedIrp.SystemBuffer,
|
||||||
&header,
|
&header,
|
||||||
|
@ -329,6 +329,13 @@ NTSTATUS HandleValidateDriversIOCTL(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DEBUG_LOG( "No INVALID drivers found :)" );
|
DEBUG_LOG( "No INVALID drivers found :)" );
|
||||||
|
|
||||||
|
Irp->IoStatus.Information = sizeof( MODULE_VALIDATION_FAILURE_HEADER );
|
||||||
|
|
||||||
|
RtlCopyMemory(
|
||||||
|
Irp->AssociatedIrp.SystemBuffer,
|
||||||
|
&header,
|
||||||
|
sizeof( MODULE_VALIDATION_FAILURE_HEADER ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
ExFreePoolWithTag( head, INVALID_DRIVER_LIST_HEAD_POOL );
|
ExFreePoolWithTag( head, INVALID_DRIVER_LIST_HEAD_POOL );
|
||||||
|
|
|
@ -99,7 +99,7 @@ void kernelmode::Driver::VerifySystemModules()
|
||||||
|
|
||||||
if ( bytes_returned == NULL )
|
if ( bytes_returned == NULL )
|
||||||
{
|
{
|
||||||
LOG_INFO( "All threads valid, nmis fine." );
|
LOG_INFO( "All system modules valid" );
|
||||||
free( buffer );
|
free( buffer );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue