From 9ce5d1f0f5d1c87406ba644c5f2662a6a1b843b3 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 24 Feb 2001 13:19:13 +0000 Subject: * win32/win32.c (myrename): fix error handling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 8fcb5b7781..0dfe3e513c 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2615,7 +2615,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; } -- cgit v1.2.3