From 4d8eb53e1c54593e9bace052d2ddb533e5ee0912 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 5 Sep 2003 20:13:36 +0000 Subject: [PATCH] Fix up IsAbsolutePath check in Windows. --- stepmania/src/StepMania.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 86fe0f7f9c..41157266cc 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -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