From dc1bb3a88d3c75a1dc73d103c81a9e7725e3b94e Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Tue, 19 Apr 2022 03:21:52 +0900 Subject: [PATCH] Pass string literals to ShowMessage --- BrainLILODrv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BrainLILODrv.cpp b/BrainLILODrv.cpp index e8ac0fc..1265903 100644 --- a/BrainLILODrv.cpp +++ b/BrainLILODrv.cpp @@ -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...");