diff options
Diffstat (limited to 'sandbox/src/filesystem_interception.cc')
-rw-r--r-- | sandbox/src/filesystem_interception.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sandbox/src/filesystem_interception.cc b/sandbox/src/filesystem_interception.cc index 5f1a253..8183f12 100644 --- a/sandbox/src/filesystem_interception.cc +++ b/sandbox/src/filesystem_interception.cc @@ -76,7 +76,7 @@ NTSTATUS WINAPI TargetNtCreateFile(NtCreateFileFunction orig_CreateFile, break; if (!NT_SUCCESS(answer.nt_status)) - break; + return answer.nt_status; __try { *file = answer.handle; @@ -144,7 +144,7 @@ NTSTATUS WINAPI TargetNtOpenFile(NtOpenFileFunction orig_OpenFile, PHANDLE file, break; if (!NT_SUCCESS(answer.nt_status)) - break; + return answer.nt_status; __try { *file = answer.handle; @@ -208,9 +208,6 @@ NTSTATUS WINAPI TargetNtQueryAttributesFile( if (SBOX_ALL_OK != code) break; - if (!NT_SUCCESS(answer.nt_status)) - break; - return answer.nt_status; } while (false); @@ -269,9 +266,6 @@ NTSTATUS WINAPI TargetNtQueryFullAttributesFile( if (SBOX_ALL_OK != code) break; - if (!NT_SUCCESS(answer.nt_status)) - break; - return answer.nt_status; } while (false); @@ -348,9 +342,6 @@ NTSTATUS WINAPI TargetNtSetInformationFile( if (SBOX_ALL_OK != code) break; - if (!NT_SUCCESS(answer.nt_status)) - break; - status = answer.nt_status; } while (false); |