diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/rb-loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/rb-loader.c b/firmware/common/rb-loader.c index e3fc90342c..430ed6ec7b 100644 --- a/firmware/common/rb-loader.c +++ b/firmware/common/rb-loader.c | |||
@@ -106,7 +106,7 @@ int load_firmware(unsigned char* buf, const char* firmware, int buffer_size) | |||
106 | * 0 is the default boot volume, it is not checked here | 106 | * 0 is the default boot volume, it is not checked here |
107 | * if found <volume>/rockbox_main.<playername> and firmware | 107 | * if found <volume>/rockbox_main.<playername> and firmware |
108 | * has a bootdata region this firmware will be loaded */ | 108 | * has a bootdata region this firmware will be loaded */ |
109 | for (unsigned int i = NUM_VOLUMES - 1; i > 0 && ret < 0; i--) | 109 | for (int i = NUM_VOLUMES - 1; i >= MULTIBOOT_MIN_VOLUME && ret < 0; i--) |
110 | { | 110 | { |
111 | if (get_redirect_dir(filename, sizeof(filename), i, | 111 | if (get_redirect_dir(filename, sizeof(filename), i, |
112 | BOOTDIR, firmware) > 0) | 112 | BOOTDIR, firmware) > 0) |