Ticket #7352: loadermain-nogoto.patch
File loadermain-nogoto.patch, 800 bytes (added by , 13 years ago) |
---|
-
src/system/boot/loader/main.cpp
1 1 /* 2 2 * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. 3 * Copyright 2011, Daniel Kasza, daniel@kasza.hu. 3 4 * Distributed under the terms of the MIT License. 4 5 */ 5 6 … … 75 76 76 77 if (user_menu(&volume) < B_OK) { 77 78 // user requested to quit the loader 78 goto out;79 volume = NULL; 79 80 } 80 81 } 81 82 … … 97 98 98 99 if (user_menu(&volume) < B_OK || volume == NULL) { 99 100 // user requested to quit the loader 100 goto out; 101 status = B_ERROR; 102 break; 101 103 } 102 104 } 103 105 … … 139 141 } 140 142 } 141 143 142 out:143 144 heap_release(args); 144 145 return 0; 145 146 }