mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
- Add a null-check to the IopLoadServiceModule.
- Add a DPRINT1 saying about the possible memory-overwrite bug. This is a hack to get a bootable tree, but still have a note when The Bug happens (look for 'weird' in the debug log). svn path=/trunk/; revision=24777
This commit is contained in:
parent
a24ea27b47
commit
c157acf875
|
@ -391,6 +391,10 @@ IopLoadServiceModule(
|
||||||
|
|
||||||
DPRINT("IopLoadServiceModule(%wZ, 0x%p)\n", ServiceName, ModuleObject);
|
DPRINT("IopLoadServiceModule(%wZ, 0x%p)\n", ServiceName, ModuleObject);
|
||||||
|
|
||||||
|
/* FIXME: This check may be removed once the bug is fixed */
|
||||||
|
if (ServiceName->Buffer == NULL)
|
||||||
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get information about the service.
|
* Get information about the service.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2321,6 +2321,10 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
|
||||||
PLDR_DATA_TABLE_ENTRY ModuleObject;
|
PLDR_DATA_TABLE_ENTRY ModuleObject;
|
||||||
PDRIVER_OBJECT DriverObject;
|
PDRIVER_OBJECT DriverObject;
|
||||||
|
|
||||||
|
/* FIXME: Remove this once the bug is fixed */
|
||||||
|
if (DeviceNode->ServiceName.Buffer == NULL)
|
||||||
|
DPRINT1("Weird DeviceNode %p having ServiceName->Buffer==NULL. Probable stack corruption or memory overwrite.\n", DeviceNode);
|
||||||
|
|
||||||
Status = IopLoadServiceModule(&DeviceNode->ServiceName, &ModuleObject);
|
Status = IopLoadServiceModule(&DeviceNode->ServiceName, &ModuleObject);
|
||||||
if (NT_SUCCESS(Status) || Status == STATUS_IMAGE_ALREADY_LOADED)
|
if (NT_SUCCESS(Status) || Status == STATUS_IMAGE_ALREADY_LOADED)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue