mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 12:14:54 +01:00
Update detours library to latest.
This commit is contained in:
parent
5495f36ed6
commit
c162ca79d5
7 changed files with 1294 additions and 864 deletions
|
|
@ -146,6 +146,8 @@ protected:
|
|||
DWORD m_cbAlloc;
|
||||
};
|
||||
|
||||
class CImageImportName;
|
||||
|
||||
class CImageImportFile
|
||||
{
|
||||
friend class CImage;
|
||||
|
|
@ -534,18 +536,7 @@ PBYTE CImageData::Find(REFGUID rguid, DWORD *pcbData)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (pRecord->guid.Data1 == rguid.Data1 &&
|
||||
pRecord->guid.Data2 == rguid.Data2 &&
|
||||
pRecord->guid.Data3 == rguid.Data3 &&
|
||||
pRecord->guid.Data4[0] == rguid.Data4[0] &&
|
||||
pRecord->guid.Data4[1] == rguid.Data4[1] &&
|
||||
pRecord->guid.Data4[2] == rguid.Data4[2] &&
|
||||
pRecord->guid.Data4[3] == rguid.Data4[3] &&
|
||||
pRecord->guid.Data4[4] == rguid.Data4[4] &&
|
||||
pRecord->guid.Data4[5] == rguid.Data4[5] &&
|
||||
pRecord->guid.Data4[6] == rguid.Data4[6] &&
|
||||
pRecord->guid.Data4[7] == rguid.Data4[7]) {
|
||||
|
||||
if (DetourAreSameGuid(pRecord->guid, rguid)) {
|
||||
*pcbData = cbBytes - sizeof(DETOUR_SECTION_RECORD);
|
||||
return (PBYTE)(pRecord + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue