mirror of
https://github.com/nmap/nmap.git
synced 2026-02-12 16:36:34 +00:00
Avoid calling GetLastError twice.
This commit is contained in:
@@ -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\")");
|
||||
|
||||
Reference in New Issue
Block a user