Fix up IsAbsolutePath check in Windows.

This commit is contained in:
Glenn Maynard
2003-09-05 20:13:36 +00:00
parent 96c2e2ad7e
commit 4d8eb53e1c
+2 -1
View File
@@ -94,7 +94,8 @@ static void ChangeToDirOfExecutable(const char *argv0)
if( DirOfExecutable.size() == 0 || (DirOfExecutable[0] == '/' || DirOfExecutable[0] == '\\') )
IsAbsolutePath = true;
#if defined(_WIN32)
if( DirOfExecutable.size() > 2 && DirOfExecutable[1] == ':' ) /* XXX: "c:foo" is relative */
if( DirOfExecutable.size() > 2 && DirOfExecutable[1] == ':' &&
(DirOfExecutable[2] == '/' || DirOfExecutable[2] == '\\') )
IsAbsolutePath = true;
#endif