utilitylibraries/libutils/src/wchartodescriptor8.cpp
branchRCL_3
changeset 56 acd3cd4aaceb
parent 0 e4d67989cc36
child 57 2efc27d87e1c
--- a/utilitylibraries/libutils/src/wchartodescriptor8.cpp	Thu Aug 19 11:33:45 2010 +0300
+++ b/utilitylibraries/libutils/src/wchartodescriptor8.cpp	Tue Aug 31 16:54:36 2010 +0300
@@ -230,14 +230,7 @@
 
 	if(minusone != wcstombs(buf, (const wchar_t*)aSrc, wlen*2))
 	{
-	    if (KErrNone == aDes.Create(wlen*2))
-	    {
-	    	aDes.Copy((const unsigned char *)buf, wlen*2);	
-	    }
-		else 
-		{
-			retval = EInsufficientSystemMemory;
-		}			
+	  aDes.Copy((const unsigned char *)buf, wlen*2);		
 	}
 	else
 	{