diff options
Diffstat (limited to 'Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystem.c')
-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 fd925b9..f248ccb 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;
}
|