Small improvement ;)

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@534 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
n-a-c-h 2008-05-27 08:39:20 +00:00
parent 0d0f5ed94e
commit fab740fc99
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);
}