forked from nmap/npcap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange initialization of filter module list
As soon as we call NdisFRegisterFilterDriver, NDIS can start attaching adapters. All members have to be initialized already. Additionally, the global `g_arrFiltMod` has to be initialized when declared because otherwise the compiler keeps rearranging things and setting `Next` to NULL *after* the adapters are attached, resulting in NPF_OpenAdapter always failing.
- Loading branch information
1 parent
f0aa98a
commit 1fafdb5
Showing
2 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters