[WSD] Fix incorect check on logging file creation.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 10 Nov 2005 18:16:24 +0000 (18:16 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 10 Nov 2005 18:16:24 +0000 (18:16 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@149 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibspdebug.c

index a8da7d9..8460b6f 100644 (file)
@@ -201,7 +201,7 @@ VOID DataLogger_Init(
                FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_ALWAYS,\r
                FILE_ATTRIBUTE_NORMAL, NULL );\r
 \r
-       if (hFile != INVALID_HANDLE_VALUE)\r
+       if (hFile == INVALID_HANDLE_VALUE)\r
        {\r
                IBSP_ERROR( ("CreateFile failed with error %d\n", GetLastError()) );\r
                return;\r