Call SetLastError(0) before calling the file mapping functions
authorMagnus Hagander <magnus@hagander.net>
Mon, 4 May 2009 08:36:40 +0000 (08:36 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 4 May 2009 08:36:40 +0000 (08:36 +0000)
commit4d754acf96ffa01c02dd9882ab0ebfe2fd6ad999
tree394376493fe30512996cf6639127a2803459e678
parenta8385eae6f9bc16cd4cf3e2f38bb3a0fab74fcf4
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.
src/backend/port/win32_shmem.c