mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 09:23:03 +01:00
Return OS-specific error code like the POSIX implementation.
This commit is contained in:
parent
b07f374250
commit
ae57c50e47
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user