Skip to content

Commit

Permalink
Explicit cast to DWORD to fix clang compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
klezVirus committed Jun 13, 2022
1 parent f951a52 commit 89cdee7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89cdee7

Please sign in to comment.