diff options
Diffstat (limited to 'tools/mhmake/src/fileinfo.cpp')
-rw-r--r-- | tools/mhmake/src/fileinfo.cpp | 2 |
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)
|