javacommons/fileutils/src/fileutilities.cpp
branchRCL_3
changeset 66 2455ef1f5bbc
parent 65 ae942d28ec0e
child 71 d5e927d5853b
--- a/javacommons/fileutils/src/fileutilities.cpp	Tue Aug 31 15:09:22 2010 +0300
+++ b/javacommons/fileutils/src/fileutilities.cpp	Wed Sep 01 12:33:18 2010 +0100
@@ -323,8 +323,7 @@
         char *dirName = JavaCommonUtils::wstringToUtf8(path);
         if (ableToOpen)
         {
-            DIR* wDirHandle = opendir(dirName);
-            if (!wDirHandle)
+            if (!opendir(dirName))
             {
                 ableToOpen = false;
                 if (mkdir(dirName,0666)<0)
@@ -335,7 +334,6 @@
                     return -1;
                 }
             }
-            closedir(wDirHandle); 
         }
         else
         {