mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-22 02:52:54 -05:00
windows update fix only for win10 and later
This commit is contained in:
1 file changed
+7
-3
@@ -3176,16 +3176,20 @@ VOID NTAPI _wfp_applythread (
|
||||
|
||||
if (context->is_install)
|
||||
{
|
||||
is_wufixenabled = _r_config_getboolean (L"IsWUFixEnabled", TRUE);
|
||||
if (_r_sys_isosversiongreaterorequal (WINDOWS_10))
|
||||
{
|
||||
is_wufixenabled = _r_config_getboolean (L"IsWUFixEnabled", FALSE);
|
||||
|
||||
_app_wufixenable (context->hwnd, is_wufixenabled);
|
||||
_app_wufixenable (context->hwnd, is_wufixenabled);
|
||||
}
|
||||
|
||||
if (_wfp_initialize (engine_handle))
|
||||
_wfp_installfilters (engine_handle);
|
||||
}
|
||||
else
|
||||
{
|
||||
_app_wufixenable (context->hwnd, FALSE);
|
||||
if (_r_sys_isosversiongreaterorequal (WINDOWS_10))
|
||||
_app_wufixenable (context->hwnd, FALSE);
|
||||
|
||||
_wfp_destroyfilters (engine_handle);
|
||||
_wfp_uninitialize (engine_handle, TRUE);
|
||||
|
||||
Reference in new issue
Block a user