[retro-gtk] retro-core: Fix adding disk indexes
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-core: Fix adding disk indexes
- Date: Tue, 3 Mar 2020 10:51:35 +0000 (UTC)
commit 12973e9cb1851c20ba2f6fe9403fd608f1fa04a1
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Mar 2 20:33:48 2020 +0500
retro-core: Fix adding disk indexes
Loop until an error happens, not while there are errors.
retro-runner/retro-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/retro-runner/retro-core.c b/retro-runner/retro-core.c
index 1c1c132..0470160 100644
--- a/retro-runner/retro-core.c
+++ b/retro-runner/retro-core.c
@@ -834,7 +834,7 @@ load_discs (RetroCore *self,
length = g_strv_length (self->media_uris);
while (get_disk_images_number (self, &tmp_error) < length &&
- (tmp_error != NULL)) {
+ (tmp_error == NULL)) {
add_disk_image_index (self, &tmp_error);
if (G_UNLIKELY (tmp_error != NULL)) {
g_propagate_error (error, tmp_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]