Fix more windows breakage

This commit is contained in:
Brian Anderson
2012-09-23 19:53:42 -07:00
parent 690525ed81
commit acab1cd2ce
+2 -2
View File
@@ -973,8 +973,8 @@ fn homedir() {
setenv(~"USERPROFILE", ~"/home/PaloAlto");
assert os::homedir() == Some(Path("/home/MountainView"));
option::iter(oldhome, |s| setenv(~"HOME", s));
option::iter(olduserprofile,
option::iter(&oldhome, |s| setenv(~"HOME", s));
option::iter(&olduserprofile,
|s| setenv(~"USERPROFILE", s));
}