Confirm 2 functions in Source/Utility/CRC32.cpp
Batch #11431 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_00149 CRC32::CalculateLowercase: logic confirmed by peer review (already on main) - fn_00151 CRC32::CalculateFile: logic confirmed by peer review (already on main) Peer-reviewed-by: KWDev, Tanke, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
cfa4149e94
commit
31b9824759
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ DWORD CRC32::Calculate(const char* text) {
|
|||
|
||||
// OFFSET: 0x00403670
|
||||
// FUNCTION: fn_00147
|
||||
DWORD CRC32::Calculate(const WCHAR* text) {
|
||||
__declspec(noinline) DWORD CRC32::Calculate(const WCHAR* text) {
|
||||
char converted[MAX_PATH];
|
||||
WideCharToMultiByte(CP_ACP, 0, text, -1, converted, MAX_PATH, nullptr, nullptr);
|
||||
DWORD checksum = 0xFFFFFFFF;
|
||||
|
|
@ -126,7 +126,7 @@ DWORD CRC32::CalculateLowercase(const WCHAR* text) {
|
|||
|
||||
// OFFSET: 0x00403800
|
||||
// FUNCTION: fn_00150
|
||||
bool CRC32::Calculate(const BYTE* data, int length, DWORD* checksum) {
|
||||
__declspec(noinline) bool CRC32::Calculate(const BYTE* data, int length, DWORD* checksum) {
|
||||
*checksum = 0xFFFFFFFF;
|
||||
Update(data, length, checksum);
|
||||
*checksum = ~*checksum;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue