From 7b339f6cf0d7634886d27cd935764a7d8732693a Mon Sep 17 00:00:00 2001 From: n-a-c-h Date: Tue, 27 May 2008 08:39:20 +0000 Subject: [PATCH] Small improvement ;) --- src/win32/VBA.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/win32/VBA.cpp b/src/win32/VBA.cpp index 590affe1..849ad549 100644 --- a/src/win32/VBA.cpp +++ b/src/win32/VBA.cpp @@ -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); }