-
-
Save olliencc/965cd674260b390a0bfa5e4ccfa91841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void __fastcall CitThreadGhostingChange(tagTHREADINFO *pti) | |
{ | |
struct _CIT_USE_DATA *UseData; // rax | |
__int16 v2; // cx | |
if ( g_CIT_IMPACT_CONTEXT ) | |
{ | |
if ( _bittest((const signed __int32 *)&pti->TIF_flags, 0x1Fu) ) | |
{ | |
UseData = CitpProcessGetUseData(pti->ppi); | |
if ( UseData ) | |
{ | |
v2 = -1; | |
if ( (unsigned __int16)(UseData->Stats.ThreadGhostingChanges + 1) >= UseData->Stats.ThreadGhostingChanges ) | |
v2 = UseData->Stats.ThreadGhostingChanges + 1; | |
UseData->Stats.ThreadGhostingChanges = v2; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment