From aacd8c2eb8d745264f13656f36c363259c628b17 Mon Sep 17 00:00:00 2001 From: "Mr. eXoDia" Date: Tue, 30 Dec 2014 03:41:32 +0100 Subject: [PATCH] fixed a bug with setting the AVX context overwriting the other registers with zeroes --- TitanEngine/TitanEngine.Debugger.Context.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TitanEngine/TitanEngine.Debugger.Context.cpp b/TitanEngine/TitanEngine.Debugger.Context.cpp index 4fa341c..f0c14c7 100644 --- a/TitanEngine/TitanEngine.Debugger.Context.cpp +++ b/TitanEngine/TitanEngine.Debugger.Context.cpp @@ -958,6 +958,9 @@ __declspec(dllexport) bool TITCALL SetAVXContext(HANDLE hActiveThread, TITAN_ENG if(_SetXStateFeaturesMask(Context, XSTATE_MASK_AVX) == FALSE) return false; + if(GetThreadContext(hActiveThread, Context) == FALSE) + return false; + if(_GetXStateFeaturesMask(Context, &FeatureMask) == FALSE) return false;