Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
CPUID aes and sse42 check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Sep 14, 2016
1 parent 6fd48a1 commit 781caad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpuid/InstructionSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ extern "C"

__declspec(dllexport) int __cdecl SupportsAES()
{
return InstructionSet::AES();
return (int)(InstructionSet::AES() && InstructionSet::SSE42());
}

__declspec(dllexport) int __cdecl GetPhysicalProcessorCount()
Expand Down Expand Up @@ -333,4 +333,4 @@ BOOL WINAPI DllMain(
break;
}
return TRUE; // Successful DLL_PROCESS_ATTACH.
}
}

0 comments on commit 781caad

Please sign in to comment.