diff -r 613028a7da24 -r eaaed528d5fd usbmgmt/usbmgr/usbman/server/SRC/CUsbDevice.cpp --- a/usbmgmt/usbmgr/usbman/server/SRC/CUsbDevice.cpp Thu Sep 02 22:23:37 2010 +0300 +++ b/usbmgmt/usbmgr/usbman/server/SRC/CUsbDevice.cpp Fri Sep 17 08:40:15 2010 +0300 @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -33,6 +32,11 @@ #include #include #include +#ifndef __DUMMY_LDD__ +#include +#else +#include +#endif #include //Publish & Subscribe header #ifdef USE_DUMMY_CLASS_CONTROLLER #include "CUsbDummyClassController.h" @@ -182,9 +186,11 @@ #ifndef __OVER_DUMMYUSBDI__ #ifndef __WINS__ OstTrace0( TRACE_NORMAL, CUSBDEVICE_CONSTRUCTL, "CUsbDevice::ConstructL; About to load LDD" ); - +#ifndef __DUMMY_LDD__ TInt err = User::LoadLogicalDevice(KUsbLDDName); - +#else + TInt err = KErrNone; +#endif if (err != KErrNone && err != KErrAlreadyExists) { OstTrace1( TRACE_NORMAL, CUSBDEVICE_CONSTRUCTL_DUP10, "CUsbDevice::ConstructL;err=%d", err ); @@ -291,10 +297,12 @@ for (TInt i=0; iImplementationUid(), *this); CleanupStack::PushL(plugin); iExtensionPlugins.AppendL(plugin); // transfer ownership to iExtensionPlugins CleanupStack::Pop(plugin); +#endif OstTrace1( TRACE_NORMAL, CUSBDEVICE_INSTANTIATEEXTENSIONPLUGINSL_DUP1, "CUsbDevice::InstantiateExtensionPluginsL;Added extension plugin with UID 0x%08x", implementations[i]->ImplementationUid().iUid );