From e2c2337a61b3e1a005f23f61989994fcb65e2c1a Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Tue, 13 Aug 2024 20:59:38 +0200 Subject: [PATCH] Make parameter names for declarations and implementations consistent - WinUpdater --- Source/Core/WinUpdater/Main.cpp | 8 ++++---- Source/Core/WinUpdater/WinUI.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/WinUpdater/Main.cpp b/Source/Core/WinUpdater/Main.cpp index bcf814c78d..907693bab4 100644 --- a/Source/Core/WinUpdater/Main.cpp +++ b/Source/Core/WinUpdater/Main.cpp @@ -17,9 +17,9 @@ // 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, 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 - ShellExecuteW(nullptr, L"runas", path->c_str(), pCmdLine, nullptr, SW_SHOW); + ShellExecuteW(nullptr, L"runas", path->c_str(), lpCmdLine, nullptr, SW_SHOW); return 0; } - std::vector args = Common::CommandLineToUtf8Argv(pCmdLine); + std::vector args = Common::CommandLineToUtf8Argv(lpCmdLine); return RunUpdater(args) ? 0 : 1; } diff --git a/Source/Core/WinUpdater/WinUI.cpp b/Source/Core/WinUpdater/WinUI.cpp index 696ac55b0a..8387400e80 100644 --- a/Source/Core/WinUpdater/WinUI.cpp +++ b/Source/Core/WinUpdater/WinUI.cpp @@ -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)