Fix mismatched wide/narrow string formatting

This commit is contained in:
baldurk
2019-04-12 11:33:44 +01:00
parent ec1f104b44
commit 62b03db531
+3 -3
View File
@@ -982,10 +982,10 @@ Win32CallstackResolver::Win32CallstackResolver(byte *moduleDB, size_t DBSize,
m.name.find("symsrv.") != std::wstring::npos)
continue;
wchar_t text[1024];
wsprintf(text, L"Do you want to permanently ignore this file?\nPath: %s", m.name.c_str());
std::string text = StringFormat::Fmt("Do you want to permanently ignore this file?\nPath: %s",
m.name.c_str());
int ret = MessageBoxW(NULL, text, L"Ignore this pdb?", MB_YESNO);
int ret = MessageBoxA(NULL, text.c_str(), "Ignore this pdb?", MB_YESNO);
if(ret == IDYES)
pdbIgnores.push_back(m.name);