backtrace-rs icon indicating copy to clipboard operation
backtrace-rs copied to clipboard

dll injection error handling

Open Kengyen opened this issue 2 years ago • 2 comments

I inject .dll to a window and it produces: thread 'DEVELOP' panicked at 'called Option::unwrap() on a None value', library\std\src....\backtrace\src\dbghelp.rs:338:34

Kengyen avatar Feb 02 '23 13:02 Kengyen

That line number seems to indicate that looking up the SymInitializeW function in dbghelp.dll using GetProcAddress fails for some reason.

bjorn3 avatar Feb 02 '23 13:02 bjorn3

That line number seems to indicate that looking up the SymInitializeW function in dbghelp.dll using GetProcAddress fails for some reason.

when using if let Err(e) = expression it would panic use match pattern it would be ok

Kengyen avatar Feb 02 '23 15:02 Kengyen