From acd32171f4515ca4ac31b4be117b09bc71d3cfec Mon Sep 17 00:00:00 2001 From: Vitaly Cheptsov <4348897+vit9696@users.noreply.github.com> Date: Thu, 27 May 2021 07:54:21 +0300 Subject: [PATCH] OcAppleKernelLib: Silence MSVC --- Library/OcAppleKernelLib/CpuidPatches.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/OcAppleKernelLib/CpuidPatches.c b/Library/OcAppleKernelLib/CpuidPatches.c index 9f985840..ea4817fd 100644 --- a/Library/OcAppleKernelLib/CpuidPatches.c +++ b/Library/OcAppleKernelLib/CpuidPatches.c @@ -974,7 +974,7 @@ UINT8* PatchMovVar ( // // mov [var], value lower // - VarAddr32 = (Var - Start) + DataSection->Section32.Address - DataSection->Section32.Offset; + VarAddr32 = (UINT32) ((Var - Start) + DataSection->Section32.Address - DataSection->Section32.Offset); *Location++ = 0xC7; *Location++ = 0x05; CopyMem (Location, &VarAddr32, sizeof (VarAddr32));