mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 15:03:20 +00:00
Revert "Use log_func, not fprintf, in massdns"
This commit is contained in:
parent
c1086f1e15
commit
493fa0d530
1 changed files with 6 additions and 2 deletions
|
|
@ -1596,8 +1596,12 @@ void DNS::ResolverImpl::etchosts_init(void) {
|
|||
char tpbuf[2048];
|
||||
int has_backslash;
|
||||
|
||||
if (!GetWindowsDirectoryA(windows_dir, sizeof(windows_dir)))
|
||||
log_func(0, "massdns: Failed to determine your windows directory\n");
|
||||
// Can't use log_func() in a static class function, since it is not defined.
|
||||
// Use fprintf instead.
|
||||
if (!GetWindowsDirectoryA(windows_dir, sizeof(windows_dir))) {
|
||||
fprintf(stderr, "massdns: Failed to determine your windows directory\n");
|
||||
return;
|
||||
}
|
||||
|
||||
// If it has a backslash it's C:\, otherwise something like C:\WINNT
|
||||
has_backslash = (windows_dir[strlen(windows_dir)-1] == '\\');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue