Decompile fn_20412 (FindCodeMarker)
Batch #14905 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_20412 FindCodeMarker: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
88d157a5df
commit
30445f39b6
1 changed files with 2 additions and 5 deletions
|
|
@ -359,11 +359,8 @@ int PacketCodecStub(void* data, std::size_t size, std::size_t* outSize, int) {
|
|||
// OFFSET: 0x00C7E030
|
||||
// FUNCTION: fn_20412
|
||||
const unsigned char* __stdcall FindCodeMarker(const unsigned char* code) {
|
||||
if (std::memcmp(code, g_codeMarker, sizeof(g_codeMarker)) != 0) {
|
||||
do {
|
||||
++code;
|
||||
} while (*reinterpret_cast<const int*>(code) != *reinterpret_cast<const int*>(g_codeMarker) ||
|
||||
*reinterpret_cast<const short*>(code + 4) != *reinterpret_cast<const short*>(g_codeMarker + 4));
|
||||
while (std::memcmp(code, g_codeMarker, sizeof(g_codeMarker)) != 0) {
|
||||
++code;
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue