Skip to content

Commit

Permalink
fix: make Error::source return GetModuleHandleExW source
Browse files Browse the repository at this point in the history
  • Loading branch information
interacsion authored and nagisa committed Nov 29, 2024
1 parent f6ab367 commit e4b159b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ impl std::error::Error for Error {
CreateCString { ref source } => Some(source),
CreateCStringWithTrailing { ref source } => Some(source),
LoadLibraryExW { ref source } => Some(&source.0),
GetModuleHandleExW { ref source } => Some(&source.0),
GetProcAddress { ref source } => Some(&source.0),
FreeLibrary { ref source } => Some(&source.0),
_ => None,
Expand Down

0 comments on commit e4b159b

Please sign in to comment.