mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (myrename): fix error handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b1cd5105d4
commit
9ce5d1f0f5
3 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue