Skip to content

Commit

Permalink
loader.c: fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonT8198 committed Mar 28, 2024
1 parent 70dd2ab commit ad91a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winpcap-loader/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ int pcap_load_library(void)
return 0;
}

HANDLE hwpcap = LoadLibrary("wpcap.dll");
HANDLE hwpcap = LoadLibrary("\\Npcap\\wpcap.dll");

if (hwpcap == NULL) {
hwpcap = LoadLibrary("packet.dll");
hwpcap = LoadLibrary("wpcap.dll");
if ( hwpcap == NULL ) {
return 1;
}
Expand Down

0 comments on commit ad91a2f

Please sign in to comment.