[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] NSUser.m
From: |
Martin Brecher |
Subject: |
[PATCH] NSUser.m |
Date: |
Sun, 23 Feb 2003 00:16:54 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 |
Hi, -
this is a very smal change to handle the weird variable handling of
Windows/MinGW more carefully.
It checkes whether the HOMEPATH variable already has the drive letter in
it, before prepending the HOMEDRIVE variable to it.
This can happen even if HOME* variables are explicitely set by the user.
Greetings,
Martin
--
I love the smell of Blue Screens in the morning.
--- NSUser.m Wed Nov 27 16:50:36 2002
+++ NSUser.fixed Sat Feb 22 22:46:36 2003
@@ -280,7 +280,7 @@
/* The environment variable HOMEPATH holds the home directory
for the user on Windows NT; Win95 has no concept of home. */
s = GSStringFromWin32EnvironmentVariable("HOMEPATH");
- if (s != nil)
+ if ((s != nil) && ([s characterAtIndex:1] != ':'))
{
s = [GSStringFromWin32EnvironmentVariable("HOMEDRIVE")
stringByAppendingString: s];
- [PATCH] NSUser.m,
Martin Brecher <=