mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
Set up ConnMgr proc ptrs *before* attempting to use them.
This commit is contained in:
parent
56ece4ee5f
commit
dfe1d849cd
1 changed files with 4 additions and 4 deletions
|
@ -1344,6 +1344,7 @@ static void
|
||||||
initConnMgr( CEAppGlobals* globals )
|
initConnMgr( CEAppGlobals* globals )
|
||||||
{
|
{
|
||||||
HINSTANCE hcellDll = LoadLibrary(TEXT("cellcore.dll"));
|
HINSTANCE hcellDll = LoadLibrary(TEXT("cellcore.dll"));
|
||||||
|
XP_ASSERT( !!hcellDll );
|
||||||
if ( !!hcellDll ) {
|
if ( !!hcellDll ) {
|
||||||
globals->hcellDll = hcellDll;
|
globals->hcellDll = hcellDll;
|
||||||
|
|
||||||
|
@ -1515,6 +1516,9 @@ InitInstance(HINSTANCE hInstance, int nCmdShow
|
||||||
result = TRUE;
|
result = TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined _WIN32_WCE && ! defined CEGCC_DOES_CONNMGR
|
||||||
|
initConnMgr( globals );
|
||||||
|
#endif
|
||||||
|
|
||||||
/* must load prefs before creating draw ctxt */
|
/* must load prefs before creating draw ctxt */
|
||||||
globals->draw = ce_drawctxt_make( MPPARM(globals->mpool)
|
globals->draw = ce_drawctxt_make( MPPARM(globals->mpool)
|
||||||
|
@ -1538,10 +1542,6 @@ InitInstance(HINSTANCE hInstance, int nCmdShow
|
||||||
|
|
||||||
trapBackspaceKey( hWnd );
|
trapBackspaceKey( hWnd );
|
||||||
|
|
||||||
#if defined _WIN32_WCE && ! defined CEGCC_DOES_CONNMGR
|
|
||||||
initConnMgr( globals );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ShowWindow(hWnd, nCmdShow);
|
ShowWindow(hWnd, nCmdShow);
|
||||||
UpdateWindow(hWnd);
|
UpdateWindow(hWnd);
|
||||||
#ifdef _WIN32_WCE
|
#ifdef _WIN32_WCE
|
||||||
|
|
Loading…
Reference in a new issue