From 2482df9febda0b336bdd8d3805a29e2fe9e29702 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Tue, 25 Jul 2023 09:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4=E4=B8=8A?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twain/twain/huagaods.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index 9c3584b..33c10a1 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -3664,14 +3664,14 @@ std::wstring huagao_ds::get_config_value(const wchar_t* sec, const wchar_t* key) return v; } -DWORD huagao_ds::get_config_number(const wchar_t* sec, const wchar_t* key) +DWORD huagao_ds::get_config_number(const wchar_t* sec, const wchar_t* key, DWORD def, DWORD empty) { std::wstring cfg_f(get_config_file()); if (cfg_f.empty()) - return 0; + return empty; else - return GetPrivateProfileIntW(sec, key, 0, get_config_file().c_str()); + return GetPrivateProfileIntW(sec, key, def, get_config_file().c_str()); } int huagao_ds::handle_scanner_event(int ev, bool from_event_proc) {