Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 270 → Rev 271

/trunk/load_win.c
54,15 → 54,21
// Fix by DM, 18 Dec 2018:
// We need to copy the information, because the resource data is read-only
DWORD resSize = SizeofResource(hm,resinfo);
char* copy = (char*)malloc(resSize);
if (resSize == sizeof(PARM_T)) {
PARM_T* copy = (PARM_T*)malloc(resSize);
if (!copy) return false;
memcpy(copy, pparm, resSize);
deobfusc((unsigned char*)copy, resSize,OBFUSC_SEED_POS);
res = readPARM(copy,&gdata->parm,reason,1);
deobfusc(copy);
res = readPARM((Ptr)copy,&gdata->parm,reason,1);
gdata->obfusc = true;
free(copy);
} else {
// Obfuscationed PARM has wrong size. Should not happen!
gdata->obfusc = false;
return false;
}
}
}
if (!res) {
gdata->obfusc = false;
}