Commit a7128080 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

the same fix here too, typecast to prevent win32 compiler warning

parent e19c2037
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ static int file_lookup(const char *name, struct hostent **host)
        == ERROR_SUCCESS)
    {
      DWORD dwLength = MAX_PATH;
                RegQueryValueEx(hkeyHosts, DATABASEPATH, NULL, NULL, tmp,
      RegQueryValueEx(hkeyHosts, DATABASEPATH, NULL, NULL, (LPBYTE)tmp,
                      &dwLength);
      ExpandEnvironmentStrings(tmp, PATH_HOSTS, MAX_PATH);
      RegCloseKey(hkeyHosts);