lafagnosticuifoundation/cone/src/COEPRIV.CPP
branchRCL_3
changeset 51 fcdfafb36fe7
parent 0 2f259fa3e83a
child 55 aecbbf00d063
--- a/lafagnosticuifoundation/cone/src/COEPRIV.CPP	Thu Jul 15 18:56:19 2010 +0300
+++ b/lafagnosticuifoundation/cone/src/COEPRIV.CPP	Thu Aug 19 10:11:06 2010 +0300
@@ -66,6 +66,8 @@
 
 void CCoeRedrawer::RunL()
 	{
+    User::LeaveIfError( iStatus.Int() );
+
 	TWsRedrawEvent redraw;
 	iWsSession.GetRedraw(redraw);
 	const TUint handle = redraw.Handle();
@@ -104,3 +106,21 @@
 	{
 	iWsSession.RedrawReadyCancel();
 	}
+
+/**
+  Log the error (debug builds) before panicking.
+  The panic code is consistent with that in CCoeEnv::RunL().
+ */
+TInt CCoeRedrawer::RunError( TInt aError )
+    {
+#ifdef _DEBUG
+    RDebug::Print( _L("CCoeRedrawer's iStatus = %d"), iStatus.Int() );
+#endif
+
+    Panic( ECoePanicWservBlindCommandFailed );
+    aError = KErrNone;
+
+    return aError;
+    }
+
+