Changeset 123 in libcf for trunk/src/cf_thread.c
- Timestamp:
- 06/12/13 13:28:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_thread.c
r122 r123 52 52 { 53 53 #if defined(_WIN32) || defined(_WIN64) 54 if (tid == NULL) 55 return CF_ERROR_THREAD_INVALID_ARGS; 56 54 57 CloseHandle (tid); 55 58 #endif … … 62 65 { 63 66 #if defined(_WIN32) || defined(_WIN64) 67 if (mid == NULL) 68 return CF_ERROR_MUTEX_INVALID_ARGS; 69 64 70 CloseHandle (mid); 65 71 #else … … 230 236 #if defined(_WIN32) || defined(_WIN64) 231 237 context->mid = CreateMutexA (NULL, FALSE, NULL); 232 if ( *ctx== NULL)238 if (context->mid == NULL) 233 239 { 234 240 result = CF_ERROR_MUTEX_CREATE; … … 243 249 } 244 250 #endif 251 252 *ctx = context; 245 253 } 246 254 CATCH_IF (result < 0) 247 255 { 248 CF_Mutex_DestoryCtx ( ctx);256 CF_Mutex_DestoryCtx ((CF_Mutex_Ctx) context); 249 257 } 250 258 251 return CF_OK;259 return result; 252 260 } 253 261
Note:
See TracChangeset
for help on using the changeset viewer.