Closed m417z closed 4 years ago
I see it was already reported: https://github.com/wbenny/pdbex/issues/7 https://github.com/wbenny/pdbex/issues/11
Sorry for reporting it again. But at least it's fixed now due to my reminder :)
I'd also join to @hfiref0x's comment about having a descriptive diagnostic if the DIA library can't be loaded:
I would additionally add more diagnostic messages in case if required dlls are missing of having diffrent machine type (Result = HRESULT_FROM_WIN32(ERROR_BAD_EXE_FORMAT) : %1 is not a valid Win32 application. ).
Right now it'll say "file not found" (instead of crashing), but it's quite confusing because the PDB file path is not the culprit in this case.
On my computer, both
LoadDiaViaCoCreateInstance
andLoadDiaViaLoadLibrary
fail. It took me a while to understand that, had to debug a bit. That's becauseLoadDiaViaLoadLibrary
returnsFALSE
on an error, but the return type isHRESULT
, so it essentially returnsS_OK
.