If True, _r_path_extractfile is returning local memory (as ~rstring() gets called). Suggested fix: Return result as a reference, e.g.
``C++
void _app_getdisplayname (size_t hash, ITEM_APP const *ptr_app, rstring& extracted_name ) {
if ( hash == config.ntoskrnl_hash ) {
extracted_name = ptr_app->original_path;
}
else if (ptr_app->type == AppStore) {
_app_item_get (&packages, hash, &extracted_name, nullptr, nullptr, nullptr, nullptr);
}
else if (ptr_app->type == AppService) {
extracted_name = ptr_app->original_path;
}
else {
extracted_name = app.ConfigGet (L"ShowFilenames", true).AsBool () ? _r_path_extractfile( ptr_app->real_path ) : ptr_app->real_path;
}
}
Fixed, thank you
Most helpful comment
Fixed, thank you