923 |
String tmpname = filename + ".TMP"; |
String tmpname = filename + ".TMP"; |
924 |
gig->Save(tmpname, &progress); |
gig->Save(tmpname, &progress); |
925 |
#if defined(WIN32) |
#if defined(WIN32) |
926 |
if (!DeleteFile(filename.c_str()) { |
if (!DeleteFile(filename.c_str())) { |
927 |
throw RIFF::Exception("Could not replace original file with temporary file (unable to remove original file)."); |
throw RIFF::Exception("Could not replace original file with temporary file (unable to remove original file)."); |
928 |
} |
} |
929 |
#else // POSIX ... |
#else // POSIX ... |