mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix indent
* win32/file.c (rb_file_load_ok): fix indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
23008fcc2e
commit
fc493491fe
1 changed files with 11 additions and 11 deletions
22
win32/file.c
22
win32/file.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue