javacommons/fileutils/src.s60/filesystemutils.cpp
branchRCL_3
changeset 26 2455ef1f5bbc
parent 25 ae942d28ec0e
child 27 d5e927d5853b
--- a/javacommons/fileutils/src.s60/filesystemutils.cpp	Tue Aug 31 15:09:22 2010 +0300
+++ b/javacommons/fileutils/src.s60/filesystemutils.cpp	Wed Sep 01 12:33:18 2010 +0100
@@ -25,7 +25,6 @@
 #include "s60filesystemutilities.h"
 #include "javasymbianoslayer.h"
 
-#define BUF_LEN 255
 using namespace std;
 using namespace java::util;
 using namespace java::fileutils;
@@ -95,9 +94,8 @@
 OS_EXPORT std::wstring FileUtilities::listRoots()
 {
     JELOG2(EJavaFile);
-    TBuf<BUF_LEN> buf;
-    buf.Copy(S60FileSystemUtilities::GetSupportedDrives());    
-    std::wstring retString((wchar_t*)buf.Ptr());
+    TDesC16 aDes(S60FileSystemUtilities::GetSupportedDrives());
+    std::wstring retString((wchar_t*)aDes.Ptr());
     return retString;
 }