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:
ydong10 2010-10-15 06:50:55 +00:00
parent 705f53a9b4
commit 41e9426b3f
1 changed files with 2 additions and 1 deletions

View File

@ -2631,8 +2631,8 @@ Returns:
FreePool (TempFileName); FreePool (TempFileName);
} }
} else { } else {
Status = EFI_ACCESS_DENIED;
Reopen: ; Reopen: ;
Status = EFI_DEVICE_ERROR;
NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (OldFileName, OldAttr); NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (OldFileName, OldAttr);
@ -2829,6 +2829,7 @@ Reopen: ;
NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (NewFileName, NewAttr); NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (NewFileName, NewAttr);
if (!NtStatus) { if (!NtStatus) {
Status = EFI_DEVICE_ERROR;
goto Reopen; goto Reopen;
} }