8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 14:03:02 +01:00

Return OS-specific error code like the POSIX implementation.

This commit is contained in:
robocop 2009-08-21 10:14:07 +00:00
parent b07f374250
commit ae57c50e47

View File

@ -3357,7 +3357,11 @@ int ISC_mutex_init(struct mtx* mutex, const TEXT* mutex_name)
return FB_FAILURE;
}
return !initializeFastMutex(&mutex->mtx_fast, ISC_get_security_desc(), FALSE, name_buffer);
if (initializeFastMutex(&mutex->mtx_fast, ISC_get_security_desc(), FALSE, name_buffer))
return FB_SUCCESS;
fb_assert(GetLastError() != 0);
return GetLastError();
}