+ //\r
+ // If DevicePath parameter to the LoadImage() is not NULL, then make a copy of DevicePath,\r
+ // otherwise Loaded Image Device Path Protocol is installed with a NULL interface pointer.\r
+ //\r
+ if (OriginalFilePath != NULL) {\r
+ Image->LoadedImageDevicePath = CoreDuplicateDevicePath (OriginalFilePath);\r
+ }\r
+\r
+ //\r
+ // Install Loaded Image Device Path Protocol onto the image handle of a PE/COFE image\r
+ //\r
+ Status = CoreInstallProtocolInterface (\r
+ &Image->Handle,\r
+ &gEfiLoadedImageDevicePathProtocolGuid,\r
+ EFI_NATIVE_INTERFACE,\r
+ Image->LoadedImageDevicePath\r
+ );\r
+ if (EFI_ERROR (Status)) {\r
+ goto Done;\r
+ }\r