Bug #382 ยป ruby-1.8.7-win32-telldir.patch
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;
|
||
}
|
||
//
|