Fix bugs with DNS library on Windows

This commit is contained in:
Justine Tunney 2024-01-03 17:32:16 -08:00
parent 1bb52c223b
commit 34ed1fcbea
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 12 additions and 4 deletions

View file

@ -23,6 +23,6 @@ const char *GetHostsTxtPath(char *path, size_t size) {
if (!IsWindows()) {
return "/etc/hosts";
} else {
return GetSystemDirectoryPath(path, "drivers\\etc\\hosts", size);
return GetSystemDirectoryPath(path, "\\drivers\\etc\\hosts", size);
}
}