process: clarify that module is case-sensitive

This commit is contained in:
2025-12-03 13:25:18 +00:00
parent 5d795ec982
commit 334c4761a2
+2
View File
@@ -67,6 +67,8 @@ impl Process {
} }
/// get a `Module` of a `Process` by name /// get a `Module` of a `Process` by name
///
/// note: the casing matters (don't search for `shell32.dll` if you want `SHELL32.dll`)
pub fn module(&self, name: &str) -> Result<Module, Error> { pub fn module(&self, name: &str) -> Result<Module, Error> {
let Some(snapshot) = snapshot::ModuleSnapshot::get_modules(self.id)? let Some(snapshot) = snapshot::ModuleSnapshot::get_modules(self.id)?
.into_iter() .into_iter()