From ae18d9d81f27024a09d0d91b0feea3cb288808e9 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Mon, 30 Jan 2023 09:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8C=89=E9=92=AE=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E8=B7=9F=E9=9A=8FBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sane/DlgPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sane/DlgPage.cpp b/sane/DlgPage.cpp index 06cca17..b0b6895 100644 --- a/sane/DlgPage.cpp +++ b/sane/DlgPage.cpp @@ -1038,7 +1038,7 @@ void dlg_page::set_ctrl_value(HWND ctrl, SANE_Value_Type type, void* val, bool o { if (type == SANE_TYPE_BOOL) { - DWORD id = GetWindowLong(ctrl, GWL_ID); + DWORD id = GetWindowLong(ctrl, GWL_ID) - dlg_page::dyn_id_base; HWND host = (HWND)GetPropW(ctrl, dlg_page::property_host.c_str()); if (IsWindow(host) && (id == id_custom_area_ || id == id_custom_gamma_))