mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:22:57 +00:00
[NTOSKRNL]
- Use the correct file name for services which have differing service and image names - Fixes the file name of the display miniports on the SOS screen (VGA.SYS -> VGAMP.SYS and VBE.SYS -> VBEMP.SYS) svn path=/trunk/; revision=46270
This commit is contained in:
parent
70e434adea
commit
ba2554d6f4
1 changed files with 13 additions and 1 deletions
|
@ -414,8 +414,20 @@ static INIT_FUNCTION NTSTATUS
|
||||||
IopLoadDriver(PSERVICE Service)
|
IopLoadDriver(PSERVICE Service)
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_UNSUCCESSFUL;
|
NTSTATUS Status = STATUS_UNSUCCESSFUL;
|
||||||
|
PUNICODE_STRING ImagePath = &Service->ImagePath;
|
||||||
|
PWCHAR ImageName;
|
||||||
|
UNICODE_STRING ImageNameU;
|
||||||
|
|
||||||
|
ImageName = wcsrchr(ImagePath->Buffer, L'\\');
|
||||||
|
if (!ImageName)
|
||||||
|
ImageName = ImagePath->Buffer;
|
||||||
|
else
|
||||||
|
ImageName++;
|
||||||
|
|
||||||
|
RtlInitUnicodeString(&ImageNameU, ImageName);
|
||||||
|
|
||||||
|
IopDisplayLoadingMessage(&ImageNameU);
|
||||||
|
|
||||||
IopDisplayLoadingMessage(&Service->ServiceName);
|
|
||||||
Status = ZwLoadDriver(&Service->RegistryPath);
|
Status = ZwLoadDriver(&Service->RegistryPath);
|
||||||
IopBootLog(&Service->ImagePath, NT_SUCCESS(Status) ? TRUE : FALSE);
|
IopBootLog(&Service->ImagePath, NT_SUCCESS(Status) ? TRUE : FALSE);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue