bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp
changeset 45 b0aebde9b1fb
parent 42 b72428996822
child 65 001a94c71129
--- 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;