# HG changeset patch # User sl # Date 1395056319 -3600 # Node ID d5f6b2119a13b19d456ced0029e99a31a22bbb4b # Parent 558712318e1b49684cd456793b623f0e3b37ee46 Fixing init result issue. diff -r 558712318e1b -r d5f6b2119a13 IdwApi.cpp --- a/IdwApi.cpp Mon Mar 17 12:29:19 2014 +0100 +++ b/IdwApi.cpp Mon Mar 17 12:38:39 2014 +0100 @@ -59,7 +59,7 @@ m_mutex.Release(); return DSP_S_NOT_INITED; } - DSPResult ret = m_pIdwThread->IsInited(); + DSPResult ret = m_pIdwThread->IsInitialized(); m_mutex.Release(); return ret; } diff -r 558712318e1b -r d5f6b2119a13 IdwThread.cpp --- a/IdwThread.cpp Mon Mar 17 12:29:19 2014 +0100 +++ b/IdwThread.cpp Mon Mar 17 12:38:39 2014 +0100 @@ -157,7 +157,7 @@ return result; } //------------------------------------------------------------------------------ -DSPResult IdwThread::IsInited() +DSPResult IdwThread::IsInitialized() { if (!WaitForWindow()) return DSP_E_FAIL; @@ -820,6 +820,7 @@ case DSPNM_HW_CONNECTED: //lParam is display type iDspType = (DSPType)lParam; + iInitResult = DSPN_SUCCEEDED; break; case DSPNM_PLUGIN_FAILED: case DSPNM_HW_DISCONNECTED: diff -r 558712318e1b -r d5f6b2119a13 IdwThread.h --- a/IdwThread.h Mon Mar 17 12:29:19 2014 +0100 +++ b/IdwThread.h Mon Mar 17 12:38:39 2014 +0100 @@ -31,7 +31,7 @@ virtual void Interrupt(); DSPResult Init(IDW_INITRESULT* pInitResult); DSPResult Uninit(); - DSPResult IsInited(); + DSPResult IsInitialized(); DSPResult IsPluginModeEnabled(); DSPResult GetStatus(IDW_STATUS* aStatus); DSPResult SetVfdText(LPCWSTR lpszLine1, LPCWSTR lpszLine2);