ENH: put the fix back in with abort

This commit is contained in:
Bill Hoffman 2006-04-27 17:52:45 -04:00
parent dc304cfdec
commit 4c93b9a158
1 changed files with 7 additions and 2 deletions

View File

@ -118,9 +118,14 @@ inline int Rmdir(const char* dir)
} }
inline const char* Getcwd(char* buf, unsigned int len) inline const char* Getcwd(char* buf, unsigned int len)
{ {
return _getcwd(buf, len); const char* ret = _getcwd(buf, len);
if(!ret)
{
fprintf(stderr, "No current working directory.\n");
abort();
}
return ret;
} }
inline int Chdir(const char* dir) inline int Chdir(const char* dir)
{ {
#if defined(__BORLANDC__) #if defined(__BORLANDC__)