mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
removed __try block around CritSection
This commit is contained in:
@@ -40,13 +40,8 @@ int mutex_init(
|
||||
MUTEX* mutex)
|
||||
{
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
__try {
|
||||
InitializeCriticalSection(mutex);
|
||||
return 0;
|
||||
}
|
||||
__except (STATUS_NO_MEMORY) {
|
||||
return STATUS_NO_MEMORY;
|
||||
}
|
||||
#else
|
||||
return pthread_mutex_init(mutex, NULL);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user