ruby-changes:22807
From: nobu <ko1@a...>
Date: Wed, 29 Feb 2012 13:07:27 +0900 (JST)
Subject: [ruby-changes:22807] nobu:r34855 (trunk): fix indent
nobu 2012-02-29 13:07:08 +0900 (Wed, 29 Feb 2012) New Revision: 34855 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34855 Log: fix indent * win32/file.c (rb_file_load_ok): fix indent. Modified files: trunk/win32/file.c Index: win32/file.c =================================================================== --- win32/file.c (revision 34854) +++ win32/file.c (revision 34855) @@ -4,22 +4,22 @@ int rb_file_load_ok(const char *path) { - int ret = 1; - DWORD attr = GetFileAttributes(path); - if (attr == INVALID_FILE_ATTRIBUTES || + int ret = 1; + DWORD attr = GetFileAttributes(path); + if (attr == INVALID_FILE_ATTRIBUTES || attr & FILE_ATTRIBUTE_DIRECTORY) { ret = 0; - } - else { + } + else { HANDLE h = CreateFile(path, GENERIC_READ, - FILE_SHARE_READ | FILE_SHARE_WRITE, - NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (h != INVALID_HANDLE_VALUE) { - CloseHandle(h); + CloseHandle(h); } else { - ret = 0; + ret = 0; } - } - return ret; + } + return ret; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/