diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c index c2aa93cedc..d58f06905a 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c @@ -2793,7 +2793,7 @@ DevPathFromTextWiFi ( (UINT16) sizeof (WIFI_DEVICE_PATH) ); - AsciiStr = WiFiDp->SSId; + AsciiStr = (CHAR8 *) WiFiDp->SSId; StrToAscii (SSIdStr, &AsciiStr); return (EFI_DEVICE_PATH_PROTOCOL *) WiFiDp;