@@ -9782,7 +9782,7 @@ struct VM {
97829782
97839783 using POBJECT_DIRECTORY_INFORMATION = OBJECT_DIRECTORY_INFORMATION*;
97849784 constexpr auto DIRECTORY_QUERY = 0x0001 ;
9785- constexpr NTSTATUS STATUS_NO_MORE_ENTRIES = static_cast <NTSTATUS>( 0x8000001A ) ;
9785+ constexpr NTSTATUS NO_MORE_ENTRIES = 0x8000001A ;
97869786
97879787 HANDLE dir = nullptr ;
97889788 OBJECT_ATTRIBUTES object_attributes{};
@@ -9839,7 +9839,7 @@ struct VM {
98399839 );
98409840
98419841 // Stop if we have iterated through all objects
9842- if (status == STATUS_NO_MORE_ENTRIES ) {
9842+ if (status == NO_MORE_ENTRIES ) {
98439843 break ;
98449844 }
98459845
@@ -10687,10 +10687,10 @@ struct VM {
1068710687 // need to do a lambda wrapper to isolate SEH from the parent function's stack unwinding
1068810688 // target aes is required for clang/gcc while in MSVC not, and this target can only be applied to functions, meaning we need a struct
1068910689 struct aes_executor {
10690- #if (CLANG || GCC)
10691- __attribute__ ((__target__(" aes" )))
10692- #endif
10693- static bool check_aes_integrity (const unsigned char * pt, const unsigned char * k, unsigned char * o, bool support) {
10690+ #if (CLANG || GCC)
10691+ __attribute__ ((__target__(" aes" )))
10692+ #endif
10693+ static bool check_aes_integrity (const unsigned char * pt, const unsigned char * k, unsigned char * o, bool support) {
1069410694 __try {
1069510695 __m128i block = _mm_loadu_si128 (reinterpret_cast <const __m128i*>(pt));
1069610696 __m128i key_vec = _mm_loadu_si128 (reinterpret_cast <const __m128i*>(k));
@@ -10707,7 +10707,8 @@ struct VM {
1070710707 }
1070810708 __except (GetExceptionCode () == EXCEPTION_ILLEGAL_INSTRUCTION
1070910709 ? EXCEPTION_EXECUTE_HANDLER
10710- : EXCEPTION_CONTINUE_SEARCH) {
10710+ : EXCEPTION_CONTINUE_SEARCH
10711+ ) {
1071110712 if (support) {
1071210713 debug (" CPU_HEURISTIC: Hypervisor reports AES, but it is not handled correctly" );
1071310714 return true ;
0 commit comments