[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #1715 [Tor - Tor client]: Remove old unused win code.



#1715: Remove old unused win code.
---------------------------------+------------------------------------------
 Reporter:  mingw-san            |        Type:  enhancement     
   Status:  new                  |    Priority:  normal          
Milestone:                       |   Component:  Tor - Tor client
  Version:  Tor: 0.2.2.14-alpha  |    Keywords:  Windows DNS     
   Parent:                       |  
---------------------------------+------------------------------------------
 After 8d31141ccbdbeee9589d04ea99819af7aa35193b no more chance for non
 WinNT platforms. Moreover no was chances for dns stuff. Guess CE have more
 Tor users than 9x/Me.
 --- eventdns.c.was      Tue May 25 04:57:58 2010
 +++ eventdns.c  Tue Jul 20 13:00:56 2010
 @@ -3227,7 +3227,6 @@
  }

  #define SERVICES_KEY L"System\\CurrentControlSet\\Services\\"
 -#define WIN_NS_9X_KEY  SERVICES_KEY L"VxD\\MSTCP"
  #define WIN_NS_NT_KEY  SERVICES_KEY L"Tcpip\\Parameters"

  static int
 @@ -3269,16 +3268,6 @@
                 TRY(interfaces_key, "DhcpNameServer");
                 RegCloseKey(interfaces_key);
                 RegCloseKey(nt_key);
 -       } else {
 -               HKEY win_key = 0;
 -               if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, WIN_NS_9X_KEY, 0,
 -                                                KEY_READ, &win_key) !=
 ERROR_SUCCESS) {
 -                       log(EVDNS_LOG_DEBUG, "Couldn't open registry key,
 %d", (int)GetLastError());
 -                       return -1;
 -               }
 -               TRY(win_key, "NameServer");
 -               RegCloseKey(win_key);
 -       }

         if (found == 0) {
                 log(EVDNS_LOG_WARN,"Didn't find any nameservers.");

 Amen.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1715>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online