Explicit cast to DWORD to fix clang compilation

This commit is contained in:
d3adc0de 2022-06-13 08:47:19 +01:00
parent f951a520d5
commit 89cdee799e

@ -34,7 +34,7 @@ int Inject(int pid)
myNtMapViewOfSection fNtMapViewOfSection = (myNtMapViewOfSection)(GetProcAddress(GetModuleHandleA("ntdll"), "NtMapViewOfSection"));
myRtlCreateUserThread fRtlCreateUserThread = (myRtlCreateUserThread)(GetProcAddress(GetModuleHandleA("ntdll"), "RtlCreateUserThread"));
SIZE_T size = 4096;
LARGE_INTEGER sectionSize = { size };
LARGE_INTEGER sectionSize = { (DWORD)size };
HANDLE sectionHandle = NULL;
PVOID localSectionAddress = NULL, remoteSectionAddress = NULL;