mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Avoid calling GetLastError twice.
This commit is contained in:
parent
a4237019ac
commit
c95330ddf0
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ static void init_npcap_dll_path()
|
|||
else {
|
||||
len = GetSystemDirectory(sysdir_name, 480); // be safe
|
||||
if (!len)
|
||||
pfatal("Error in GetSystemDirectory (%d)", GetLastError());
|
||||
pfatal("Error in GetSystemDirectory");
|
||||
strcat(sysdir_name, "\\Npcap");
|
||||
if (SetDllDirectory(sysdir_name) == 0)
|
||||
pfatal("Error in SetDllDirectory(\"System32\\Npcap\")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue