Skip to content

Commit 1849370

Browse files
authored
Merge pull request #4652 from geky/fat-fix-unaligned-ioctl
fatfs: Fix unaligned access in disk_ioctl
2 parents 5a5d159 + a9f5d88 commit 1849370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: features/filesystem/fat/FATFileSystem.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
219219
if (_ffs[pdrv] == NULL) {
220220
return RES_NOTRDY;
221221
} else {
222-
DWORD size = _ffs[pdrv]->get_erase_size();
223-
*((DWORD*)buff) = size;
222+
WORD size = _ffs[pdrv]->get_erase_size();
223+
*((WORD*)buff) = size;
224224
return RES_OK;
225225
}
226226
case GET_BLOCK_SIZE:

0 commit comments

Comments
 (0)