mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
FAT editing: fix creating files that are multiple of cluster size
Closes #568
This commit is contained in:
parent
493869e47a
commit
65f6a07fae
2 changed files with 8 additions and 1 deletions
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -1,3 +1,10 @@
|
|||
rpi-imager (1.7.4.1) unstable; urgency=medium
|
||||
|
||||
* Advanced settings: fix creating files on FAT partition that are
|
||||
an exact multiple of cluster size.
|
||||
|
||||
-- Floris Bos <bos@je-eigen-domein.nl> Wed, 22 Mar 2023 16:15:00 +0100
|
||||
|
||||
rpi-imager (1.7.4) unstable; urgency=medium
|
||||
|
||||
* Advanced settings: fix escaping single quotes
|
||||
|
|
|
@ -320,7 +320,7 @@ void DeviceWrapperFatPartition::writeFile(const QString &filename, const QByteAr
|
|||
break;
|
||||
}
|
||||
|
||||
if (clustersNeeded)
|
||||
if (clustersNeeded && contents.length() % _bytesPerCluster)
|
||||
{
|
||||
/* Zero out last cluster tip */
|
||||
uint32_t extraBytesAtEndOfCluster = _bytesPerCluster - (contents.length() % _bytesPerCluster);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue