[ros-diffs] [fireball] 40063: - Support loading drivers which have no subdirectory in their image path.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Mar 16 19:26:03 CET 2009


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/windows/winldr.c?rev=40063&r1=40062&r2=40063&view=diff
==============================================================================
--- 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);
 



More information about the Ros-diffs mailing list