From 0e2e0a4b45b0ca13dfcc475971230b66b0eec165 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 21 Dec 2019 01:31:19 +0800 Subject: [PATCH] arcade: case insensitive md5 compare. --- support/arcade/romutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/arcade/romutils.cpp b/support/arcade/romutils.cpp index 51eb3d1..584e01c 100644 --- a/support/arcade/romutils.cpp +++ b/support/arcade/romutils.cpp @@ -289,7 +289,7 @@ static int xml_send_rom(XMLEvent evt, const XMLNode* node, SXML_CHAR* text, cons char hex[10]; snprintf(hex, 10, "%02x", (unsigned int)checksum[i]); printf("%02x", (unsigned int)checksum[i]); - if (md5[0] != hex[0] || md5[1] != hex[1]) { + if (tolower(md5[0]) != tolower(hex[0]) || tolower(md5[1]) != tolower(hex[1])) { checksumsame = 0; } md5 += 2;