diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 86596136e4..8059a1315d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1373,6 +1373,7 @@ rb_w32_opendir(const char *filename) fh = FindFirstFile(scanname, &fd); if (fh == INVALID_HANDLE_VALUE) { + errno = map_errno(GetLastError()); return NULL; } |