Call SetLastError(0) before calling the file mapping functions

Magnus Hagander <magnus@hagander.net>

Commit: 8f1555e690132a97ac52f1c07a2f943e59d98fd6
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-05-04T08:36:44Z
Releases: 8.3.8
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