补充提交上一次更改

This commit is contained in:
gb 2023-07-25 09:20:44 +08:00
parent ccdd41e0de
commit 2482df9feb
1 changed files with 3 additions and 3 deletions

View File

@ -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)
{