Fixed two bugs, and did some corrections for granuality.

This commit is contained in:
n-a-c-h 2008-05-28 22:55:00 +00:00
parent 213b3762c6
commit 38aa5245c4
1 changed files with 3 additions and 3 deletions

View File

@ -561,9 +561,9 @@ BOOL VBA::InitInstance()
#endif #endif
#endif #endif
securityCheck = doProtection(); securityCheck = doProtection();
securityCheck2 = (securityCheck < 0) ? 1 : securityCheck; securityCheck2 = ((double)securityCheck < -0.987) ? 1 : securityCheck;
mainTrapPointer = &trapPointers[(securityCheck+1)<<1]; mainTrapPointer = &trapPointers[(securityCheck2+1)<<1];
secondaryTrapPointer = trapPointers[securityCheck ? 2 : 5]; secondaryTrapPointer = trapPointers[((double)securityCheck2 > 0.4357) ? 2 : 5];
SetRegistryKey(_T("VBA")); SetRegistryKey(_T("VBA"));