Thread: pgsql: Call SetLastError(0) before calling the file mapping functions to

pgsql: Call SetLastError(0) before calling the file mapping functions to

From
mha@postgresql.org (Magnus Hagander)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/port:
        win32_shmem.c (r1.7 -> r1.8)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32_shmem.c?r1=1.7&r2=1.8)