aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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)