You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/08/28 03:25:07 UTC

svn commit: r570291 - /apr/apr/branches/0.9.x/shmem/win32/shm.c

Author: wrowe
Date: Mon Aug 27 18:25:07 2007
New Revision: 570291

URL: http://svn.apache.org/viewvc?rev=570291&view=rev
Log:
apr_status_t code, not Win32 error code.

PR: 43178
Backport: r570289

Modified:
    apr/apr/branches/0.9.x/shmem/win32/shm.c

Modified: apr/apr/branches/0.9.x/shmem/win32/shm.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/shmem/win32/shm.c?rev=570291&r1=570290&r2=570291&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/shmem/win32/shm.c (original)
+++ apr/apr/branches/0.9.x/shmem/win32/shm.c Mon Aug 27 18:25:07 2007
@@ -124,7 +124,7 @@
         apr_file_close(f);
     }
 
-    if (hMap && err == ERROR_ALREADY_EXISTS) {
+    if (hMap && APR_STATUS_IS_EEXIST(err)) {
         CloseHandle(hMap);
         return APR_EEXIST;
     }