Fix
This commit is contained in:
parent
5eacf8007c
commit
79b0d59a13
|
@ -385,6 +385,7 @@ _FX BOOLEAN Gui_Init(HMODULE module)
|
|||
GUI_IMPORT___(GetDC)
|
||||
GUI_IMPORT___(GetDCEx)
|
||||
GUI_IMPORT___(GetWindowThreadProcessId);
|
||||
GUI_IMPORT___(SetThreadExecutionState);
|
||||
GUI_IMPORT___(SetThreadDesktop);
|
||||
GUI_IMPORT___(SwitchDesktop);
|
||||
GUI_IMPORT___(UserHandleGrantAccess);
|
||||
|
@ -1602,6 +1603,13 @@ _FX LRESULT Gui_WindowProcW(
|
|||
if (uMsg == WM_CREATE)
|
||||
Gui_ProtectScreen(hWnd);
|
||||
|
||||
if (uMsg == WM_QUERYENDSESSION)
|
||||
{
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE)) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
wndproc = __sys_GetPropW(hWnd, (LPCWSTR)Gui_WindowProcOldW_Atom);
|
||||
if (DLL_IMAGE_OFFICE_EXCEL == Dll_ImageType) {
|
||||
|
||||
|
|
|
@ -1553,8 +1553,8 @@ _FX BOOL Gui_PrintWindow(
|
|||
//---------------------------------------------------------------------------
|
||||
|
||||
_FX BOOL Gui_ShutdownBlockReasonCreate(
|
||||
[in] HWND hWnd,
|
||||
[in] LPCWSTR pwszReason
|
||||
HWND hWnd,
|
||||
LPCWSTR pwszReason
|
||||
) {
|
||||
if (SbieApi_QueryConfBool(NULL, "BlockInterferePower", FALSE)) {
|
||||
SetLastError(ERROR_ACCESS_DENIED);
|
||||
|
|
Loading…
Reference in New Issue