diff options
Diffstat (limited to 'tools/mhmake/src/curdir.cpp')
-rw-r--r-- | tools/mhmake/src/curdir.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mhmake/src/curdir.cpp b/tools/mhmake/src/curdir.cpp index 4b905a327..b87dc4f6f 100644 --- a/tools/mhmake/src/curdir.cpp +++ b/tools/mhmake/src/curdir.cpp @@ -31,7 +31,8 @@ curdir::initcurdir curdir::m_pCurrentDir; curdir::initcurdir::initcurdir()
{
char CurDir[MAX_PATH];
- getcwd(CurDir,MAX_PATH);
+ if (!getcwd(CurDir,MAX_PATH))
+ throw string("Error getting current directory.");
string strCurDir=CurDir;
m_pDir=GetAbsFileInfo(NormalizePathName(strCurDir));
}
|