All pastes #373462 Raw Edit

Miscellany

public cpp v1 · immutable
#373462 ·published 2007-02-26 20:20 UTC
rendered paste body
int 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;}