Skip to content

Commit 0bd262d

Browse files
ByronEliahKagan
andauthored
Improve description of the workaround.
Co-authored-by: Eliah Kagan <degeneracypressure@gmail.com>
1 parent 641a89c commit 0bd262d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-sec/src/identity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ mod impl_ {
123123
);
124124

125125
if result != ERROR_SUCCESS {
126-
// We cannot determine ownership, so we default to reduced trust (false) rather
127-
// than failing completely.
128126
if result == ERROR_INVALID_FUNCTION {
127+
// We cannot obtain security information, so we default to reduced trust
128+
// (false) rather than failing completely.
129129
return Ok(false);
130130
}
131131
let inner = io::Error::from_raw_os_error(result as _);

0 commit comments

Comments
 (0)