--- a/bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp Mon Jul 12 19:13:27 2010 +0300
+++ b/bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp Mon Jul 12 19:25:26 2010 +0300
@@ -707,9 +707,10 @@
TRACE_INFO( ( _L( "[CBTEngSrvSettingsMgr]\t Using HCI API v2 power manager" ) ) )
User::LeaveIfError( iPowerMgr.Open() );
#ifndef __WINS__
- iPowerMgr.SetPower( EBTOff, NULL, iActive->RequestStatus() );
- User::WaitForRequest( iActive->RequestStatus() );
- TInt status = ( iActive->RequestStatus().Int() == KErrAlreadyExists ? KErrNone : iActive->RequestStatus().Int() );
+ TRequestStatus reqStatus;
+ iPowerMgr.SetPower( EBTOff, NULL, reqStatus );
+ User::WaitForRequest( reqStatus );
+ TInt status = ( reqStatus.Int() == KErrAlreadyExists ? KErrNone : reqStatus.Int() );
User::LeaveIfError( status );
#else //__WINS__
iPowerState = EBTOff;