Project

General

Profile

Bug #382 ยป ruby-1.8.7-win32-telldir.patch

Anonymous, 08/01/2008 11:56 AM

View differences:

win32/win32.c (working copy)
long
rb_w32_telldir(DIR *dirp)
{
long loc = 0; char *p = dirp->curr;
rb_w32_rewinddir(dirp);
while (p != dirp->curr) {
move_to_next_entry(dirp); loc++;
}
return loc;
return dirp->loc;
}
//
......
rb_w32_rewinddir(DIR *dirp)
{
dirp->curr = dirp->start;
dirp->loc = 0;
}
//
    (1-1/1)