[前][次][番号順一覧][スレッド一覧]

ruby-changes:39613

From: nobu <ko1@a...>
Date: Thu, 27 Aug 2015 01:02:05 +0900 (JST)
Subject: [ruby-changes:39613] nobu:r51694 (trunk): win32.c: fix return value of reparse_symlink

nobu	2015-08-27 01:01:48 +0900 (Thu, 27 Aug 2015)

  New Revision: 51694

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51694

  Log:
    win32.c: fix return value of reparse_symlink
    
    * win32/win32.c (reparse_symlink): return raw Windows error code
      since r51676.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 51693)
+++ win32/win32.c	(revision 51694)
@@ -4735,7 +4735,7 @@ reparse_symlink(const WCHAR *path, rb_w3 https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4735
 		    FILE_FLAG_BACKUP_SEMANTICS|FILE_FLAG_OPEN_REPARSE_POINT,
 		    NULL);
     if (f == INVALID_HANDLE_VALUE) {
-	return map_errno(GetLastError());
+	return GetLastError();
     }
 
     if (!device_io_control(f, FSCTL_GET_REPARSE_POINT, NULL, 0,

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]