fix stupid mistake in QFile write chunking
Tim Coalson
5 years ago
404 | 404 | while (total < count) |
405 | 405 | { |
406 | 406 | int64_t maxToWrite = min(count - total, CHUNK_SIZE); |
407 | writeret = m_file.write((const char*)dataIn, maxToWrite);//QFile probably also chokes on large writes | |
407 | writeret = m_file.write(((const char*)dataIn) + total, maxToWrite);//QFile probably also chokes on large writes | |
408 | 408 | if (writeret < 1) break;//0 or -1 means error or eof |
409 | 409 | total += writeret; |
410 | 410 | } |