Skip to content

Commit e4b159b

Browse files
interacsionnagisa
authored andcommitted
fix: make Error::source return GetModuleHandleExW source
1 parent f6ab367 commit e4b159b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ impl std::error::Error for Error {
9898
CreateCString { ref source } => Some(source),
9999
CreateCStringWithTrailing { ref source } => Some(source),
100100
LoadLibraryExW { ref source } => Some(&source.0),
101+
GetModuleHandleExW { ref source } => Some(&source.0),
101102
GetProcAddress { ref source } => Some(&source.0),
102103
FreeLibrary { ref source } => Some(&source.0),
103104
_ => None,

0 commit comments

Comments
 (0)