Call SetLastError(0) before calling the file mapping functions

Magnus Hagander <magnus@hagander.net>

Commit: f79ea3da647cbbef9b88760f463f5a73693328d5
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-05-04T08:36:42Z
Releases: 8.2.14
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 +3 −1