ENH: put the fix back in with abort
This commit is contained in:
parent
dc304cfdec
commit
4c93b9a158
|
@ -118,9 +118,14 @@ inline int Rmdir(const char* dir)
|
|||
}
|
||||
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)
|
||||
{
|
||||
#if defined(__BORLANDC__)
|
||||
|
|
Loading…
Reference in New Issue