simon-svn: putty: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Tue Jan 9 18:05:18 GMT 2007


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       7082
Date:           2007-01-09 18:05:17 +0000 (Tue, 09 Jan 2007)

Log message (18 lines):
Fix `win-randseed-location': use SHGetFolderPath() to find the
Application Data directory in preference to the old-fashioned
attempt to find the user's home directory, and use the _local-
machine_ Application Data directory in preference even to that.

SHGetFolderPath() is called via GetProcAddress, so this degrades
gracefully on old Windowses. (Tested myself on Win95.)

As part of this change, we now search for a location for the seed
file separately for reading and writing, so that installing the new
PuTTY should cause a seamless migration as the old seed file is read
from the old location and then a new one written to the new location.

`putty -cleanup' attempts to delete the seed file from _all_
affected locations.

Naturally, a user-specified seed file path in the Registry still
takes priority over all other means of finding the location.

Modified files:
U   putty/windows/winstore.c

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=7082&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/windows/winstore.c?rev=7082&r1=7081&r2=7082



More information about the tartarus-commits mailing list