| 56 | } |
| 57 | |
| 58 | DWORD 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 | |
| 72 | bool PeRebuild::isRoundedTo(DWORD_PTR dwTarNum, DWORD_PTR dwRoundNum) |
| 73 | { |
nothing calls this directly
no outgoing calls
no test coverage detected