Code cleanup

This commit is contained in:
b4rtik 2020-04-21 00:12:47 +02:00
parent d1a8ac072a
commit 9be3f1d751
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ BOOL PatchEtw()
// Add address of hook function to patch.
*(DWORD64*)&uHook[2] = (DWORD64)MyEtwEventWrite;
return InlinePatch(lpFuncAddress, &uHook[0],sizeof(uHook));
return InlinePatch(lpFuncAddress, uHook,sizeof(uHook));
}
BOOL PatchAmsi()
@ -483,7 +483,7 @@ BOOL PatchAmsi()
return -2;
}
return InlinePatch(addr, &amsipatch[0], sizeof(amsipatch));
return InlinePatch(addr, amsipatch, sizeof(amsipatch));
}
BOOL ClrIsLoaded(LPCWSTR version, IEnumUnknown* pEnumerator, LPVOID * pRuntimeInfo) {