}\r
else {\r
Status = RETURN_DEVICE_ERROR;\r
+ errno = EIO;\r
}\r
- errno = EFI2errno(Status);\r
EFIerrno = Status;\r
\r
if(FileInfo != NULL) {\r
FreePool(FileInfo); // Release the buffer allocated by the GetInfo function\r
}\r
- return errno? -1 : 0;\r
+ return (Status == RETURN_SUCCESS)? 0 : -1;\r
}\r
\r
static\r