]> granicus.if.org Git - postgresql/commit
Call SetLastError(0) before calling the file mapping functions
authorMagnus Hagander <magnus@hagander.net>
Mon, 4 May 2009 08:36:44 +0000 (08:36 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 4 May 2009 08:36:44 +0000 (08:36 +0000)
commit8f1555e690132a97ac52f1c07a2f943e59d98fd6
tree57edb14bcaf05f044fe0b1e088623ec680546370
parent4df4ffe326715490dcb1fc8313132b073fd1a0dc
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