diff --git a/um_crypto/kuwo/src/lib.rs b/um_crypto/kuwo/src/lib.rs index 04dc1a7..1136243 100644 --- a/um_crypto/kuwo/src/lib.rs +++ b/um_crypto/kuwo/src/lib.rs @@ -91,8 +91,8 @@ impl Header { let mut format_name = [0u8; 0x0C]; cursor.read_exact(&mut format_name)?; - if magic != Self::MAGIC_1 || magic != Self::MAGIC_2 { - Err(KuwoCryptoError::InvalidHeaderMagic(magic))?; + if magic != Self::MAGIC_1 && magic != Self::MAGIC_2 { + Err(KuwoCryptoError::InvalidHeaderMagic(HeaderMagicBytes(magic)))?; } Ok(Self {