diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-12-16 17:16:05 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-12-16 17:16:05 +0000 |
commit | 20de27fa7ed8ba789c0859b8e858610419fcb2c6 (patch) | |
tree | 2ab9a32b38b2c95231d509d57302f544639c5b9d /cpp/src/IcePatch2/OS.cpp | |
parent | added file. (diff) | |
download | ice-20de27fa7ed8ba789c0859b8e858610419fcb2c6.tar.bz2 ice-20de27fa7ed8ba789c0859b8e858610419fcb2c6.tar.xz ice-20de27fa7ed8ba789c0859b8e858610419fcb2c6.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=679
Diffstat (limited to 'cpp/src/IcePatch2/OS.cpp')
-rw-r--r-- | cpp/src/IcePatch2/OS.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/IcePatch2/OS.cpp b/cpp/src/IcePatch2/OS.cpp index 773f1657697..1f27c970055 100644 --- a/cpp/src/IcePatch2/OS.cpp +++ b/cpp/src/IcePatch2/OS.cpp @@ -59,13 +59,13 @@ OS::open(const string& path, int flags) int OS::getcwd(string& cwd) { - wchar_t cwdbuf[_MAX_PATH]; - if(_wgetcwd(cwdbuf, _MAX_PATH) == NULL) - { - return -1; - } - cwd = IceUtil::wstringToString(cwdbuf); - return 0; + wchar_t cwdbuf[_MAX_PATH]; + if(_wgetcwd(cwdbuf, _MAX_PATH) == NULL) + { + return -1; + } + cwd = IceUtil::wstringToString(cwdbuf); + return 0; } #else @@ -79,7 +79,7 @@ OS::stat(const string& path, structstat* buf) int OS::remove(const string& path) { - ::remove(toPath.c_str()); + return ::remove(path.c_str()); } int @@ -116,7 +116,7 @@ int OS::getcwd(string& cwd) { char cwdbuf[PATH_MAX]; - if(getcwd(cwdbuf, PATH_MAX) == NULL) + if(::getcwd(cwdbuf, PATH_MAX) == NULL) { return -1; } |