mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-06-14 03:16:38 +10:00
Fixed typo [skip ci]
This commit is contained in:
@@ -768,7 +768,7 @@ IUpdateSessionOrchestrator : public IUnknown
|
|||||||
STDMETHOD(CreateUxUpdateManager)(IUnknown**);
|
STDMETHOD(CreateUxUpdateManager)(IUnknown**);
|
||||||
};
|
};
|
||||||
|
|
||||||
DWORD WindowsUpdateAdjustShutdwonFlags(DWORD flags)
|
DWORD WindowsUpdateAdjustShutdownFlags(DWORD flags)
|
||||||
{
|
{
|
||||||
DWORD retval = flags;
|
DWORD retval = flags;
|
||||||
|
|
||||||
@@ -882,7 +882,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand)
|
|||||||
{
|
{
|
||||||
if (SetShutdownPrivileges())
|
if (SetShutdownPrivileges())
|
||||||
{
|
{
|
||||||
flags = WindowsUpdateAdjustShutdwonFlags(flags);
|
flags = WindowsUpdateAdjustShutdownFlags(flags);
|
||||||
InitiateShutdown(NULL, NULL, 0, flags, SHTDN_REASON_FLAG_PLANNED);
|
InitiateShutdown(NULL, NULL, 0, flags, SHTDN_REASON_FLAG_PLANNED);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -891,7 +891,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand)
|
|||||||
// lets try silent elevate via SystemSettingsAdminFlows (for limited admin users only)
|
// lets try silent elevate via SystemSettingsAdminFlows (for limited admin users only)
|
||||||
if (GetCurrentTokenElevationType() == TokenElevationTypeLimited)
|
if (GetCurrentTokenElevationType() == TokenElevationTypeLimited)
|
||||||
{
|
{
|
||||||
flags = WindowsUpdateAdjustShutdwonFlags(flags);
|
flags = WindowsUpdateAdjustShutdownFlags(flags);
|
||||||
|
|
||||||
wchar_t cmdLine[32]{};
|
wchar_t cmdLine[32]{};
|
||||||
Sprintf(cmdLine, _countof(cmdLine), L"Shutdown %d %d", flags, SHTDN_REASON_FLAG_PLANNED);
|
Sprintf(cmdLine, _countof(cmdLine), L"Shutdown %d %d", flags, SHTDN_REASON_FLAG_PLANNED);
|
||||||
|
|||||||
Reference in New Issue
Block a user