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
securityCheck = doProtection();
securityCheck2 = (securityCheck < 0) ? 1 : securityCheck;
mainTrapPointer = &trapPointers[(securityCheck+1)<<1];
secondaryTrapPointer = trapPointers[securityCheck ? 2 : 5];
securityCheck2 = ((double)securityCheck < -0.987) ? 1 : securityCheck;
mainTrapPointer = &trapPointers[(securityCheck2+1)<<1];
secondaryTrapPointer = trapPointers[((double)securityCheck2 > 0.4357) ? 2 : 5];
SetRegistryKey(_T("VBA"));