pgsql: Call SetLastError(0) before calling the file mapping functions to - Mailing list pgsql-committers

From mha@postgresql.org (Magnus Hagander)
Subject pgsql: Call SetLastError(0) before calling the file mapping functions to
Date
Msg-id 20090504083642.2F01C75331D@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/port/win32:
        shmem.c (r1.13 -> r1.13.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32/shmem.c?r1=1.13&r2=1.13.2.1)

pgsql-committers by date:

Previous
From: mha@postgresql.org (Magnus Hagander)
Date:
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to
Next
From: mha@postgresql.org (Magnus Hagander)
Date:
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to