MCPcopy Create free account
hub / github.com/NtQuery/Scylla / validAlignmentNew

Method validAlignmentNew

Scylla/PeRebuild.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58DWORD PeRebuild::validAlignmentNew(DWORD badAddress)
59{
60 DWORD moduloResult = badAddress % FileAlignmentConstant;
61
62 if (moduloResult)
63 {
64 return (FileAlignmentConstant - moduloResult);
65 }
66 else
67 {
68 return 0;
69 }
70}
71
72bool PeRebuild::isRoundedTo(DWORD_PTR dwTarNum, DWORD_PTR dwRoundNum)
73{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected