diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-29 15:40:04 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-29 15:42:43 +0100 |
commit | 3b5d4771a0af5b4fc89ec77f43826b9ae2544949 (patch) | |
tree | c76797e20e751009466fc91491ea72ec459b8d81 | |
parent | afe6b2f45b15393026a1159e5f3d165ac7d0b94a (diff) | |
download | VeraCrypt-3b5d4771a0af5b4fc89ec77f43826b9ae2544949.tar.gz VeraCrypt-3b5d4771a0af5b4fc89ec77f43826b9ae2544949.zip |
Fix wrong detection of AMD CPUs.
-rw-r--r-- | src/Crypto/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c index b8316962..62574983 100644 --- a/src/Crypto/cpu.c +++ b/src/Crypto/cpu.c @@ -218,8 +218,8 @@ VC_INLINE int IsAMD(const uint32 output[4]) { // This is the "AuthenticAMD" string return (output[1] /*EBX*/ == 0x68747541) && - (output[2] /*ECX*/ == 0x69746E65) && - (output[3] /*EDX*/ == 0x444D4163); + (output[2] /*ECX*/ == 0x444D4163) && + (output[3] /*EDX*/ == 0x69746E65); } VC_INLINE int IsHygon(const uint32 output[4]) |