Ticket #7352: loadermain-nogoto.patch

File loadermain-nogoto.patch, 800 bytes (added by Finder, 13 years ago)
  • src/system/boot/loader/main.cpp

     
    11/*
    22 * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de.
     3 * Copyright 2011, Daniel Kasza, daniel@kasza.hu.
    34 * Distributed under the terms of the MIT License.
    45 */
    56
     
    7576
    7677        if (user_menu(&volume) < B_OK) {
    7778            // user requested to quit the loader
    78             goto out;
     79            volume = NULL;
    7980        }
    8081    }
    8182
     
    9798
    9899            if (user_menu(&volume) < B_OK || volume == NULL) {
    99100                // user requested to quit the loader
    100                 goto out;
     101                status = B_ERROR;
     102                break;
    101103            }
    102104        }
    103105
     
    139141        }
    140142    }
    141143
    142 out:
    143144    heap_release(args);
    144145    return 0;
    145146}