mirror of https://github.com/acidanthera/audk.git
Refile code to make code following the UEFI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10942 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
705f53a9b4
commit
41e9426b3f
|
@ -2631,8 +2631,8 @@ Returns:
|
|||
FreePool (TempFileName);
|
||||
}
|
||||
} else {
|
||||
Status = EFI_ACCESS_DENIED;
|
||||
Reopen: ;
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
|
||||
NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (OldFileName, OldAttr);
|
||||
|
||||
|
@ -2829,6 +2829,7 @@ Reopen: ;
|
|||
NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (NewFileName, NewAttr);
|
||||
|
||||
if (!NtStatus) {
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
goto Reopen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue