[NTOSKRNL]

Fix some code indentation and a DPRINT.

svn path=/trunk/; revision=59794
This commit is contained in:
Hermès Bélusca-Maïto 2013-08-22 19:17:17 +00:00
parent 3d31c7014a
commit e48a0068d6

View file

@ -1840,7 +1840,7 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
/* Return success and signal the event */
LoadParams->Status = STATUS_SUCCESS;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
return;
}
@ -1884,15 +1884,15 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
QueryTable[1].EntryContext = &ImagePath;
Status = RtlQueryRegistryValues(RTL_REGISTRY_ABSOLUTE,
LoadParams->ServiceName->Buffer, QueryTable, NULL, NULL);
LoadParams->ServiceName->Buffer,
QueryTable, NULL, NULL);
if (!NT_SUCCESS(Status))
{
DPRINT("RtlQueryRegistryValues() failed (Status %lx)\n", Status);
if (ImagePath.Buffer)
ExFreePool(ImagePath.Buffer);
if (ImagePath.Buffer) ExFreePool(ImagePath.Buffer);
LoadParams->Status = Status;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
return;
}
@ -1906,7 +1906,7 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
{
DPRINT("IopNormalizeImagePath() failed (Status %x)\n", Status);
LoadParams->Status = Status;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
return;
}
@ -1934,7 +1934,7 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
{
DPRINT("MmLoadSystemImage() failed (Status %lx)\n", Status);
LoadParams->Status = Status;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
return;
}
@ -1947,7 +1947,7 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
DPRINT1("IopCreateDeviceNode() failed (Status %lx)\n", Status);
MmUnloadSystemImage(ModuleObject);
LoadParams->Status = Status;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
return;
}
@ -1961,11 +1961,11 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
&DriverObject);
if (!NT_SUCCESS(Status))
{
DPRINT1("IopInitializeDriver() failed (Status %lx)\n", Status);
DPRINT1("IopInitializeDriverModule() failed (Status %lx)\n", Status);
MmUnloadSystemImage(ModuleObject);
IopFreeDeviceNode(DeviceNode);
LoadParams->Status = Status;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
return;
}
@ -1984,7 +1984,7 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
/* Pass status to the caller and signal the event */
LoadParams->Status = Status;
(VOID)KeSetEvent(&LoadParams->Event, 0, FALSE);
KeSetEvent(&LoadParams->Event, 0, FALSE);
}
/*