mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NTOSKRNL]
- Add more debugging during driver loading (not enabled by default) svn path=/trunk/; revision=53912
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user