you can now set UE_SECTIONNAME doestn just return false. lazy RL guys ^^

This commit is contained in:
cypherpunk 2013-12-18 15:53:28 +01:00
parent d251983720
commit eebf60323a
1 changed files with 2 additions and 1 deletions

View File

@ -5697,7 +5697,8 @@ __declspec(dllexport) bool TITCALL SetPE32DataForMappedFile(ULONG_PTR FileMapVA,
PESections = (PIMAGE_SECTION_HEADER)((ULONG_PTR)PESections + WhichSection * IMAGE_SIZEOF_SECTION_HEADER); PESections = (PIMAGE_SECTION_HEADER)((ULONG_PTR)PESections + WhichSection * IMAGE_SIZEOF_SECTION_HEADER);
if(WhichData == UE_SECTIONNAME) if(WhichData == UE_SECTIONNAME)
{ {
return(false); memcpy(PESections->Name, (void*)NewDataValue, 8);
return(true);
} }
else if(WhichData == UE_SECTIONVIRTUALOFFSET) else if(WhichData == UE_SECTIONVIRTUALOFFSET)
{ {