[Forensics-changes] [yara] 65/192: removed __try block around CritSection

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.6.0
in repository yara.

commit e0c19f2bceee50787e9044d010b5ad59f11da93e
Author: Rastislav Masaryk <rmasaryk at eset.sk>
Date:   Mon Nov 14 08:57:59 2016 +0100

    removed __try block around CritSection
---
 threading.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/threading.c b/threading.c
index 5479c20..07c0b88 100644
--- a/threading.c
+++ b/threading.c
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list