Obey the naming convention

This commit is contained in:
Takumi Sueda 2022-04-19 03:24:54 +09:00
parent dc1bb3a88d
commit d1cb75e2f4

View File

@ -175,7 +175,7 @@ static void ShowMessage(std::string msg, std::string title, UINT typ)
static bool doLinux() static bool doLinux()
{ {
wchar_t wcbuf[256] = {}; wchar_t wcBuf[256] = {};
std::ifstream iVersion; std::ifstream iVersion;
std::string line, model; std::string line, model;
@ -205,8 +205,8 @@ static bool doLinux()
OutputDebugString(L"BrainLILO: Opening Bootloader file..."); OutputDebugString(L"BrainLILO: Opening Bootloader file...");
fn += model + ".bin"; fn += model + ".bin";
mbstowcs(wcbuf, fn.c_str(), fn.length()); mbstowcs(wcBuf, fn.c_str(), fn.length());
hUBoot = CreateFile(wcbuf, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); hUBoot = CreateFile(wcBuf, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (hUBoot == INVALID_HANDLE_VALUE) if (hUBoot == INVALID_HANDLE_VALUE)
{ {
OutputDebugString(L"Could not open the bootloader"); OutputDebugString(L"Could not open the bootloader");
@ -214,12 +214,12 @@ static bool doLinux()
return false; return false;
} }
swprintf(wcbuf, L"BrainLILO: Bootloader file handle 0x%08x\n", (int)(hUBoot)); swprintf(wcBuf, L"BrainLILO: Bootloader file handle 0x%08x\n", (int)(hUBoot));
OutputDebugString(wcbuf); OutputDebugString(wcBuf);
FileSize = GetFileSize(hUBoot, NULL); FileSize = GetFileSize(hUBoot, NULL);
swprintf(wcbuf, L"BrainLILO: Bootloader file size %d Byte\n", FileSize); swprintf(wcBuf, L"BrainLILO: Bootloader file size %d Byte\n", FileSize);
OutputDebugString(wcbuf); OutputDebugString(wcBuf);
OutputDebugString(L"BrainLILO: Preloading bootloader to 0xa0000000..."); OutputDebugString(L"BrainLILO: Preloading bootloader to 0xa0000000...");
if (!ReadFile(hUBoot, (void *)0xa0000000, FileSize, &wReadSize, NULL)) if (!ReadFile(hUBoot, (void *)0xa0000000, FileSize, &wReadSize, NULL))