]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialup.cpp
another segfault fix
[wxWidgets.git] / src / msw / dialup.cpp
index e7a00a506b984db8399bbd74be19962806cad3ae..ff5cdfa3db90f5acf14959aef35c2ecc6e362745 100644 (file)
@@ -968,7 +968,7 @@ bool wxDialUpManagerMSW::IsAlwaysOnline() const
     wxDllType hDll = wxDllLoader::LoadLibrary(_T("WININET"), &ok);
     if ( ok )
     {
     wxDllType hDll = wxDllLoader::LoadLibrary(_T("WININET"), &ok);
     if ( ok )
     {
-        typedef BOOL (*INTERNETGETCONNECTEDSTATE)(LPDWORD, DWORD);
+        typedef BOOL (WINAPI *INTERNETGETCONNECTEDSTATE)(LPDWORD, DWORD);
         INTERNETGETCONNECTEDSTATE pfnInternetGetConnectedState;
 
         #define RESOLVE_FUNCTION(type, name) \
         INTERNETGETCONNECTEDSTATE pfnInternetGetConnectedState;
 
         #define RESOLVE_FUNCTION(type, name) \