From cae07783881a0eadfdcdadd5eaa64dce8a66a9b5 Mon Sep 17 00:00:00 2001 From: n-a-c-h Date: Wed, 28 May 2008 23:50:15 +0000 Subject: [PATCH] Slight tweak. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@548 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/VBA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/VBA.cpp b/src/win32/VBA.cpp index cbb3bf00..e913d24d 100644 --- a/src/win32/VBA.cpp +++ b/src/win32/VBA.cpp @@ -563,7 +563,7 @@ BOOL VBA::InitInstance() securityCheck = doProtection(); securityCheck2 = ((double)securityCheck < -0.987) ? 1 : securityCheck; mainTrapPointer = &trapPointers[(securityCheck2+1)<<1]; - secondaryTrapPointer = trapPointers[((double)securityCheck2 > 0.4357) ? 2 : 5]; + secondaryTrapPointer = trapPointers[(((double)securityCheck > 0.4357) || ((double)securityCheck < -0.9123)) ? 2 : 5]; SetRegistryKey(_T("VBA"));