Minor cleanup for win32stat.c.
Use GetLastError(), rather than assuming that CreateFile() failure
must map to ENOENT.  Noted by Michael Paquier.
Discussion:
@@ -204,8 +204,10 @@ _pgstat64(const char *name, struct stat *buf)
NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
+ DWORD err = GetLastError();
+
CloseHandle(hFile);
- errno = ENOENT;
+ _dosmaperr(err);
return -1;
}
