Fix string formatting warnings.
This commit is contained in:
parent
fb7a8886f1
commit
e4735bcf7a
|
@ -61,7 +61,7 @@ bool CDImageMemory::CopyImage(CDImage* image, ProgressCallback* progress)
|
||||||
static_cast<u8*>(std::malloc(static_cast<size_t>(RAW_SECTOR_SIZE) * static_cast<size_t>(m_memory_sectors)));
|
static_cast<u8*>(std::malloc(static_cast<size_t>(RAW_SECTOR_SIZE) * static_cast<size_t>(m_memory_sectors)));
|
||||||
if (!m_memory)
|
if (!m_memory)
|
||||||
{
|
{
|
||||||
progress->DisplayFormattedModalError("Failed to allocate memory for %llu sectors", m_memory_sectors);
|
progress->DisplayFormattedModalError("Failed to allocate memory for %u sectors", m_memory_sectors);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||||
|
|
||||||
if (!AcquireHostDisplay())
|
if (!AcquireHostDisplay())
|
||||||
{
|
{
|
||||||
ReportFormattedError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
|
ReportError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
|
||||||
OnSystemDestroyed();
|
OnSystemDestroyed();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||||
{
|
{
|
||||||
if (!System::IsStartupCancelled())
|
if (!System::IsStartupCancelled())
|
||||||
{
|
{
|
||||||
ReportFormattedError(
|
ReportError(
|
||||||
g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information."));
|
g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue