Skip to content

Commit c161c84

Browse files
committed
Fixed warning.
1 parent 66aa3bb commit c161c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: PipeServer/MemoryHelper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void EnumerateRemoteSectionsAndModules(const std::function<void(const void*, con
169169
auto ldr = reinterpret_cast<LDR_MODULE*>(peb->LoaderData->InLoadOrderModuleList.Flink);
170170
while (ldr->BaseAddress != nullptr)
171171
{
172-
moduleCallback(ldr->BaseAddress, (const void*)ldr->SizeOfImage, ldr->FullDllName.Buffer);
172+
moduleCallback(ldr->BaseAddress, (const void*)(intptr_t)ldr->SizeOfImage, ldr->FullDllName.Buffer);
173173

174174
auto it = std::lower_bound(std::begin(sections), std::end(sections), ldr->BaseAddress, [&sections](const SectionInfo& lhs, const LPVOID& rhs)
175175
{

0 commit comments

Comments
 (0)