Skip to content

Commit

Permalink
upd main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Feb 26, 2023
1 parent f7f1b62 commit fce9681
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2673,11 +2673,11 @@ INT_PTR CALLBACK DlgProc (

_app_profile_save ();

if (app_hash)
{
_app_listview_updateby_param (hwnd, app_hash, PR_SETITEM_UPDATE, TRUE);
_app_listview_showitemby_param (hwnd, app_hash, TRUE);
}
if (!app_hash)
break;

_app_listview_updateby_param (hwnd, app_hash, PR_SETITEM_UPDATE, TRUE);
_app_listview_showitemby_param (hwnd, app_hash, TRUE);

break;
}
Expand Down Expand Up @@ -2879,18 +2879,16 @@ INT_PTR CALLBACK DlgProc (
lpnmlv = (LPNMLVGETINFOTIP)lparam;
listview_id = (INT)(INT_PTR)lpnmlv->hdr.idFrom;

string = _app_gettooltipbylparam (
hwnd,
listview_id,
_app_listview_getitemcontext (hwnd, listview_id, lpnmlv->iItem)
);
lparam = _app_listview_getitemcontext (hwnd, listview_id, lpnmlv->iItem);

if (string)
{
_r_str_copy (lpnmlv->pszText, lpnmlv->cchTextMax, string->buffer);
string = _app_gettooltipbylparam (hwnd, listview_id, lparam);

_r_obj_dereference (string);
}
if (!string)
break;

_r_str_copy (lpnmlv->pszText, lpnmlv->cchTextMax, string->buffer);

_r_obj_dereference (string);

break;
}
Expand All @@ -2914,7 +2912,6 @@ INT_PTR CALLBACK DlgProc (
if (!lpnmlv->lParam)
break;


if ((listview_id >= IDC_APPS_PROFILE && listview_id <= IDC_APPS_UWP))
{
app_hash = _app_listview_getcontextcode (lpnmlv->lParam);
Expand Down Expand Up @@ -4133,7 +4130,9 @@ BOOLEAN _app_parseargs (
NULL,
MB_OK | MB_ICONINFORMATION,
L"Available options:",
L"\"simplewall.exe -install\" - enable filtering.\r\n\"simplewall.exe -install -temp\" - enable filtering until reboot.\r\n\"simplewall.exe -install -silent\" - enable filtering without prompt.\r\n\"simplewall.exe -uninstall\" - remove all installed filters.\r\n\"simplewall.exe -help\" - show this message."
L"\"simplewall.exe -install\" - enable filtering.\r\n\"simplewall.exe -install -temp\" - enable filtering until reboot.\r\n\" \
simplewall.exe -install -silent\" - enable filtering without prompt.\r\n\"" \
"simplewall.exe -uninstall\" - remove all installed filters.\r\n\"simplewall.exe -help\" - show this message."
);

result = TRUE;
Expand Down

0 comments on commit fce9681

Please sign in to comment.