@@ -435,30 +435,30 @@ VOID _app_message_localize (
435435
436436 case IDC_LOG :
437437 {
438- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 0 , _r_locale_getstring (IDS_NAME ), 0 );
439- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 1 , _r_locale_getstring (IDS_DATE ), 0 );
438+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 1 , _r_locale_getstring (IDS_NAME ), 0 );
439+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 2 , _r_locale_getstring (IDS_DATE ), 0 );
440440
441441 _r_obj_movereference ((PVOID_PTR )& localized_string , _r_format_string (L"%s (%s)" , _r_locale_getstring (IDS_ADDRESS ), _r_locale_getstring (IDS_DIRECTION_LOCAL )));
442- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 2 , localized_string -> buffer , 0 );
442+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 3 , localized_string -> buffer , 0 );
443443
444444 _r_obj_movereference ((PVOID_PTR )& localized_string , _r_format_string (L"%s (%s)" , _r_locale_getstring (IDS_HOST ), _r_locale_getstring (IDS_DIRECTION_LOCAL )));
445- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 3 , localized_string -> buffer , 0 );
445+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 4 , localized_string -> buffer , 0 );
446446
447447 _r_obj_movereference ((PVOID_PTR )& localized_string , _r_format_string (L"%s (%s)" , _r_locale_getstring (IDS_PORT ), _r_locale_getstring (IDS_DIRECTION_LOCAL )));
448- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 4 , localized_string -> buffer , 0 );
448+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 5 , localized_string -> buffer , 0 );
449449
450450 _r_obj_movereference ((PVOID_PTR )& localized_string , _r_format_string (L"%s (%s)" , _r_locale_getstring (IDS_ADDRESS ), _r_locale_getstring (IDS_DIRECTION_REMOTE )));
451- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 5 , localized_string -> buffer , 0 );
451+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 6 , localized_string -> buffer , 0 );
452452
453453 _r_obj_movereference ((PVOID_PTR )& localized_string , _r_format_string (L"%s (%s)" , _r_locale_getstring (IDS_HOST ), _r_locale_getstring (IDS_DIRECTION_REMOTE )));
454- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 6 , localized_string -> buffer , 0 );
454+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 7 , localized_string -> buffer , 0 );
455455
456456 _r_obj_movereference ((PVOID_PTR )& localized_string , _r_format_string (L"%s (%s)" , _r_locale_getstring (IDS_PORT ), _r_locale_getstring (IDS_DIRECTION_REMOTE )));
457- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 7 , localized_string -> buffer , 0 );
457+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 8 , localized_string -> buffer , 0 );
458458
459- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 8 , _r_locale_getstring (IDS_PROTOCOL ), 0 );
460- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 9 , _r_locale_getstring (IDS_DIRECTION ), 0 );
461- _r_listview_setcolumn (hwnd , tab_context -> listview_id , 10 , _r_locale_getstring (IDS_FILTER ), 0 );
459+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 9 , _r_locale_getstring (IDS_PROTOCOL ), 0 );
460+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 10 , _r_locale_getstring (IDS_DIRECTION ), 0 );
461+ _r_listview_setcolumn (hwnd , tab_context -> listview_id , 11 , _r_locale_getstring (IDS_FILTER ), 0 );
462462
463463 break ;
464464 }
@@ -1518,6 +1518,12 @@ VOID _app_displayinfolog_callback (
15181518 switch (lpnmlv -> item .iSubItem )
15191519 {
15201520 case 0 :
1521+ {
1522+ _r_str_printf (lpnmlv -> item .pszText , lpnmlv -> item .cchTextMax , L"%d" , _InterlockedCompareExchange (& ptr_log -> log_id , 0 , 0 ));
1523+ break ;
1524+ }
1525+
1526+ case 1 :
15211527 {
15221528 if (ptr_app )
15231529 {
@@ -1542,7 +1548,7 @@ VOID _app_displayinfolog_callback (
15421548 break ;
15431549 }
15441550
1545- case 1 :
1551+ case 2 :
15461552 {
15471553 string = _r_format_unixtime (ptr_log -> timestamp , FDTF_SHORTDATE | FDTF_LONGTIME );
15481554
@@ -1556,7 +1562,7 @@ VOID _app_displayinfolog_callback (
15561562 break ;
15571563 }
15581564
1559- case 2 :
1565+ case 3 :
15601566 {
15611567 string = _InterlockedCompareExchangePointer ((volatile PVOID_PTR )& ptr_log -> local_addr_str , NULL , NULL );
15621568
@@ -1566,7 +1572,7 @@ VOID _app_displayinfolog_callback (
15661572 break ;
15671573 }
15681574
1569- case 3 :
1575+ case 4 :
15701576 {
15711577 string = _InterlockedCompareExchangePointer ((volatile PVOID_PTR )& ptr_log -> local_host_str , NULL , NULL );
15721578
@@ -1582,7 +1588,7 @@ VOID _app_displayinfolog_callback (
15821588 break ;
15831589 }
15841590
1585- case 4 :
1591+ case 5 :
15861592 {
15871593 if (ptr_log -> local_port )
15881594 {
@@ -1599,7 +1605,7 @@ VOID _app_displayinfolog_callback (
15991605 break ;
16001606 }
16011607
1602- case 5 :
1608+ case 6 :
16031609 {
16041610 string = _InterlockedCompareExchangePointer ((volatile PVOID_PTR )& ptr_log -> remote_addr_str , NULL , NULL );
16051611
@@ -1609,7 +1615,7 @@ VOID _app_displayinfolog_callback (
16091615 break ;
16101616 }
16111617
1612- case 6 :
1618+ case 7 :
16131619 {
16141620 string = _InterlockedCompareExchangePointer ((volatile PVOID_PTR )& ptr_log -> remote_host_str , NULL , NULL );
16151621
@@ -1625,7 +1631,7 @@ VOID _app_displayinfolog_callback (
16251631 break ;
16261632 }
16271633
1628- case 7 :
1634+ case 8 :
16291635 {
16301636 if (ptr_log -> remote_port )
16311637 {
@@ -1642,7 +1648,7 @@ VOID _app_displayinfolog_callback (
16421648 break ;
16431649 }
16441650
1645- case 8 :
1651+ case 9 :
16461652 {
16471653 if (ptr_log -> protocol_str )
16481654 {
@@ -1656,7 +1662,7 @@ VOID _app_displayinfolog_callback (
16561662 break ;
16571663 }
16581664
1659- case 9 :
1665+ case 10 :
16601666 {
16611667 string = _app_db_getdirectionname (ptr_log -> direction , ptr_log -> is_loopback , FALSE);
16621668
@@ -1670,7 +1676,7 @@ VOID _app_displayinfolog_callback (
16701676 break ;
16711677 }
16721678
1673- case 10 :
1679+ case 11 :
16741680 {
16751681 string = _r_obj_concatstrings (
16761682 2 ,
0 commit comments