*! It may now be able to compile under Windows.

This commit is contained in:
Konstantin Isakov 2009-10-19 11:19:40 +00:00
parent ac340ba98f
commit cdd2321601

View file

@ -995,7 +995,7 @@ void save( Class const & c ) throw( exError )
QVector< wchar_t > destFileW( destFile.size() + 1 ); QVector< wchar_t > destFileW( destFile.size() + 1 );
destFileW[ destFile.toWCharArray( destFileW.data() ) ] = 0; destFileW[ destFile.toWCharArray( destFileW.data() ) ] = 0;
if ( !MoveFileExW( srcFile.data(), destFile.data(), MOVEFILE_REPLACE_EXISTING ) ) if ( !MoveFileExW( srcFileW.data(), destFileW.data(), MOVEFILE_REPLACE_EXISTING ) )
throw exCantWriteConfigFile(); throw exCantWriteConfigFile();
#else #else