Advertisement
Wolfrost

C++ MaskCheck

Apr 1st, 2016
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool MaskCheck(int StartOff, const BYTE* Pattern, const char* Mask)
  2. {
  3.     for (unsigned int i=0; i<strlen(Mask); i++)
  4.     {
  5.         if (Mask[i] == '?') continue;
  6.  
  7.         if (Mask[i] == 'x' && Pattern[i] != this->DumpedRegion[StartOff + i])
  8.             return false;
  9.     }
  10.     return true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement