pgsql: Minor cleanup for win32stat.c.

2020-10-12 Thread Tom Lane
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-dkijotx...@mail.gmail.com Branch -- master Details --- https://git.p

pgsql: Minor cleanup for win32stat.c.

2020-10-10 Thread Tom Lane
Minor cleanup for win32stat.c. Fix silly typo in previous commit. Discussion: https://postgr.es/m/cac+axb0g44sbvspc86o_1hwh8tau2pzrmrw6tjt-dkijotx...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/961e07b8ccb56cb3979185b066b503b3d4f7c036 Modified

pgsql: Minor cleanup for win32stat.c.

2020-10-10 Thread Tom Lane
Minor cleanup for win32stat.c. Ensure that CloseHandle() can't clobber the errno we set for failure exits, and make a couple of tweaks for pgindent. Juan José Santamaría Flecha Discussion: https://postgr.es/m/cac+axb0g44sbvspc86o_1hwh8tau2pzrmrw6tjt-dkijotx...@mail.gmail.com Branch -- mast