From 4b708bd6472ec67f5e3f1ae29fd79099fb557bd0 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 30 Apr 2010 09:34:21 +0000 Subject: Previous VS2010 fix was not correct. --- tools/mhmake/src/fileinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mhmake/src') diff --git a/tools/mhmake/src/fileinfo.cpp b/tools/mhmake/src/fileinfo.cpp index 9999c36cd..fe9f18bce 100644 --- a/tools/mhmake/src/fileinfo.cpp +++ b/tools/mhmake/src/fileinfo.cpp @@ -302,7 +302,7 @@ const refptr &GetFileInfo(const string &NameIn,const refptr //Only concatenate if szName is not already a full name #ifdef WIN32 - if (Name.length()>1 && Name[1]!=':') + if (!Name.empty() && (Name.length()==1 || Name[1]!=':')) #endif { if (Name[0]!=OSPATHSEP) -- cgit v1.2.3