Fixed typo [skip ci]

This commit is contained in:
ge0rdi
2022-12-29 10:24:53 +01:00
parent 674a486c7f
commit 1c95f17460

View File

@@ -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);