mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-22 02:52:54 -05:00
correct order
This commit is contained in:
1 file changed
+13
-13
@@ -1400,6 +1400,19 @@ VOID NTAPI _app_logthread (
|
||||
ptr_log->remote_addr_str = _app_formataddress (ptr_log->af, ptr_log->protocol, &ptr_log->remote_addr, 0, 0);
|
||||
ptr_log->local_addr_str = _app_formataddress (ptr_log->af, ptr_log->protocol, &ptr_log->local_addr, 0, 0);
|
||||
|
||||
// display notification
|
||||
if (is_notificationenabled)
|
||||
{
|
||||
if (ptr_app && !ptr_log->is_allow && is_exludeblocklist)
|
||||
{
|
||||
if (_app_getappinfo (ptr_app, INFO_IS_SILENT, &is_silent, sizeof (BOOLEAN)))
|
||||
{
|
||||
if (!is_silent)
|
||||
_app_notify_addobject (hwnd, ptr_log, ptr_app);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// write log to a file
|
||||
if (is_logenabled)
|
||||
_app_logwrite (ptr_log);
|
||||
@@ -1418,19 +1431,6 @@ VOID NTAPI _app_logthread (
|
||||
// write to a ui
|
||||
_app_logwrite_ui (hwnd, ptr_log);
|
||||
}
|
||||
|
||||
// display notification
|
||||
if (is_notificationenabled)
|
||||
{
|
||||
if (ptr_app && !ptr_log->is_allow && is_exludeblocklist)
|
||||
{
|
||||
if (_app_getappinfo (ptr_app, INFO_IS_SILENT, &is_silent, sizeof (BOOLEAN)))
|
||||
{
|
||||
if (!is_silent)
|
||||
_app_notify_addobject (hwnd, ptr_log, ptr_app);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user