mirror of https://github.com/acidanthera/audk.git
fix build broken issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2498 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
54be95a116
commit
ebc5b9557e
|
@ -981,7 +981,7 @@ Returns:
|
|||
// TODO: EFI_INVALID_PARAMETER - add return value to function comment
|
||||
{
|
||||
UNIX_EFI_FILE_PRIVATE *PrivateFile;
|
||||
EFITPL OldTpl;
|
||||
EFI_TPL OldTpl;
|
||||
|
||||
if (This == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
@ -1538,7 +1538,6 @@ Returns:
|
|||
Status = (*Position == (UINT64) -1) ? EFI_DEVICE_ERROR : EFI_SUCCESS;
|
||||
}
|
||||
|
||||
Done:
|
||||
gBS->RestoreTPL (OldTpl);
|
||||
return Status;
|
||||
}
|
||||
|
@ -1635,7 +1634,7 @@ Returns:
|
|||
StrCpy ((CHAR16 *) FileSystemInfoBuffer->VolumeLabel, PrivateRoot->VolumeLabel);
|
||||
*BufferSize = SIZE_OF_EFI_FILE_SYSTEM_INFO + StrSize (PrivateRoot->VolumeLabel);
|
||||
Status = EFI_SUCCESS;
|
||||
} else if (CompareGuid (InformationType, &gEfiFileSystemVolumeLabelInfoIdGuid){
|
||||
} else if (CompareGuid (InformationType, &gEfiFileSystemVolumeLabelInfoIdGuid)) {
|
||||
if (*BufferSize < StrSize (PrivateRoot->VolumeLabel)) {
|
||||
*BufferSize = StrSize (PrivateRoot->VolumeLabel);
|
||||
Status = EFI_BUFFER_TOO_SMALL;
|
||||
|
|
Loading…
Reference in New Issue