aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-04-30 09:34:21 +0000
committermarha <marha@users.sourceforge.net>2010-04-30 09:34:21 +0000
commit4b708bd6472ec67f5e3f1ae29fd79099fb557bd0 (patch)
tree382ae3f3b61df5f81c3c33ff103209cec89c4b03 /tools/mhmake
parentdd8ebf55bd734ee73fb0ac20b5a316706b1e22ea (diff)
downloadvcxsrv-4b708bd6472ec67f5e3f1ae29fd79099fb557bd0.tar.gz
vcxsrv-4b708bd6472ec67f5e3f1ae29fd79099fb557bd0.tar.bz2
vcxsrv-4b708bd6472ec67f5e3f1ae29fd79099fb557bd0.zip
Previous VS2010 fix was not correct.
Diffstat (limited to 'tools/mhmake')
-rw-r--r--tools/mhmake/src/fileinfo.cpp2
1 files changed, 1 insertions, 1 deletions
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<fileinfo> &GetFileInfo(const string &NameIn,const refptr<fileinfo>
//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)