mirror of
https://github.com/reactos/reactos.git
synced 2024-08-06 11:24:58 +00:00
[NTOSKRNL]
- Add more debugging during driver loading (not enabled by default) svn path=/trunk/; revision=53912
This commit is contained in:
parent
47c6809ec3
commit
90027438d1
|
@ -239,6 +239,8 @@ IopNormalizeImagePath(
|
|||
{
|
||||
UNICODE_STRING InputImagePath;
|
||||
|
||||
DPRINT("Normalizing image path '%wZ' for service '%wZ'\n", ImagePath, ServiceName);
|
||||
|
||||
RtlCopyMemory(
|
||||
&InputImagePath,
|
||||
ImagePath,
|
||||
|
@ -272,6 +274,8 @@ IopNormalizeImagePath(
|
|||
/* Free caller's string */
|
||||
ExFreePoolWithTag(InputImagePath.Buffer, TAG_RTLREGISTRY);
|
||||
}
|
||||
|
||||
DPRINT("Normalized image path is '%wZ' for service '%wZ'\n", ImagePath, ServiceName);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
@ -394,7 +398,7 @@ IopLoadServiceModule(
|
|||
}
|
||||
else
|
||||
{
|
||||
DPRINT("Loading module\n");
|
||||
DPRINT("Loading module from %wZ\n", &ServiceImagePath);
|
||||
Status = MmLoadSystemImage(&ServiceImagePath, NULL, NULL, 0, (PVOID)ModuleObject, &BaseAddress);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -1897,6 +1901,7 @@ IopLoadUnloadDriver(PLOAD_UNLOAD_PARAMS LoadParams)
|
|||
* Load the driver module
|
||||
*/
|
||||
|
||||
DPRINT("Loading module from %wZ\n", &ImagePath);
|
||||
Status = MmLoadSystemImage(&ImagePath, NULL, NULL, 0, (PVOID)&ModuleObject, &BaseAddress);
|
||||
|
||||
if (!NT_SUCCESS(Status) && Status != STATUS_IMAGE_ALREADY_LOADED)
|
||||
|
|
Loading…
Reference in a new issue