[Help] FindPattern

Discussion in 'Subnautica Accounts - Buy Sell Trade' started by vaisefud3, 12/6/17.

Thread Status:
Not open for further replies.
  1. vaisefud3

    vaisefud3
    Expand Collapse
    High Risk Status: This user has been flagged as high risk due to one or more reasons

    0   0   0

    Offline
    Why do I get an error when calling FindPattern function?

    Code:
    bool Compare(const BYTE* pData, const BYTE* bMask, const char* szMask) {
    for (; *szMask; ++szMask, ++pData, ++bMask)
    if (*szMask == '0' && *pData != *bMask)
    return false;
    return (*szMask) == 0;
    }

    DWORD FindPattern(DWORD dwAddress, BYTE *bMask, char * szMask, DWORD dwLen) {
    for (DWORD i = 0; i < dwLen; i++)
    if (Compare((BYTE*) (dwAddress + i), bMask, szMask))
    return (DWORD) (dwAddress + i);
    return false;
    }
    PS.: Error is: Send Error Report
     
    • This user is inactive. Hasn't logged into their account in over 60 days.
Thread Status:
Not open for further replies.