Make parameter names for declarations and implementations consistent - WinUpdater

This commit is contained in:
Dr. Dystopia 2024-08-13 20:59:38 +02:00
parent 4ff5ff2772
commit e2c2337a61
2 changed files with 6 additions and 6 deletions

View File

@ -17,9 +17,9 @@
// Refer to docs/autoupdate_overview.md for a detailed overview of the autoupdate process // Refer to docs/autoupdate_overview.md for a detailed overview of the autoupdate process
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nShowCmd)
{ {
if (lstrlenW(pCmdLine) == 0) if (lstrlenW(lpCmdLine) == 0)
{ {
MessageBoxW(nullptr, MessageBoxW(nullptr,
L"This updater is not meant to be launched directly. Configure Auto-Update in " L"This updater is not meant to be launched directly. Configure Auto-Update in "
@ -58,11 +58,11 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
} }
// Relaunch the updater as administrator // Relaunch the updater as administrator
ShellExecuteW(nullptr, L"runas", path->c_str(), pCmdLine, nullptr, SW_SHOW); ShellExecuteW(nullptr, L"runas", path->c_str(), lpCmdLine, nullptr, SW_SHOW);
return 0; return 0;
} }
std::vector<std::string> args = Common::CommandLineToUtf8Argv(pCmdLine); std::vector<std::string> args = Common::CommandLineToUtf8Argv(lpCmdLine);
return RunUpdater(args) ? 0 : 1; return RunUpdater(args) ? 0 : 1;
} }

View File

@ -285,9 +285,9 @@ void LaunchApplication(std::string path)
} }
} }
void Sleep(int sleep) void Sleep(int seconds)
{ {
::Sleep(sleep * 1000); ::Sleep(seconds * 1000);
} }
void WaitForPID(u32 pid) void WaitForPID(u32 pid)