add missing static keyword
authorPaul Cornett <paulcor@bullseye.com>
Thu, 22 May 2008 16:46:08 +0000 (16:46 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 22 May 2008 16:46:08 +0000 (16:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index 11aa012a7f2afc2264d430c78d3e66aca308a3c8..a75e3e94ccc5ac4162a33e2a5e8cf40b6823985f 100644 (file)
@@ -1080,7 +1080,7 @@ void wxTopLevelWindowMSW::RequestUserAttention(int flags)
 #if defined(FLASHW_STOP) && defined(VK_XBUTTON1) && wxUSE_DYNLIB_CLASS
     // available in the headers, check if it is supported by the system
     typedef BOOL (WINAPI *FlashWindowEx_t)(FLASHWINFO *pfwi);
-    FlashWindowEx_t s_pfnFlashWindowEx = NULL;
+    static FlashWindowEx_t s_pfnFlashWindowEx = NULL;
     if ( !s_pfnFlashWindowEx )
     {
         wxDynamicLibrary dllUser32(_T("user32.dll"));