From dfe1d849cdac10b154f014ce8f73c863b8c4b2af Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 27 Dec 2009 23:53:41 +0000 Subject: [PATCH] Set up ConnMgr proc ptrs *before* attempting to use them. --- xwords4/wince/cemain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/wince/cemain.c b/xwords4/wince/cemain.c index 7074b105d..af4e64a89 100755 --- a/xwords4/wince/cemain.c +++ b/xwords4/wince/cemain.c @@ -1344,6 +1344,7 @@ static void initConnMgr( CEAppGlobals* globals ) { HINSTANCE hcellDll = LoadLibrary(TEXT("cellcore.dll")); + XP_ASSERT( !!hcellDll ); if ( !!hcellDll ) { globals->hcellDll = hcellDll; @@ -1515,6 +1516,9 @@ InitInstance(HINSTANCE hInstance, int nCmdShow result = TRUE; #endif +#if defined _WIN32_WCE && ! defined CEGCC_DOES_CONNMGR + initConnMgr( globals ); +#endif /* must load prefs before creating draw ctxt */ globals->draw = ce_drawctxt_make( MPPARM(globals->mpool) @@ -1538,10 +1542,6 @@ InitInstance(HINSTANCE hInstance, int nCmdShow trapBackspaceKey( hWnd ); -#if defined _WIN32_WCE && ! defined CEGCC_DOES_CONNMGR - initConnMgr( globals ); -#endif - ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); #ifdef _WIN32_WCE