Minor cleanup for win32stat.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: fcd11329db5bca9993207f099a642a7d1cd59ff8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-10-12T15:13:02Z
Releases: 14.0
Minor cleanup for win32stat.c.

Use GetLastError(), rather than assuming that CreateFile() failure
must map to ENOENT.  Noted by Michael Paquier.

Discussion: https://postgr.es/m/CAC+AXB0g44SbvSpC86o_1HWh8TAU2pZrMRW6tJT-dkijotx5Qg@mail.gmail.com

Files

PathChange+/−
src/port/win32stat.c modified +3 −1

Discussion