mirror of
https://github.com/brain-hackers/brainlilo
synced 2025-10-14 20:28:39 +09:00
Pass string literals to ShowMessage
This commit is contained in:
@@ -210,7 +210,7 @@ static bool doLinux()
|
||||
if (hUBoot == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
OutputDebugString(L"Could not open the bootloader");
|
||||
ShowMessage(std::string("Could not open the bootloader: ") + fn, std::string("BrainLILO"), MB_ICONWARNING);
|
||||
ShowMessage("Could not open the bootloader: " + fn, "BrainLILO", MB_ICONWARNING);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ static bool doLinux()
|
||||
if (!ReadFile(hUBoot, (void *)0xa0000000, FileSize, &wReadSize, NULL))
|
||||
{
|
||||
OutputDebugString(L"Could not read the bootloader");
|
||||
ShowMessage(std::string("Could not read the bootloader"), std::string("BrainLILO"), MB_ICONWARNING);
|
||||
ShowMessage("Could not read the bootloader", "BrainLILO", MB_ICONWARNING);
|
||||
return false;
|
||||
}
|
||||
OutputDebugString(L"BrainLILO: Bootloader copied! Closing file handle...");
|
||||
|
Reference in New Issue
Block a user