Small improvement ;)

This commit is contained in:
n-a-c-h 2008-05-27 08:39:20 +00:00
parent 02273776c9
commit 7b339f6cf0
1 changed files with 7 additions and 3 deletions

View File

@ -502,7 +502,7 @@ int VBA::doProtection()
}
pExitProcess = (lpExitProcess)GetProcAddress(hM_kernel32, unprotect_buffer(exit_encoded, sizeof(exit_encoded)));
protectHelp[1] = pExitProcess; //Just in case
protectHelp[1] = pExitProcess;
return(ExecutableValid(szEXEFileName));
}
@ -2015,8 +2015,12 @@ void VBA::updateWindowSize(int value)
bool VBA::initDisplay()
{
protectHelp[securityCheck2](0);
return updateRenderMethod(false);
if (securityCheck2 != -3)
{
protectHelp[securityCheck2](0);
return updateRenderMethod(false);
}
return(false);
}