GT-3129 PDB GUID validation and help fixes

This commit is contained in:
ghizard 2019-09-04 17:18:32 -04:00
parent 48afcf41ab
commit 8d70a68f4e
2 changed files with 3 additions and 2 deletions

View file

@ -129,7 +129,7 @@ public class PdbSymbolServerPlugin extends Plugin {
downloadPdbAction.setMenuBarData(menuData); downloadPdbAction.setMenuBarData(menuData);
downloadPdbAction.setEnabled(false); downloadPdbAction.setEnabled(false);
downloadPdbAction.setHelpLocation(new HelpLocation("PDB", downloadPdbAction.getName())); downloadPdbAction.setHelpLocation(new HelpLocation("Pdb", downloadPdbAction.getName()));
tool.addAction(downloadPdbAction); tool.addAction(downloadPdbAction);
} }

View file

@ -61,7 +61,8 @@ int PDBApiContext::init(const std::wstring& szFilename, const std::wstring& szSi
} }
else if (!szSignature.empty() && !szAge.empty()) { else if (!szSignature.empty() && !szAge.empty()) {
GUID guid = {}; GUID guid = {};
const HRESULT guidConv = CLSIDFromString(szSignature.c_str(), &guid); std::wstring bracedGuidString = L"{" + szSignature + L"}";;
const HRESULT guidConv = CLSIDFromString(bracedGuidString.c_str(), &guid);
const DWORD age = wcstol(szAge.c_str(), NULL, 16); const DWORD age = wcstol(szAge.c_str(), NULL, 16);