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

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Call SetLastError(0) before calling the file mapping functions to
Date: 2009-05-04 08:36:42
Message-ID: 20090504083642.2F01C75331D@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2009-05-04 08:36:44 pgsql: Call SetLastError(0) before calling the file mapping functions to
Previous Message Magnus Hagander 2009-05-04 08:36:40 pgsql: Call SetLastError(0) before calling the file mapping functions to