From 1c95f17460d2064cf25003c422d46e8e46666904 Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Thu, 29 Dec 2022 10:24:53 +0100 Subject: [PATCH] Fixed typo [skip ci] --- Src/StartMenu/StartMenuDLL/MenuCommands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/StartMenu/StartMenuDLL/MenuCommands.cpp b/Src/StartMenu/StartMenuDLL/MenuCommands.cpp index b20908f..b4721ab 100644 --- a/Src/StartMenu/StartMenuDLL/MenuCommands.cpp +++ b/Src/StartMenu/StartMenuDLL/MenuCommands.cpp @@ -768,7 +768,7 @@ IUpdateSessionOrchestrator : public IUnknown STDMETHOD(CreateUxUpdateManager)(IUnknown**); }; -DWORD WindowsUpdateAdjustShutdwonFlags(DWORD flags) +DWORD WindowsUpdateAdjustShutdownFlags(DWORD flags) { DWORD retval = flags; @@ -882,7 +882,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand) { if (SetShutdownPrivileges()) { - flags = WindowsUpdateAdjustShutdwonFlags(flags); + flags = WindowsUpdateAdjustShutdownFlags(flags); InitiateShutdown(NULL, NULL, 0, flags, SHTDN_REASON_FLAG_PLANNED); } else @@ -891,7 +891,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand) // lets try silent elevate via SystemSettingsAdminFlows (for limited admin users only) if (GetCurrentTokenElevationType() == TokenElevationTypeLimited) { - flags = WindowsUpdateAdjustShutdwonFlags(flags); + flags = WindowsUpdateAdjustShutdownFlags(flags); wchar_t cmdLine[32]{}; Sprintf(cmdLine, _countof(cmdLine), L"Shutdown %d %d", flags, SHTDN_REASON_FLAG_PLANNED);