various bug fixes

This commit is contained in:
BalkronPainter
2021-01-24 00:47:43 +05:00
parent c8fb3d3dcf
commit 099d953b07
4 changed files with 6 additions and 7 deletions

View File

@@ -549,12 +549,12 @@ private:
pGMI = (tGMI) GetProcAddress( hPsapi, "GetModuleInformation" );
if ( (pEPM == nullptr) || (pGMFNE == nullptr) || (pGMBN == nullptr) || (pGMI == nullptr) )
{
// we couldn<64>t find all functions
// we couldn<64>t find all functions
FreeLibrary(hPsapi);
return FALSE;
}
hMods = (HMODULE*) malloc(sizeof(HMODULE) * (TTBUFLEN / sizeof HMODULE));
hMods = (HMODULE*) malloc(sizeof(HMODULE) * (TTBUFLEN / sizeof(HMODULE)));
tt = (char*) malloc(sizeof(char) * TTBUFLEN);
tt2 = (char*) malloc(sizeof(char) * TTBUFLEN);
if ( (hMods == nullptr) || (tt == nullptr) || (tt2 == nullptr) )