diff options
author | wpaul <wpaul@FreeBSD.org> | 2003-12-26 03:31:34 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2003-12-26 03:31:34 +0000 |
commit | 1bdb22f3a1d9c2cd498e27a3a3cd607e76fa2184 (patch) | |
tree | 2a2c34a4fd282fbef23a12ba960edc053b9a1ec8 /sys/compat/ndis/subr_pe.c | |
parent | eb31f8e4f71b09d33d9260ca04ecff7854a53035 (diff) | |
download | FreeBSD-src-1bdb22f3a1d9c2cd498e27a3a3cd607e76fa2184.zip FreeBSD-src-1bdb22f3a1d9c2cd498e27a3a3cd607e76fa2184.tar.gz |
Back out the last batch of changes until I have a chance to properly
evaluate them. Whatever they're meant to do, they're doing it wrong.
Also:
- Clean up last bits of NULL fallout in subr_pe
- Don't let ndis_ifmedia_sts() do anything if the IFF_UP flag isn't set
- Implement NdisSystemProcessorCount() and NdisQueryMapRegisterCount().
Diffstat (limited to 'sys/compat/ndis/subr_pe.c')
-rw-r--r-- | sys/compat/ndis/subr_pe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/subr_pe.c b/sys/compat/ndis/subr_pe.c index 7132b31..340d669 100644 --- a/sys/compat/ndis/subr_pe.c +++ b/sys/compat/ndis/subr_pe.c @@ -520,7 +520,7 @@ pe_patch_imports(imgbase, module, functbl) fptr = (vm_offset_t *)pe_translate_addr(imgbase, imp_desc.iid_import_address_table_addr); - while (nptr != NULL && pe_translate_addr(imgbase, *nptr) != NULL) { + while (nptr != NULL && pe_translate_addr(imgbase, *nptr)) { fname = (char *)pe_translate_addr(imgbase, (*nptr) + 2); func = pe_functbl_match(functbl, fname); if (func) |