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