mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 15:35:45 -04:00
System: Gracefully handle memory allocaion failure
This commit is contained in:
@ -648,18 +648,20 @@ int main(int argc, char* argv[])
|
||||
|
||||
if (!autoboot || autoboot->filename.empty())
|
||||
{
|
||||
Log_ErrorPrintf("No boot path specified.");
|
||||
Log_ErrorPrint("No boot path specified.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
System::Internal::ProcessStartup();
|
||||
if (!System::Internal::ProcessStartup())
|
||||
return EXIT_FAILURE;
|
||||
|
||||
RegTestHost::HookSignals();
|
||||
|
||||
int result = -1;
|
||||
Log_InfoPrintf("Trying to boot '%s'...", autoboot->filename.c_str());
|
||||
if (!System::BootSystem(std::move(autoboot.value())))
|
||||
{
|
||||
Log_ErrorPrintf("Failed to boot system.");
|
||||
Log_ErrorPrint("Failed to boot system.");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user