Fixing init result issue.
authorsl
Mon, 17 Mar 2014 12:38:39 +0100
changeset 3d5f6b2119a13
parent 2 558712318e1b
child 4 328515997e35
Fixing init result issue.
IdwApi.cpp
IdwThread.cpp
IdwThread.h
     1.1 --- a/IdwApi.cpp	Mon Mar 17 12:29:19 2014 +0100
     1.2 +++ b/IdwApi.cpp	Mon Mar 17 12:38:39 2014 +0100
     1.3 @@ -59,7 +59,7 @@
     1.4      m_mutex.Release();
     1.5      return DSP_S_NOT_INITED;
     1.6    }
     1.7 -  DSPResult ret = m_pIdwThread->IsInited();
     1.8 +  DSPResult ret = m_pIdwThread->IsInitialized();
     1.9    m_mutex.Release();
    1.10    return ret;
    1.11  }
     2.1 --- a/IdwThread.cpp	Mon Mar 17 12:29:19 2014 +0100
     2.2 +++ b/IdwThread.cpp	Mon Mar 17 12:38:39 2014 +0100
     2.3 @@ -157,7 +157,7 @@
     2.4    return result;
     2.5  }
     2.6  //------------------------------------------------------------------------------
     2.7 -DSPResult IdwThread::IsInited()
     2.8 +DSPResult IdwThread::IsInitialized()
     2.9  {
    2.10    if (!WaitForWindow())
    2.11      return DSP_E_FAIL;
    2.12 @@ -820,6 +820,7 @@
    2.13  	case DSPNM_HW_CONNECTED:
    2.14  		//lParam is display type
    2.15  		iDspType = (DSPType)lParam;
    2.16 +		iInitResult = DSPN_SUCCEEDED;
    2.17  		break;
    2.18  	case DSPNM_PLUGIN_FAILED:
    2.19  	case DSPNM_HW_DISCONNECTED:
     3.1 --- a/IdwThread.h	Mon Mar 17 12:29:19 2014 +0100
     3.2 +++ b/IdwThread.h	Mon Mar 17 12:38:39 2014 +0100
     3.3 @@ -31,7 +31,7 @@
     3.4  	virtual void Interrupt();
     3.5  	DSPResult Init(IDW_INITRESULT* pInitResult);
     3.6  	DSPResult Uninit();
     3.7 -	DSPResult IsInited();
     3.8 +	DSPResult IsInitialized();
     3.9  	DSPResult IsPluginModeEnabled();
    3.10  	DSPResult GetStatus(IDW_STATUS* aStatus);
    3.11  	DSPResult SetVfdText(LPCWSTR lpszLine1, LPCWSTR lpszLine2);