tiny fixes

This commit is contained in:
Akash Mozumdar 2020-02-29 17:51:09 -07:00
parent 0688daf1da
commit ffff4f2eb9
3 changed files with 3 additions and 3 deletions

View File

@ -259,7 +259,7 @@ namespace
HCode += L'@' + HexString(hp.address);
if (hp.type & MODULE_OFFSET) HCode += L':' + std::wstring(hp.module);
if (hp.type & FUNCTION_OFFSET) HCode += L':' + std::wstring(hp.function, hp.function + MAX_MODULE_SIZE);
if (hp.type & FUNCTION_OFFSET) HCode += L':' + StringToWideString(hp.function);
return HCode;
}

View File

@ -435,7 +435,7 @@ void MainWindow::FindHooks()
SearchParam sp = {};
sp.codepage = Host::defaultCodepage;
bool searchForText = false, customSettings = false;
QRegularExpression filter(".", QRegularExpression::DotMatchesEverythingOption);
QRegularExpression filter(".", QRegularExpression::UseUnicodePropertiesOption | QRegularExpression::DotMatchesEverythingOption);
QDialog dialog(this, Qt::WindowCloseButtonHint);
QFormLayout layout(&dialog);

View File

@ -388,7 +388,7 @@ private:
for (term = term.left(500); !term.isEmpty(); term.chop(1))
for (const auto& [rootTerm, definition, inflections] : LookupDefinitions(term, foundDefinitions))
definitions.push_back(
QStringLiteral("<h3>%1 (%5/%6)</h3><small>%2 %3</small><p>%4</p>").arg(
QStringLiteral("<h3>%1 (%5/%6)</h3><small>%2%3</small><p>%4</p>").arg(
term,
rootTerm.split("<<")[0],
inflections.join(""),