From 89cdee799e94f4dc8b8244a61fa47f6fff4206f5 Mon Sep 17 00:00:00 2001 From: d3adc0de Date: Mon, 13 Jun 2022 08:47:19 +0100 Subject: [PATCH] Explicit cast to DWORD to fix clang compilation --- .../public/cpp/process_injection/native-map_view_section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inceptor/templates/public/cpp/process_injection/native-map_view_section.cpp b/inceptor/templates/public/cpp/process_injection/native-map_view_section.cpp index f1df16c..8ebd914 100644 --- a/inceptor/templates/public/cpp/process_injection/native-map_view_section.cpp +++ b/inceptor/templates/public/cpp/process_injection/native-map_view_section.cpp @@ -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;