}\r
\r
//\r
- // Check if it's a valid boot option for internal Shell\r
+ // Check if it's a valid boot option for internal FV application\r
//\r
if (EfiGetNameGuidFromFwVolDevicePathNode ((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *) LastDeviceNode) != NULL) {\r
//\r
- // If the boot option point to Internal FV shell, make sure it is valid\r
+ // If the boot option point to internal FV application, make sure it is valid\r
//\r
TempDevicePath = DevPath;\r
- Status = BdsLibUpdateFvFileDevicePath (&TempDevicePath, PcdGetPtr(PcdShellFile));\r
+ Status = BdsLibUpdateFvFileDevicePath (\r
+ &TempDevicePath,\r
+ EfiGetNameGuidFromFwVolDevicePathNode ((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *) LastDeviceNode)\r
+ );\r
if (Status == EFI_ALREADY_STARTED) {\r
return TRUE;\r
} else {\r