PERFORCE change 143198 for review

Weongyo Jeong weongyo at FreeBSD.org
Mon Jun 9 11:12:57 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143198

Change 143198 by weongyo at weongyo_ws on 2008/06/09 11:12:09

	HAL.dll isn't required anymore that it can be optional.

Affected files ...

.. //depot/projects/ndisusb/sys/compat/ndis/kern_windrv.c#3 edit

Differences ...

==== //depot/projects/ndisusb/sys/compat/ndis/kern_windrv.c#3 (text+ko) ====

@@ -352,9 +352,11 @@
 	if (pe_patch_imports(img, "NDIS", ndis_functbl))
 		return(ENOEXEC);
 
-	/* Dynamically link the HAL.dll routines -- also required. */
-	if (pe_patch_imports(img, "HAL", hal_functbl))
-		return(ENOEXEC);
+	/* Dynamically link the HAL.dll routines -- optional. */
+	if (pe_get_import_descriptor(img, &imp_desc, "HAL") == 0) {
+		if (pe_patch_imports(img, "HAL", hal_functbl))
+			return(ENOEXEC);
+	}
 
 	/* Dynamically link ntoskrnl.exe -- optional. */
 	if (pe_get_import_descriptor(img, &imp_desc, "ntoskrnl") == 0) {


More information about the p4-projects mailing list