]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/String.c
MdePkg/BaseLib: AsciiStrToUnicodeStr(S) not handle EASCII properly
[mirror_edk2.git] / MdePkg / Library / BaseLib / String.c
index cb90774c862d3e820564f61220cdf90a88d83a53..e6df12797d94d41f60b00020ee02b38dbe65f15d 100644 (file)
@@ -1746,7 +1746,7 @@ AsciiStrToUnicodeStr (
 \r
   ReturnValue = Destination;\r
   while (*Source != '\0') {\r
-    *(Destination++) = (CHAR16) *(Source++);\r
+    *(Destination++) = (CHAR16)(UINT8) *(Source++);\r
   }\r
   //\r
   // End the Destination with a NULL.\r