Fix w32 cross-compiled sim showing 0KB for disk size and disk free

in System -> Rockbox Info


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30706 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Chicoine 2011-10-03 23:55:26 +00:00
parent 81ff054d80
commit 1f5c5f2a88

View file

@ -563,9 +563,9 @@ void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free)
*size = vfs.f_blocks / 2 * (vfs.f_frsize / 512); *size = vfs.f_blocks / 2 * (vfs.f_frsize / 512);
if (free) if (free)
*free = vfs.f_bfree / 2 * (vfs.f_frsize / 512); *free = vfs.f_bfree / 2 * (vfs.f_frsize / 512);
} else }
#endif #endif
{ else {
if (size) if (size)
*size = 0; *size = 0;
if (free) if (free)