summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-15 06:50:55 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-15 06:50:55 +0000
commit41e9426b3f6f2a95baaa3ae1994f740721f97731 (patch)
tree41dd89da9d14ac5ff5cdb39970477e6ae069871e
parent705f53a9b49e7ee3d1ca4bcc7133534ed64590dc (diff)
downloadedk2-41e9426b3f6f2a95baaa3ae1994f740721f97731.tar.gz
edk2-41e9426b3f6f2a95baaa3ae1994f740721f97731.tar.bz2
edk2-41e9426b3f6f2a95baaa3ae1994f740721f97731.zip
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
-rw-r--r--Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c b/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
index fd925b9312..f248ccb933 100644
--- a/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
+++ b/Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c
@@ -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;
}