From 2b5d8e84c9055aed597ee163b291a05ae446e179 Mon Sep 17 00:00:00 2001 From: Mark Richardson Date: Thu, 27 Apr 2006 16:02:52 -0400 Subject: [PATCH] COMP: Fixing the the build for windows. --- Source/kwsys/SystemTools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 6496f175e..b92ded71a 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -118,12 +118,14 @@ inline int Rmdir(const char* dir) } inline const char* Getcwd(char* buf, unsigned int len) { - const char* ret _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) {