summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-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;