From dee84344a7fe58b1632c3e2e7dfc2e63fdea452f Mon Sep 17 00:00:00 2001 From: henrypp Date: Wed, 31 Aug 2022 14:31:42 +0600 Subject: [PATCH] windows update fix only for win10 and later --- src/wfp.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wfp.c b/src/wfp.c index 9cae8471..7389893d 100644 --- a/src/wfp.c +++ b/src/wfp.c @@ -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);