javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcontrolhelper.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 66 2455ef1f5bbc
--- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcontrolhelper.cpp	Wed Sep 15 12:05:25 2010 +0300
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcontrolhelper.cpp	Wed Oct 13 14:23:59 2010 +0300
@@ -222,9 +222,13 @@
     CleanupStack::PushL(buffer);
 
     TPtrC8 ptr8(buffer->Ptr(0));
+#ifdef _UNICODE
     return TPtr16(reinterpret_cast<TText16*>(const_cast<TText8*>(ptr8.Ptr())),
                   length,
                   length);  //lint !e826
+#else
+    return TPtr8(const_cast<TText8*>(ptr8.Ptr()), ptr8.Length(),  ptr8.Length());
+#endif
 }
 
 /*