Merge pull request #1680 from WalterBright/fix11392

fix Issue 11392 - dirEntries segfaults