//\r
do {\r
PreFullPath = CurFullPath;\r
- CurFullPath = EfiBootManagerGetNextFullDevicePath (DevicePath, CurFullPath);\r
+ CurFullPath = EfiBootManagerGetNextLoadOptionDevicePath (DevicePath, CurFullPath);\r
\r
if (PreFullPath != NULL) {\r
FreePool (PreFullPath);\r