Ethereal-dev: Re: [Ethereal-dev] Crashes on Win98 and WinME fixed

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 07 Jan 2005 02:26:53 -0800
Lars Roland wrote:

A lot of people recently reported crashes of Ethereal 0.10.8 on Win98 and WinME at startup.
This issue is solved now.

On Windows 95/98/Me, there's apparently a hosts file, but it's in c:\windows\hosts. I've checked in a change so that if SYSTEMROOT isn't set, it tries reading c:\windows\hosts - and also tries c:\winnt\system32\drivers\etc\hosts and c:\windows\system32\drivers\etc\hosts, in case SYSTEMROOT wasn't set on NT 4.0/2K/XP/Server2K3.

Is WINDIR set on 95/98/Me? If so, should it be checking there? If so, should it use WINDIR rather than SYSTEMROOT? In either case, should it try both %WINDIR%\hosts and %WINDIR%\system32\drivers\etc\hosts, to handle both 95/98/Me and NT4/2K/XP/Server2K3, or should it base that on whether it's Windows OT (95/98/Me) or NT (NT4/2K/XP/Server2K3)? Or is there some better way of getting the pathname of the hosts file?

Should we just punt, rather than trying well-known paths, if {WINDIR,SYSTEMROOT} isn't set?