--- a/mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/csendobject.cpp Fri Jul 09 17:03:16 2010 -0500
+++ b/mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/csendobject.cpp Fri Jul 23 17:48:16 2010 -0500
@@ -607,6 +607,8 @@
SendResponseL( EMTPRespCodeOK );
}
+ iCancelled = EFalse;
+
PRINT1( _L( "MM MTP <= CSendObject::DoHandleResponsePhaseObjectL result = %d" ), result );
return result;
@@ -1067,6 +1069,17 @@
// might happen if function is called before physical file arrives
// do nothing
}
+ else if ( iObjectFormat == EMTPFormatCodeASF )
+ {
+ // happens on some buggy PC implementation, default formatcode to WMA or WMV if extension matches
+ PRINT( _L( "MM MTP <> happens on some buggy PC implementation, default formatcode to WMA or WMV if extension matches" ) );
+ if ( parser.Ext().CompareF( KTxtExtensionWMA ) == 0 )
+ iObjectFormat = EMTPFormatCodeWMA;
+ else if ( parser.Ext().CompareF( KTxtExtensionWMV ) == 0 )
+ iObjectFormat = EMTPFormatCodeWMV;
+ else
+ result = EFalse;
+ }
else
{
PRINT2( _L( "MM MTP <> %S does not match 0x%x" ), &iFullPath, iObjectFormat );