Call SetLastError(0) before calling the file mapping functions
Magnus Hagander <magnus@hagander.net>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/port/win32/shmem.c | modified | +3 −1 |