diff options
author | Michael Chicoine <mc2739@gmail.com> | 2011-10-03 23:55:26 +0000 |
---|---|---|
committer | Michael Chicoine <mc2739@gmail.com> | 2011-10-03 23:55:26 +0000 |
commit | 1f5c5f2a8849f7983d0ac90667aa6745e9483570 (patch) | |
tree | c04b1a1112e245810065ac9cd028ef44adaf22ec /uisimulator/common/io.c | |
parent | 81ff054d804e7faa8ddb31227a857801116722ae (diff) | |
download | rockbox-1f5c5f2a8849f7983d0ac90667aa6745e9483570.tar.gz rockbox-1f5c5f2a8849f7983d0ac90667aa6745e9483570.zip |
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
Diffstat (limited to 'uisimulator/common/io.c')
-rw-r--r-- | uisimulator/common/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index f7a61c037d..79bc59806d 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -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); if (free) *free = vfs.f_bfree / 2 * (vfs.f_frsize / 512); - } else + } #endif - { + else { if (size) *size = 0; if (free) |