Minor cleanup for win32stat.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Oct 2020 15:13:02 +0000 (11:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Oct 2020 15:13:02 +0000 (11:13 -0400)
commitfcd11329db5bca9993207f099a642a7d1cd59ff8
tree6b9b314946d9457c98a93ec8034286e6f8179e07
parente578c17d81662b4f4f63a2797bc1be64af3c8f93
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
src/port/win32stat.c