mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-09-29 00:01:44 +02:00
This commit is contained in:
1 parent
2be4637c12
commit
1be94d8c3d
1 file changed
+6
-6
@@ -29,13 +29,13 @@ intptr_t __fastcall apply_exec_quarantine(
|
|||||||
quarantine_flag_set = 0;
|
quarantine_flag_set = 0;
|
||||||
|
|
||||||
// Retrieve quarantine flags for the vnode
|
// Retrieve quarantine flags for the vnode
|
||||||
quarantine_flags = quarantine_get_flags(file_vnode, 0LL, (__int64)&quarantine_flag_set, (__int64)additional_info, reserved3, reserved4, reserved5, reserved6, reserved_context1, reserved_context2);
|
quarantine_flags, error_code = quarantine_get_flags(file_vnode, 0LL, (__int64)&quarantine_flag_set, (__int64)additional_info, reserved3, reserved4, reserved5, reserved6, reserved_context1, reserved_context2);
|
||||||
|
|
||||||
// Handle specific flags and return values from quarantine_get_flags
|
// If any error during parsing in quarantine_get_flags, enforce quarantine.
|
||||||
if (quarantine_flags) {
|
if (error_code) {
|
||||||
temp_flags = quarantine_flags;
|
temp_error_code= error_code;
|
||||||
result = 0LL;
|
result = 0LL;
|
||||||
if (temp_flags == 0x5D)
|
if (temp_error_code == 0x5D)
|
||||||
return result;
|
return result;
|
||||||
return 1LL;
|
return 1LL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user