aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/fileinfo.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-01-27 13:44:12 +0000
committermarha <marha@users.sourceforge.net>2011-01-27 13:44:12 +0000
commit11903063211dc368d03f52e090e52ab18ebe3f47 (patch)
tree71991c8ffd98ed31690190b37f39cfc6244b6595 /tools/mhmake/src/fileinfo.cpp
parent59e0042680b01d7e3cf69104921f151ceee13df4 (diff)
downloadvcxsrv-11903063211dc368d03f52e090e52ab18ebe3f47.tar.gz
vcxsrv-11903063211dc368d03f52e090e52ab18ebe3f47.tar.bz2
vcxsrv-11903063211dc368d03f52e090e52ab18ebe3f47.zip
Implemented mkdir as an internal command
Diffstat (limited to 'tools/mhmake/src/fileinfo.cpp')
-rw-r--r--tools/mhmake/src/fileinfo.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/mhmake/src/fileinfo.cpp b/tools/mhmake/src/fileinfo.cpp
index 5ef044e41..f6468900d 100644
--- a/tools/mhmake/src/fileinfo.cpp
+++ b/tools/mhmake/src/fileinfo.cpp
@@ -77,7 +77,14 @@ string UnquoteFileName(const string &Filename)
///////////////////////////////////////////////////////////////////////////////
fileinfo* fileinfo::GetDir() const
{
- return GetAbsFileInfo(m_AbsFileName.substr(0,m_AbsFileName.find_last_of(OSPATHSEP)));
+ string Dir=m_AbsFileName.substr(0,m_AbsFileName.find_last_of(OSPATHSEP));
+ #ifdef WIN32
+ if (Dir.length()==2 && Dir[1]==':')
+ #else
+ if (Dir.empty())
+ #endif
+ Dir+=OSPATHSEP;
+ return GetAbsFileInfo(Dir);
}
///////////////////////////////////////////////////////////////////////////////