mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp
changeset 28 ebf79c79991a
parent 0 71ca22bcf22a
child 53 eabc8c503852
--- a/mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp	Fri Jun 11 19:59:23 2010 -0500
+++ b/mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp	Fri Jun 25 17:36:03 2010 -0500
@@ -152,12 +152,10 @@
 //
 EXPORT_C TInt RVoIPAudioSession::GetMaxVolume()
     {
-    TInt maxVol = 0;
     TPckgBuf<TInt> pckg;
     TIpcArgs args(&pckg);
-    SendClientRequest(EVoIPGetMaxVolume, args);
-    maxVol = pckg();
-    return maxVol;
+    TInt err = SendClientRequest(EVoIPGetMaxVolume, args);
+    return (err == KErrNone) ? pckg() : err;
     }
 
 // -----------------------------------------------------------------------------
@@ -338,12 +336,10 @@
 //
 EXPORT_C TInt RVoIPAudioSession::GetMaxGain()
     {
-    TInt maxGain = 0;
     TPckgBuf<TInt> pckg;
     TIpcArgs args(&pckg);
-    SendClientRequest(EVoIPGetMaxGain, args);
-    maxGain = pckg();
-    return maxGain;
+    TInt err = SendClientRequest(EVoIPGetMaxGain, args);
+    return (err == KErrNone) ? pckg() : err;
     }
 
 // -----------------------------------------------------------------------------