phoneplugins/csplugin/src/tmshandler.cpp
changeset 76 cfea66083b62
parent 65 2a5d4ab426d3
--- a/phoneplugins/csplugin/src/tmshandler.cpp	Fri Sep 17 17:09:12 2010 +0300
+++ b/phoneplugins/csplugin/src/tmshandler.cpp	Mon Oct 04 16:06:10 2010 +0300
@@ -18,6 +18,7 @@
 #include <tmsfactory.h>
 #include <tmscall.h>
 #include <tmsstream.h>
+#include <tmsver.h>
 #include "tmshandler.h"
 #include "csplogger.h"
 #include "csppanic.pan"
@@ -203,9 +204,9 @@
 TInt TmsHandler::CreateTMSCallControl()
     {
     CSPLOGSTRING(CSPINT, "TmsHandler::CreateTMSCallControl");
-    TMSVer* v = NULL;
     TInt status;
-    status = TMSFactory::CreateFactory(iFactory, *v);
+    TMSVer v(2,0,0);
+    status = TMSFactory::CreateFactory(iFactory, v);
 
     __ASSERT_ALWAYS(iFactory, Panic(ECSPPanicBadHandle));
 
@@ -350,9 +351,7 @@
             }
         else if (event.type == TMS_EVENT_STREAM_STATE_CHANGE_ERROR)
             {
-#ifndef __WINS__
             Panic( ECSPPanicAudioStreamInitFailure );
-#endif
             }
         }
     else if (strmType == TMS_STREAM_DOWNLINK)
@@ -363,9 +362,7 @@
             }
         else if (event.type == TMS_EVENT_STREAM_STATE_CHANGE_ERROR)
             {
-#ifndef __WINS__
             Panic( ECSPPanicAudioStreamInitFailure );
-#endif
             }
         }
     }