From ba0a1d27f495bedb21431a77a282a5e4135e7662 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Thu, 5 Sep 2024 16:22:58 -0700 Subject: [PATCH] constant --- crates/libs/registry/src/key_iterator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/libs/registry/src/key_iterator.rs b/crates/libs/registry/src/key_iterator.rs index 638cba7279..a9eaecce86 100644 --- a/crates/libs/registry/src/key_iterator.rs +++ b/crates/libs/registry/src/key_iterator.rs @@ -50,7 +50,7 @@ impl<'a> Iterator for KeyIterator<'a> { return self.next(); } - if result != 0 { + if result != ERROR_SUCCESS { debug_assert_eq!(result, ERROR_NO_MORE_ITEMS); return None; }