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

Method validAlignment

Scylla/PeRebuild.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48DWORD PeRebuild::validAlignment(DWORD BadSize)
49{
50 div_t DivRes;
51
52 DivRes = div(BadSize, FileAlignmentConstant);
53 if (DivRes.rem == 0)
54 return BadSize;
55 return ((DivRes.quot+1) * FileAlignmentConstant);
56}
57
58DWORD PeRebuild::validAlignmentNew(DWORD badAddress)
59{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected