diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-23 05:36:57 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-23 05:36:57 +0000 |
| commit | bc3c026433babab1ca84475121e7499822d13313 (patch) | |
| tree | 262344c1445f3c662e60c5a020776193a00578b8 | |
| parent | 3828f8b571f17d5de4f75c41ae97e689b58f756b (diff) | |
| download | ruby-bc3c026433babab1ca84475121e7499822d13313.tar.gz ruby-bc3c026433babab1ca84475121e7499822d13313.tar.xz ruby-bc3c026433babab1ca84475121e7499822d13313.zip | |
* win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions
mean to call runtime's open() if textmode.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | win32/win32.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Jul 23 14:35:02 2009 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions + mean to call runtime's open() if textmode. + Thu Jul 23 08:53:24 2009 Eric Hodel <drbrain@segment7.net> * lib/rdoc/markup/simple_markup/: Remove useless directory. diff --git a/win32/win32.c b/win32/win32.c index 02645b2d9..b98575572 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4472,7 +4472,7 @@ rb_w32_open(const char *file, int oflag, ...) pmode = va_arg(arg, int); va_end(arg); - if ((oflag & O_TEXT) || !(oflag & ~O_BINARY)) { + if ((oflag & O_TEXT) || !(oflag & O_BINARY)) { return _open(file, oflag, pmode); } @@ -4501,7 +4501,7 @@ rb_w32_wopen(const WCHAR *file, int oflag, ...) SECURITY_ATTRIBUTES sec; HANDLE h; - if ((oflag & O_TEXT) || !(oflag & ~O_BINARY)) { + if ((oflag & O_TEXT) || !(oflag & O_BINARY)) { va_list arg; int pmode; va_start(arg, oflag); |
