summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-18 08:09:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-18 08:09:21 +0000
commitff964e8aa2db3cfb7d33cfb344f92ed6d8355b40 (patch)
treeb9e424e65ac4484484eac44ff1949a07ba2b02c0 /win32/win32.c
parentd38062a72fb79b715a912e69cc8c756c84167bff (diff)
* win32/win32.c (move_to_next_entry): loc also must move forward.
[ruby-talk:251987] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ba0a26b602..99cec1cc93 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1541,6 +1541,7 @@ static void
move_to_next_entry(DIR *dirp)
{
if (dirp->curr) {
+ dirp->loc++;
dirp->curr += strlen(dirp->curr) + 1;
if (dirp->curr >= (dirp->start + dirp->size)) {
dirp->curr = NULL;