diff options
Diffstat (limited to 'components/rust/core/src/api/libloading.rs')
| -rw-r--r-- | components/rust/core/src/api/libloading.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rust/core/src/api/libloading.rs b/components/rust/core/src/api/libloading.rs index 438f1fb40b..90b33cc92d 100644 --- a/components/rust/core/src/api/libloading.rs +++ b/components/rust/core/src/api/libloading.rs @@ -150,7 +150,7 @@ impl Library { let h = self.handle; forget(self); let rc = libc::dlclose(h); - if rc == 1 { + if rc == 0 { Ok(()) } else { Err(DlError::Close(rc)) |
