diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-15 06:50:55 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-15 06:50:55 +0000 |
commit | 41e9426b3f6f2a95baaa3ae1994f740721f97731 (patch) | |
tree | 41dd89da9d14ac5ff5cdb39970477e6ae069871e /Nt32Pkg/WinNtSimpleFileSystemDxe | |
parent | 705f53a9b49e7ee3d1ca4bcc7133534ed64590dc (diff) | |
download | edk2-platforms-41e9426b3f6f2a95baaa3ae1994f740721f97731.tar.xz |
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
Diffstat (limited to 'Nt32Pkg/WinNtSimpleFileSystemDxe')
-rw-r--r-- | Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c | 3 |
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;
}
|