- Support loading drivers which have no subdirectory in their image path.
authorAleksey Bragin <aleksey@reactos.org>
Mon, 16 Mar 2009 18:26:02 +0000 (18:26 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 16 Mar 2009 18:26:02 +0000 (18:26 +0000)
svn path=/trunk/; revision=40063

reactos/boot/freeldr/freeldr/windows/winldr.c

index 0e5526a..dd4beb0 100644 (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);