Call SetLastError(0) before calling the file mapping functions

Magnus Hagander <magnus@hagander.net>

Commit: ca6c0ac4d3da974c11866388989071f5ce821b5d
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-05-04T08:36:40Z
Releases: 8.4.0
Call SetLastError(0) before calling the file mapping functions
to make sure that the error code is reset, as a precaution in
case the API doesn't properly reset it on success. This could
be necessary, since we check the error value even if the function
doesn't fail for specific success cases.

Files

PathChange+/−
src/backend/port/win32_shmem.c modified +7 −1