fixed a bug with setting the AVX context overwriting the other registers with zeroes

This commit is contained in:
Mr. eXoDia 2014-12-30 03:41:32 +01:00
parent 9ab24a8d8f
commit aacd8c2eb8
1 changed files with 3 additions and 0 deletions

View File

@ -958,6 +958,9 @@ __declspec(dllexport) bool TITCALL SetAVXContext(HANDLE hActiveThread, TITAN_ENG
if(_SetXStateFeaturesMask(Context, XSTATE_MASK_AVX) == FALSE) if(_SetXStateFeaturesMask(Context, XSTATE_MASK_AVX) == FALSE)
return false; return false;
if(GetThreadContext(hActiveThread, Context) == FALSE)
return false;
if(_GetXStateFeaturesMask(Context, &FeatureMask) == FALSE) if(_GetXStateFeaturesMask(Context, &FeatureMask) == FALSE)
return false; return false;