summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-24 13:19:13 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-02-24 13:19:13 +0000
commite5c14ce5007bea9785fd68fab0fd8c4bd9bd4777 (patch)
treedb2e3bfdbb1cecbb5a55d53c4c4e0833e25ba4d6 /win32
parent6bbdac0065f10ddc8021fd027e2fc6805f7f0f8f (diff)
* win32/win32.c (myrename): fix error handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index dd283cceeb..960f7f74f0 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2546,7 +2546,7 @@ myrename(const char *oldpath, const char *newpath)
newatts = GetFileAttributes(newpath);
if (oldatts == -1) {
- printf("file to move doesn't exist");
+ errno = GetLastError();
return -1;
}