diff --git a/EgtGeneral.rc b/EgtGeneral.rc index 9c00f5c..72905bb 100644 Binary files a/EgtGeneral.rc and b/EgtGeneral.rc differ diff --git a/FileUtils.cpp b/FileUtils.cpp index df0c707..b9564ec 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -181,16 +181,12 @@ ExistsDirectory( const string& sDir) bool EmptyDirectory( const string& sDir) { - wstring sDirW ; - wstring sFileW ; - _wfinddata_t c_file ; - intptr_t hFile ; - - - sDirW = stringtoW( sDir) ; - sFileW = sDirW + L"\\*.*" ; + wstring sDirW = stringtoW( sDir) ; + wstring sFileW = sDirW + L"\\*.*" ; // ciclo su tutti i file del direttorio + _wfinddata_t c_file ; + intptr_t hFile ; if ( ( hFile = _wfindfirst( sFileW.c_str(), &c_file)) != -1L) { do { if ( c_file.attrib != _A_SUBDIR) {