[WSD] Better check of the just created variable in performance counters.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 May 2006 09:17:23 +0000 (09:17 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 May 2006 09:17:23 +0000 (09:17 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@365 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_perfmon.c

index 3626a28..0636afb 100644 (file)
@@ -69,6 +69,8 @@ IBSPPmInit( void )
                sizeof(pm_shmem_t),             // size: low 32-bits\r
                IBSP_PM_MAPPED_OBJ_NAME );\r
 \r
+       just_created = (GetLastError() != ERROR_ALREADY_EXISTS);\r
+\r
        LocalFree( sec_attr.lpSecurityDescriptor );\r
 \r
        if( h_mapping == NULL )\r
@@ -77,8 +79,6 @@ IBSPPmInit( void )
                return;\r
        }\r
 \r
-       just_created = (GetLastError() != ERROR_ALREADY_EXISTS);\r
-\r
        /* Get a pointer to the shared memory. */\r
        g_pm_stat.p_shmem = MapViewOfFile(\r
                                                h_mapping,     // object handle\r