Fix CONTEXT_CaptureContext to correctly store the processor flags
Fix CONTEXT_CaptureContext to correctly store the processor flags

The CONTEXT_CaptureContext function did not correctly captured the value of EFlags. The problem was that there were calls to the test instruction before reading EFlags. This change fixes it.

James-Ko/coreclr,dkorolev/coreclr,mokchhya/coreclr,dasMulli/coreclr,Dmitry-Me/coreclr,tijoytom/coreclr,bitcrazed/coreclr,apanda/coreclr,ktos/coreclr,Godin/coreclr,jamesqo/coreclr,hanu412/coreclr,parjong/coreclr,dasMulli/coreclr,bartonjs/coreclr,wkchoy74/coreclr,ktos/coreclr,ZhichengZhu/coreclr,sagood/coreclr,qiudesong/coreclr,serenabenny/coreclr,mmitche/coreclr,iamjasonp/coreclr,kyulee1/coreclr,mocsy/coreclr,chenxizhang/coreclr,James-Ko/coreclr,david-mitchell/coreclr,ericeil/coreclr,shahid-pk/coreclr,roncain/coreclr,zmaruo/coreclr,gitchomik/coreclr,sejongoh/coreclr,GuilhermeSa/coreclr,orthoxerox/coreclr,parjong/coreclr,martinwoodward/coreclr,cydhaselton/coreclr,mmitche/coreclr,mokchhya/coreclr,poizan42/coreclr,chuck-mitchell/coreclr,sagood/coreclr,mskvortsov/coreclr,cshung/coreclr,hseok-oh/coreclr,DickvdBrink/coreclr,ruben-ayrapetyan/coreclr,Sridhar-MS/coreclr,jhendrixMSFT/coreclr,DickvdBrink/coreclr,sergey-raevskiy/coreclr,dkorolev/coreclr,bjjones/coreclr,bitcrazed/coreclr,ramarag/coreclr,KrzysztofCwalina/coreclr,fernando-rodriguez/coreclr,gitchomik/coreclr,wateret/coreclr,YongseopKim/coreclr,spoiledsport/coreclr,OryJuVog/coreclr,yizhang82/coreclr,vinnyrom/coreclr,wtgodbe/coreclr,Dmitry-Me/coreclr,KrzysztofCwalina/coreclr,serenabenny/coreclr,jhendrixMSFT/coreclr,jhendrixMSFT/coreclr,chuck-mitchell/coreclr,sjsinju/coreclr,vinnyrom/coreclr,wkchoy74/coreclr,cshung/coreclr,MCGPPeters/coreclr,yizhang82/coreclr,tijoytom/coreclr,swgillespie/coreclr,qiudesong/coreclr,martinwoodward/coreclr,AlfredoMS/coreclr,MCGPPeters/coreclr,poizan42/coreclr,chuck-mitchell/coreclr,stormleoxia/coreclr,Sridhar-MS/coreclr,lzcj4/coreclr,cmckinsey/coreclr,ruben-ayrapetyan/coreclr,bartonjs/coreclr,chenxizhang/coreclr,josteink/coreclr,spoiledsport/coreclr,sejongoh/coreclr,kyulee1/coreclr,roncain/coreclr,chrishaly/coreclr,iamjasonp/coreclr,manu-silicon/coreclr,bitcrazed/coreclr,fernando-rodriguez/coreclr,krk/coreclr,jamesqo/coreclr,krk/coreclr,chaos7theory/coreclr,hanu412/coreclr,matthubin/coreclr,ericeil/coreclr,swgillespie/coreclr,hanu412/coreclr,sperling/coreclr,LLITCHEV/coreclr,AlfredoMS/coreclr,andschwa/coreclr,parjong/coreclr,KrzysztofCwalina/coreclr,russellhadley/coreclr,josteink/coreclr,chaos7theory/coreclr,perfectphase/coreclr,JonHanna/coreclr,cshung/coreclr,AlexGhiondea/coreclr,dpodder/coreclr,apanda/coreclr,rartemev/coreclr,GuilhermeSa/coreclr,tijoytom/coreclr,ZhichengZhu/coreclr,AlexGhiondea/coreclr,benpye/coreclr,matthubin/coreclr,wateret/coreclr,mokchhya/coreclr,andschwa/coreclr,fffej/coreclr,sperling/coreclr,MCGPPeters/coreclr,matthubin/coreclr,pgavlin/coreclr,SpotLabsNET/coreclr,bartonjs/coreclr,benpye/coreclr,richardlford/coreclr,misterzik/coreclr,ericeil/coreclr,josteink/coreclr,blackdwarf/coreclr,xoofx/coreclr,krytarowski/coreclr,sejongoh/coreclr,Djuffin/coreclr,mmitche/coreclr,mokchhya/coreclr,DasAllFolks/coreclr,lzcj4/coreclr,fffej/coreclr,cydhaselton/coreclr,chenxizhang/coreclr,Dmitry-Me/coreclr,jhendrixMSFT/coreclr,taylorjonl/coreclr,blackdwarf/coreclr,sejongoh/coreclr,vinnyrom/coreclr,sergey-raevskiy/coreclr,AlfredoMS/coreclr,roncain/coreclr,andschwa/coreclr,fernando-rodriguez/coreclr,sperling/coreclr,sejongoh/coreclr,gitchomik/coreclr,martinwoodward/coreclr,Dmitry-Me/coreclr,krixalis/coreclr,lzcj4/coreclr,Dmitry-Me/coreclr,lzcj4/coreclr,MCGPPeters/coreclr,spoiledsport/coreclr,mskvortsov/coreclr,Djuffin/coreclr,perfectphase/coreclr,GuilhermeSa/coreclr,jakesays/coreclr,chrishaly/coreclr,iamjasonp/coreclr,DickvdBrink/coreclr,bartonjs/coreclr,orthoxerox/coreclr,ericeil/coreclr,serenabenny/coreclr,botaberg/coreclr,perfectphase/coreclr,chuck-mitchell/coreclr,pgavlin/coreclr,JonHanna/coreclr,Lucrecious/coreclr,bitcrazed/coreclr,apanda/coreclr,ragmani/coreclr,fieryorc/coreclr,schellap/coreclr,ragmani/coreclr,fieryorc/coreclr,Godin/coreclr,botaberg/coreclr,parjong/coreclr,chenxizhang/coreclr,naamunds/coreclr,parjong/coreclr,poizan42/coreclr,misterzik/coreclr,Samana/coreclr,orthoxerox/coreclr,stormleoxia/coreclr,yizhang82/coreclr,yeaicc/coreclr,fffej/coreclr,qiudesong/coreclr,bitcrazed/coreclr,krytarowski/coreclr,botaberg/coreclr,shahid-pk/coreclr,martinwoodward/coreclr,roncain/coreclr,grokys/coreclr,geertdoornbos/coreclr,ragmani/coreclr,neurospeech/coreclr,Sridhar-MS/coreclr,krytarowski/coreclr,bartonjs/coreclr,gkhanna79/coreclr,ktos/coreclr,sperling/coreclr,alexperovich/coreclr,apanda/coreclr,SlavaRa/coreclr,bartdesmet/coreclr,Alcaro/coreclr,grokys/coreclr,Djuffin/coreclr,misterzik/coreclr,qiudesong/coreclr,wkchoy74/coreclr,dasMulli/coreclr,geertdoornbos/coreclr,stormleoxia/coreclr,JonHanna/coreclr,benpye/coreclr,orthoxerox/coreclr,jamesqo/coreclr,LLITCHEV/coreclr,jakesays/coreclr,Godin/coreclr,ramarag/coreclr,ytechie/coreclr,botaberg/coreclr,cmckinsey/coreclr,david-mitchell/coreclr,chuck-mitchell/coreclr,jakesays/coreclr,schellap/coreclr,jamesqo/coreclr,dkorolev/coreclr,mocsy/coreclr,ytechie/coreclr,grokys/coreclr,russellhadley/coreclr,chrishaly/coreclr,poizan42/coreclr,bjjones/coreclr,manu-silicon/coreclr,serenabenny/coreclr,libengu/coreclr,alexperovich/coreclr,YongseopKim/coreclr,sagood/coreclr,ktos/coreclr,botaberg/coreclr,blackdwarf/coreclr,mmitche/coreclr,James-Ko/coreclr,hanu412/coreclr,bartonjs/coreclr,manu-silicon/coreclr,GuilhermeSa/coreclr,fernando-rodriguez/coreclr,grokys/coreclr,kyulee1/coreclr,Lucrecious/coreclr,wkchoy74/coreclr,libengu/coreclr,yizhang82/coreclr,krk/coreclr,Sridhar-MS/coreclr,ktos/coreclr,naamunds/coreclr,fieryorc/coreclr,qiudesong/coreclr,mocsy/coreclr,Lucrecious/coreclr,zmaruo/coreclr,Djuffin/coreclr,AlfredoMS/coreclr,andschwa/coreclr,mmitche/coreclr,rartemev/coreclr,alexperovich/coreclr,Dmitry-Me/coreclr,YongseopKim/coreclr,ytechie/coreclr,shana/coreclr,mokchhya/coreclr,bjjones/coreclr,mskvortsov/coreclr,DasAllFolks/coreclr,cmckinsey/coreclr,ramarag/coreclr,blackdwarf/coreclr,ktos/coreclr,KrzysztofCwalina/coreclr,taylorjonl/coreclr,mskvortsov/coreclr,schellap/coreclr,jhendrixMSFT/coreclr,botaberg/coreclr,krk/coreclr,MCGPPeters/coreclr,serenabenny/coreclr,OryJuVog/coreclr,Alcaro/coreclr,alexperovich/coreclr,ytechie/coreclr,russellhadley/coreclr,Godin/coreclr,perfectphase/coreclr,benpye/coreclr,josteink/coreclr,jakesays/coreclr,bartdesmet/coreclr,shahid-pk/coreclr,fffej/coreclr,DasAllFolks/coreclr,neurospeech/coreclr,swgillespie/coreclr,taylorjonl/coreclr,mskvortsov/coreclr,dasMulli/coreclr,YongseopKim/coreclr,LLITCHEV/coreclr,swgillespie/coreclr,schellap/coreclr,josteink/coreclr,xoofx/coreclr,chrishaly/coreclr,krytarowski/coreclr,SpotLabsNET/coreclr,ruben-ayrapetyan/coreclr,misterzik/coreclr,yeaicc/coreclr,bjjones/coreclr,pgavlin/coreclr,geertdoornbos/coreclr,gkhanna79/coreclr,fieryorc/coreclr,sagood/coreclr,shahid-pk/coreclr,wtgodbe/coreclr,OryJuVog/coreclr,ragmani/coreclr,mokchhya/coreclr,AlexGhiondea/coreclr,ZhichengZhu/coreclr,Djuffin/coreclr,mskvortsov/coreclr,gkhanna79/coreclr,yeaicc/coreclr,Samana/coreclr,JosephTremoulet/coreclr,xtypebee/coreclr,cydhaselton/coreclr,wateret/coreclr,jhendrixMSFT/coreclr,iamjasonp/coreclr,xoofx/coreclr,geertdoornbos/coreclr,yeaicc/coreclr,yeaicc/coreclr,dpodder/coreclr,ruben-ayrapetyan/coreclr,JosephTremoulet/coreclr,wateret/coreclr,LLITCHEV/coreclr,martinwoodward/coreclr,cmckinsey/coreclr,stormleoxia/coreclr,fffej/coreclr,SpotLabsNET/coreclr,AlfredoMS/coreclr,JonHanna/coreclr,LLITCHEV/coreclr,xtypebee/coreclr,wtgodbe/coreclr,dasMulli/coreclr,DickvdBrink/coreclr,swgillespie/coreclr,roncain/coreclr,spoiledsport/coreclr,david-mitchell/coreclr,stormleoxia/coreclr,naamunds/coreclr,mmitche/coreclr,GuilhermeSa/coreclr,russellhadley/coreclr,rartemev/coreclr,gitchomik/coreclr,ytechie/coreclr,ktos/coreclr,sergey-raevskiy/coreclr,chaos7theory/coreclr,shahid-pk/coreclr,chaos7theory/coreclr,cmckinsey/coreclr,xoofx/coreclr,James-Ko/coreclr,AlexGhiondea/coreclr,mocsy/coreclr,Samana/coreclr,ZhichengZhu/coreclr,xtypebee/coreclr,xtypebee/coreclr,neurospeech/coreclr,JosephTremoulet/coreclr,ramarag/coreclr,Godin/coreclr,OryJuVog/coreclr,martinwoodward/coreclr,pgavlin/coreclr,neurospeech/coreclr,blackdwarf/coreclr,James-Ko/coreclr,yeaicc/coreclr,dasMulli/coreclr,sjsinju/coreclr,shahid-pk/coreclr,perfectphase/coreclr,JosephTremoulet/coreclr,alexperovich/coreclr,sejongoh/coreclr,kyulee1/coreclr,sperling/coreclr,apanda/coreclr,libengu/coreclr,SpotLabsNET/coreclr,bitcrazed/coreclr,alexperovich/coreclr,stormleoxia/coreclr,ganeshran/coreclr,Alcaro/coreclr,ganeshran/coreclr,sergey-raevskiy/coreclr,matthubin/coreclr,hseok-oh/coreclr,zmaruo/coreclr,sergey-raevskiy/coreclr,SlavaRa/coreclr,rartemev/coreclr,cmckinsey/coreclr,ramarag/coreclr,rartemev/coreclr,vinnyrom/coreclr,cydhaselton/coreclr,mocsy/coreclr,dpodder/coreclr,andschwa/coreclr,cmckinsey/coreclr,zmaruo/coreclr,xoofx/coreclr,gkhanna79/coreclr,yizhang82/coreclr,Samana/coreclr,Sridhar-MS/coreclr,ZhichengZhu/coreclr,ruben-ayrapetyan/coreclr,ganeshran/coreclr,krytarowski/coreclr,libengu/coreclr,cshung/coreclr,qiudesong/coreclr,libengu/coreclr,Alcaro/coreclr,JosephTremoulet/coreclr,pgavlin/coreclr,SlavaRa/coreclr,JosephTremoulet/coreclr,chrishaly/coreclr,krytarowski/coreclr,cydhaselton/coreclr,jamesqo/coreclr,sperling/coreclr,wtgodbe/coreclr,misterzik/coreclr,dkorolev/coreclr,bjjones/coreclr,SlavaRa/coreclr,ramarag/coreclr,dpodder/coreclr,jakesays/coreclr,ganeshran/coreclr,chrishaly/coreclr,OryJuVog/coreclr,benpye/coreclr,ruben-ayrapetyan/coreclr,vinnyrom/coreclr,xtypebee/coreclr,James-Ko/coreclr,mokchhya/coreclr,hseok-oh/coreclr,grokys/coreclr,jamesqo/coreclr,Djuffin/coreclr,DasAllFolks/coreclr,richardlford/coreclr,sperling/coreclr,spoiledsport/coreclr,ramarag/coreclr,gitchomik/coreclr,martinwoodward/coreclr,swgillespie/coreclr,gitchomik/coreclr,SpotLabsNET/coreclr,gkhanna79/coreclr,poizan42/coreclr,chuck-mitchell/coreclr,chenxizhang/coreclr,cshung/coreclr,josteink/coreclr,iamjasonp/coreclr,hanu412/coreclr,YongseopKim/coreclr,AlexGhiondea/coreclr,manu-silicon/coreclr,fernando-rodriguez/coreclr,lzcj4/coreclr,Lucrecious/coreclr,OryJuVog/coreclr,vinnyrom/coreclr,mocsy/coreclr,JonHanna/coreclr,krixalis/coreclr,bitcrazed/coreclr,cshung/coreclr,pgavlin/coreclr,richardlford/coreclr,orthoxerox/coreclr,richardlford/coreclr,hseok-oh/coreclr,chaos7theory/coreclr,rartemev/coreclr,mocsy/coreclr,serenabenny/coreclr,LLITCHEV/coreclr,shahid-pk/coreclr,russellhadley/coreclr,vinnyrom/coreclr,sjsinju/coreclr,wtgodbe/coreclr,richardlford/coreclr,ericeil/coreclr,fernando-rodriguez/coreclr,krixalis/coreclr,SlavaRa/coreclr,bartdesmet/coreclr,bartdesmet/coreclr,gkhanna79/coreclr,Lucrecious/coreclr,DasAllFolks/coreclr,kyulee1/coreclr,hseok-oh/coreclr,geertdoornbos/coreclr,dkorolev/coreclr,DickvdBrink/coreclr,ZhichengZhu/coreclr,chaos7theory/coreclr,roncain/coreclr,MCGPPeters/coreclr,david-mitchell/coreclr,orthoxerox/coreclr,zmaruo/coreclr,taylorjonl/coreclr,bjjones/coreclr,kyulee1/coreclr,matthubin/coreclr,taylorjonl/coreclr,shana/coreclr,andschwa/coreclr,bartdesmet/coreclr,wkchoy74/coreclr,apanda/coreclr,Sridhar-MS/coreclr,xoofx/coreclr,blackdwarf/coreclr,hanu412/coreclr,Lucrecious/coreclr,wkchoy74/coreclr,ganeshran/coreclr,richardlford/coreclr,sagood/coreclr,zmaruo/coreclr,grokys/coreclr,ganeshran/coreclr,schellap/coreclr,krixalis/coreclr,AlexGhiondea/coreclr,perfectphase/coreclr,iamjasonp/coreclr,manu-silicon/coreclr,KrzysztofCwalina/coreclr,jhendrixMSFT/coreclr,david-mitchell/coreclr,dpodder/coreclr,KrzysztofCwalina/coreclr,matthubin/coreclr,krk/coreclr,stormleoxia/coreclr,DasAllFolks/coreclr,shana/coreclr,Samana/coreclr,ytechie/coreclr,cydhaselton/coreclr,sagood/coreclr,DickvdBrink/coreclr,GuilhermeSa/coreclr,yeaicc/coreclr,YongseopKim/coreclr,Lucrecious/coreclr,wtgodbe/coreclr,LLITCHEV/coreclr,naamunds/coreclr,blackdwarf/coreclr,ragmani/coreclr,benpye/coreclr,fffej/coreclr,shana/coreclr,tijoytom/coreclr,wkchoy74/coreclr,david-mitchell/coreclr,chuck-mitchell/coreclr,neurospeech/coreclr,AlfredoMS/coreclr,shana/coreclr,naamunds/coreclr,chenxizhang/coreclr,jakesays/coreclr,neurospeech/coreclr,swgillespie/coreclr,wateret/coreclr,bartdesmet/coreclr,Godin/coreclr,josteink/coreclr,ericeil/coreclr,ZhichengZhu/coreclr,naamunds/coreclr,poizan42/coreclr,Alcaro/coreclr,ragmani/coreclr,taylorjonl/coreclr,dkorolev/coreclr,bartdesmet/coreclr,roncain/coreclr,tijoytom/coreclr,sjsinju/coreclr,dpodder/coreclr,manu-silicon/coreclr,Dmitry-Me/coreclr,fieryorc/coreclr,lzcj4/coreclr,andschwa/coreclr,SlavaRa/coreclr,russellhadley/coreclr,krixalis/coreclr,Godin/coreclr,parjong/coreclr,yizhang82/coreclr,manu-silicon/coreclr,spoiledsport/coreclr,SpotLabsNET/coreclr,geertdoornbos/coreclr,hseok-oh/coreclr,benpye/coreclr,fieryorc/coreclr,sjsinju/coreclr,sjsinju/coreclr,wateret/coreclr,krk/coreclr,dasMulli/coreclr,xtypebee/coreclr,Alcaro/coreclr,tijoytom/coreclr,schellap/coreclr,bartonjs/coreclr,schellap/coreclr,sejongoh/coreclr,shana/coreclr,geertdoornbos/coreclr,Samana/coreclr,misterzik/coreclr,KrzysztofCwalina/coreclr,JonHanna/coreclr,naamunds/coreclr,libengu/coreclr,krixalis/coreclr,sergey-raevskiy/coreclr,taylorjonl/coreclr