Author: fireball Date: Mon Mar 16 21:26:02 2009 New Revision: 40063
URL: http://svn.reactos.org/svn/reactos?rev=40063&view=rev Log: - Support loading drivers which have no subdirectory in their image path.
Modified: trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/windows/winldr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/window... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/windows/winldr.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/windows/winldr.c [iso-8859-1] Mon Mar 16 21:26:02 2009 @@ -277,6 +277,12 @@ // 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);