mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
*! It may now be able to compile under Windows.
This commit is contained in:
parent
ac340ba98f
commit
cdd2321601
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue