utilitylibraries/libutils/src/wchartodescriptor8.cpp
changeset 44 97b0fb8a2cc2
parent 0 e4d67989cc36
child 57 2efc27d87e1c
equal deleted inserted replaced
22:ddc455616bd6 44:97b0fb8a2cc2
   228 		return EInsufficientSystemMemory;
   228 		return EInsufficientSystemMemory;
   229 	}
   229 	}
   230 
   230 
   231 	if(minusone != wcstombs(buf, (const wchar_t*)aSrc, wlen*2))
   231 	if(minusone != wcstombs(buf, (const wchar_t*)aSrc, wlen*2))
   232 	{
   232 	{
   233 	    if (KErrNone == aDes.Create(wlen*2))
   233 	  aDes.Copy((const unsigned char *)buf, wlen*2);		
   234 	    {
       
   235 	    	aDes.Copy((const unsigned char *)buf, wlen*2);	
       
   236 	    }
       
   237 		else 
       
   238 		{
       
   239 			retval = EInsufficientSystemMemory;
       
   240 		}			
       
   241 	}
   234 	}
   242 	else
   235 	else
   243 	{
   236 	{
   244 		retval = EInvalidWCSSequence;
   237 		retval = EInvalidWCSSequence;
   245 	}
   238 	}