Miscellany
public cpp v1 · immutableint CDetour::GetDetourLenAuto(BYTE *&orig, int iMinLen){ int tmpLen = 0; BYTE *pCurOp = orig; while(tmpLen < iMinLen) { int i = oplen(pCurOp); if(i == 0 || i == -1) return false; tmpLen += i; pCurOp += i; } return tmpLen;}