修复日志文件过大BUG;扫描完成后如果EndXfer失败,则设置为成功返回
This commit is contained in:
parent
66169e97b3
commit
d355b0467f
|
@ -3412,7 +3412,7 @@ void log(const wchar_t* info)
|
|||
{
|
||||
fclose(g_file_);
|
||||
remove(g_path_file_.c_str());
|
||||
g_file_ = fopen(g_path_file_.c_str(), "a+b");
|
||||
g_file_ = fopen(g_path_file_.c_str(), "wb");
|
||||
if (g_file_)
|
||||
{
|
||||
unsigned short bom = 0x0feff;
|
||||
|
|
|
@ -1626,6 +1626,8 @@ Result huagao_ds::call(const Identity& origin, DataGroup dg, Dat dat, Msg msg, v
|
|||
swprintf_s(buf, _countof(buf) - 1, L"[%x - %s]DSEntry(%s, %s, %s) = {%s, %s}\r\n", GetCurrentThreadId(), desc_state(state(), ss),
|
||||
desc_data_group(dg, dgs), desc_data(dat, dts), desc_msg(msg, ms), desc_return_code(rt, rcs), desc_condition_code((ConditionCode)(Status)rt, cs));
|
||||
load_sane_util::log_info(buf, 0);
|
||||
if (Msg::EndXfer == msg && scanner_status_ == SCANNER_STATUS_STOPPED) // PurvarScannerForHomework.exe
|
||||
rt = success();
|
||||
}
|
||||
|
||||
in_calling = calling;
|
||||
|
|
Loading…
Reference in New Issue