Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2008 11:12:56 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 143198 for review
Message-ID:  <200806091112.m59BCuGa027837@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143198

Change 143198 by weongyo@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806091112.m59BCuGa027837>