upd info codes

This commit is contained in:
henrypp committed 2020-04-30 20:06:29 +06:00
1 parent 8e711dc0ce
commit 98fbc838dd
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -82,8 +82,8 @@ enum EnumXmlType
enum EnumInfo
{
InfoPath = 0,
InfoName = 1,
InfoName = 0,
InfoPath = 1,
InfoTimestamp = 2,
InfoTimer = 3,
InfoIconId = 4,
+6 -1
View File
@@ -15,7 +15,12 @@ LONG_PTR _app_getappinfo (size_t app_hash, EnumInfo info_key)
if (ptr_app)
{
if (info_key == InfoName)
if (info_key == InfoPath)
{
if (!_r_str_isempty (ptr_app->real_path))
result = (LONG_PTR)ptr_app->real_path;
}
else if (info_key == InfoName)
{
if (!_r_str_isempty (ptr_app->display_name))
result = (LONG_PTR)ptr_app->display_name;