diff --git a/NetworkPkg/HttpDxe/HttpsSupport.c b/NetworkPkg/HttpDxe/HttpsSupport.c index e6f4d5a6ccb2..6aed61a3a4b8 100644 --- a/NetworkPkg/HttpDxe/HttpsSupport.c +++ b/NetworkPkg/HttpDxe/HttpsSupport.c @@ -67,11 +67,11 @@ AsciiStrCaseStr ( Dst = *SearchStringTmp; if ((Src >= 'A') && (Src <= 'Z')) { - Src -= ('A' - 'a'); + Src += ('a' - 'A'); } if ((Dst >= 'A') && (Dst <= 'Z')) { - Dst -= ('A' - 'a'); + Dst += ('a' - 'A'); } if (Src != Dst) {