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:
klu2 2007-03-21 07:48:03 +00:00
parent 54be95a116
commit ebc5b9557e
1 changed files with 2 additions and 3 deletions

View File

@ -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;