diff --git a/dll/shellext/netshell/lanstatusui.cpp b/dll/shellext/netshell/lanstatusui.cpp index 64f38ef4a0f..a6d3b96e744 100644 --- a/dll/shellext/netshell/lanstatusui.cpp +++ b/dll/shellext/netshell/lanstatusui.cpp @@ -9,6 +9,8 @@ #include +#define NETTIMERID 0xFABC + CLanStatus::CLanStatus() : m_lpNetMan(NULL), m_pHead(NULL) @@ -116,7 +118,7 @@ UpdateLanStatusUiDlg( } VOID -UpdateLanStatus(HWND hwndDlg, LANSTATUSUI_CONTEXT * pContext) +UpdateLanStatus(HWND hwndDlg, LANSTATUSUI_CONTEXT * pContext) { MIB_IFROW IfEntry; HICON hIcon, hOldIcon = NULL; @@ -839,7 +841,7 @@ LANStatusDlg( case WM_INITDIALOG: pContext = (LANSTATUSUI_CONTEXT *)lParam; SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)lParam); - pContext->nIDEvent = SetTimer(hwndDlg, 0xFABC, 1000, NULL); + pContext->nIDEvent = SetTimer(hwndDlg, NETTIMERID, 1000, NULL); return TRUE; case WM_TIMER: pContext = (LANSTATUSUI_CONTEXT*)GetWindowLongPtr(hwndDlg, DWLP_USER); @@ -946,6 +948,8 @@ CLanStatus::InitializeNetTaskbarNotifications() ZeroMemory(pContext, sizeof(LANSTATUSUI_CONTEXT)); pContext->uID = Index; pContext->pNet = pNetCon; + pContext->Status = -1; + pContext->dwAdapterIndex = Index; pItem->uID = Index; pItem->pNext = NULL; pItem->pNet = pNetCon; diff --git a/dll/shellext/netshell/resource.h b/dll/shellext/netshell/resource.h index 2d4fb6dfa2a..1519c473099 100644 --- a/dll/shellext/netshell/resource.h +++ b/dll/shellext/netshell/resource.h @@ -125,3 +125,4 @@ #define IDS_WZD_DOMAIN_NAME 13457 #define IDR_NETSHELL 20000 +