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