summaryrefslogtreecommitdiff
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
commit88a3caaafeef4600f597d64f640054937c4d9ff4 (patch)
tree97fb9053a86116544c313f0a55665317bcf1f021 /win32/dir.h
parenta5e6541ad6d382ca35c9b0f90d40f674951ae731 (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 e12c6e1..f472832 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;