X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f9822faf4fadd0fe6846c52207a3e5261a34278..d37b709c4b94d8690f9fe6adbdc1246e9f51bf4e:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 82e2305f9c..52e05fee69 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -33,8 +33,8 @@ #include "wx/dynlib.h" // initialized on demand -UINT gs_msgTaskbar = 0; -UINT gs_msgRestartTaskbar = 0; +static UINT gs_msgTaskbar = 0; +static UINT gs_msgRestartTaskbar = 0; IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler) @@ -61,8 +61,7 @@ static BOOL wxShellNotifyIcon(DWORD dwMessage, NOTIFYICONDATA *pData) wxDynamicLibrary dllShell("shell32.dll"); if ( dllShell.IsLoaded() ) { - s_pfnShell_NotifyIcon = - (Shell_NotifyIcon_t)dllShell.GetSymbolAorW("Shell_NotifyIcon"); + wxDL_INIT_FUNC_AW(s_pfn, Shell_NotifyIcon, dllShell); } // NB: it's ok to destroy dllShell here, we link to shell32.dll