- Support loading drivers which have no subdirectory in their image path.

svn path=/trunk/; revision=40063
This commit is contained in:
Aleksey Bragin 2009-03-16 18:26:02 +00:00
parent 34afc06d0a
commit 48291b3d33

View file

@ -277,6 +277,12 @@ WinLdrLoadDeviceDriver(PLOADER_PARAMETER_BLOCK LoaderBlock,
// Cut out the name from the path
*(DriverNamePos+1) = 0;
}
else
{
// There is no directory in the path
strcpy(DllName, DriverPath);
DriverPath[0] = 0;
}
DPRINTM(DPRINT_WINDOWS, "DriverPath: %s, DllName: %s, LPB %p\n", DriverPath, DllName, LoaderBlock);