diff -r 6f7ceef7b1d1 -r ebf79c79991a mmserv/voipaudioservices/VoIPClient/src/VoIPAudioSession.cpp --- 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 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; } // -----------------------------------------------------------------------------