Skip to content

Commit 1c95f17

Browse files
committed
Fixed typo [skip ci]
1 parent 674a486 commit 1c95f17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Src/StartMenu/StartMenuDLL/MenuCommands.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ IUpdateSessionOrchestrator : public IUnknown
768768
STDMETHOD(CreateUxUpdateManager)(IUnknown**);
769769
};
770770

771-
DWORD WindowsUpdateAdjustShutdwonFlags(DWORD flags)
771+
DWORD WindowsUpdateAdjustShutdownFlags(DWORD flags)
772772
{
773773
DWORD retval = flags;
774774

@@ -882,7 +882,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand)
882882
{
883883
if (SetShutdownPrivileges())
884884
{
885-
flags = WindowsUpdateAdjustShutdwonFlags(flags);
885+
flags = WindowsUpdateAdjustShutdownFlags(flags);
886886
InitiateShutdown(NULL, NULL, 0, flags, SHTDN_REASON_FLAG_PLANNED);
887887
}
888888
else
@@ -891,7 +891,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand)
891891
// lets try silent elevate via SystemSettingsAdminFlows (for limited admin users only)
892892
if (GetCurrentTokenElevationType() == TokenElevationTypeLimited)
893893
{
894-
flags = WindowsUpdateAdjustShutdwonFlags(flags);
894+
flags = WindowsUpdateAdjustShutdownFlags(flags);
895895

896896
wchar_t cmdLine[32]{};
897897
Sprintf(cmdLine, _countof(cmdLine), L"Shutdown %d %d", flags, SHTDN_REASON_FLAG_PLANNED);

0 commit comments

Comments
 (0)