From aef7e76f2e65ee1b7dd2ea21e71a9ab59927d084 Mon Sep 17 00:00:00 2001 From: henrypp Date: Wed, 6 May 2020 22:05:28 +0600 Subject: [PATCH] set correct name for info class --- src/controls.cpp | 4 ++-- src/helper.cpp | 2 +- src/main.hpp | 4 ++-- src/profile.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/controls.cpp b/src/controls.cpp index 361b50af..686ead57 100644 --- a/src/controls.cpp +++ b/src/controls.cpp @@ -314,8 +314,8 @@ INT CALLBACK _app_listviewcompare_callback (LPARAM lparam1, LPARAM lparam2, LPAR // timestamp sorting if ((listview_id >= IDC_APPS_PROFILE && listview_id <= IDC_APPS_UWP) && column_id == 1) { - const time_t* timestamp1 = (time_t*)_app_getappinfo (lparam1, InfoTimestamp); - const time_t* timestamp2 = (time_t*)_app_getappinfo (lparam2, InfoTimestamp); + const time_t* timestamp1 = (time_t*)_app_getappinfo (lparam1, InfoTimestampPtr); + const time_t* timestamp2 = (time_t*)_app_getappinfo (lparam2, InfoTimestampPtr); if (timestamp1 && timestamp2) { diff --git a/src/helper.cpp b/src/helper.cpp index c866a94f..fff85b19 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -2147,7 +2147,7 @@ void _app_generate_timermenu (HMENU hsubmenu, size_t app_hash) bool is_checked = (app_hash == 0); const time_t current_time = _r_unixtime_now (); - const time_t* ptime = (time_t*)_app_getappinfo (app_hash, InfoTimer); + const time_t* ptime = (time_t*)_app_getappinfo (app_hash, InfoTimerPtr); const time_t app_time = ptime ? *ptime : 0; UINT index = 0; diff --git a/src/main.hpp b/src/main.hpp index 84693275..2a0a8441 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -84,8 +84,8 @@ enum EnumInfo { InfoName = 0, InfoPath = 1, - InfoTimestamp = 2, - InfoTimer = 3, + InfoTimestampPtr = 2, + InfoTimerPtr = 3, InfoIconId = 4, InfoListviewId = 5, InfoIsSilent = 6, diff --git a/src/profile.cpp b/src/profile.cpp index 24757c77..6e8cb6bc 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -28,11 +28,11 @@ LONG_PTR _app_getappinfo (size_t app_hash, EnumInfo info_key) else if (!_r_str_isempty (ptr_app->original_path)) result = (LONG_PTR)ptr_app->original_path; } - else if (info_key == InfoTimestamp) + else if (info_key == InfoTimestampPtr) { result = (LONG_PTR)&ptr_app->timestamp; } - else if (info_key == InfoTimer) + else if (info_key == InfoTimerPtr) { result = (LONG_PTR)&ptr_app->timer; }