diff -r ab526b8cacfb -r 60e492b28869 mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp --- a/mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp Mon Jun 21 16:15:34 2010 +0300 +++ b/mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp Thu Jul 15 19:13:36 2010 +0300 @@ -152,12 +152,10 @@ // EXPORT_C TInt RVoIPAudioSession::GetMaxVolume() { - TInt maxVol = 0; TPckgBuf 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 pckg; TIpcArgs args(&pckg); - SendClientRequest(EVoIPGetMaxGain, args); - maxGain = pckg(); - return maxGain; + TInt err = SendClientRequest(EVoIPGetMaxGain, args); + return (err == KErrNone) ? pckg() : err; } // -----------------------------------------------------------------------------