summaryrefslogtreecommitdiffstats
path: root/win32/dir.h
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-01 05:49:01 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-01 05:49:01 +0000
commitbece43b9ab395402f97826d332b3f960d64b73a5 (patch)
tree97fb9053a86116544c313f0a55665317bcf1f021 /win32/dir.h
parent3d88eb65dc3de6279730a580ca49045f15bfbb3e (diff)
downloadruby-bece43b9ab395402f97826d332b3f960d64b73a5.tar.gz
ruby-bece43b9ab395402f97826d332b3f960d64b73a5.tar.xz
ruby-bece43b9ab395402f97826d332b3f960d64b73a5.zip
* win32/win32.c (rb_w32_seekdir): should not segfault even if passed
the location which rb_w32_telldir didn't return. (and should change `bits' position) [ruby-core:7035] * win32/dir.h: ditto. (stores `loc' instead of `bitpos') * test/ruby/test_dir.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/dir.h')
-rw-r--r--win32/dir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/dir.h b/win32/dir.h
index e12c6e159..f472832d2 100644
--- a/win32/dir.h
+++ b/win32/dir.h
@@ -21,9 +21,9 @@ typedef struct {
char *curr;
long size;
long nfiles;
+ long loc; /* [0, nfiles) */
struct direct dirstr;
char *bits; /* used for d_isdir and d_isrep */
- long bitpos; /* used for d_isdir and d_isrep */
} DIR;