services/terminalmodeservice/src/upnptmappserverservice.cpp
changeset 34 5da7464ce100
parent 27 226a2340cdd3
--- a/services/terminalmodeservice/src/upnptmappserverservice.cpp	Thu Sep 02 21:24:54 2010 +0300
+++ b/services/terminalmodeservice/src/upnptmappserverservice.cpp	Fri Sep 17 08:35:16 2010 +0300
@@ -187,11 +187,13 @@
    // Fetch the value for app listing filter argument
    const TDesC8& filter = aAction->ArgumentValue(KAppFilter);
    // Validate the AppListing filter string
-   // AppListingFilter input argument can contain wither wildcard(*) or
-   // a well formatted string
-   if ( ( filter.Compare(KWildCard ) != KErrNone ) && ( filter.Find(Keq) == KErrNotFound ))
+   // AppListingFilter input argument can contain one of these: <1> an empty string ("")  
+   // <2> wildcard(*)  <3> a well formatted filter string 
+   if ( ( filter.Compare(KNullDesC8()) != KErrNone ) && ( filter.Compare(KWildCard ) != KErrNone ) 
+        && ( filter.Find(Keq) == KErrNotFound ) )
        {
-       // The filter string is having neither wildcard(*) nor a proper string( =" is missing )
+       // AppListingFilter argument is not having empty string ( "" ) , or wildcard(*) , 
+       // or a valid filter string( =" is missing )
        OstTrace0( TRACE_ERROR, DUP2_CUPNPTMAPPSERVERSERVICE_GETAPPLISTACTIONL, "CUpnpTmAppServerService::GetAppListActionL" );   
        return EInvalidArgs;  // invalid AppListingFilter argument
        }