]> 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:40 +0000 (08:36 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 4 May 2009 08:36:40 +0000 (08:36 +0000)
commitca6c0ac4d3da974c11866388989071f5ce821b5d
tree2cab293c335ca64350343ee81171547e61214269
parentffbd17e73e633cd6da462b330651b16d47963953
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