From 4ce22545e132bb49f5b45e147245fb1a6c4a0752 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Mon, 13 Feb 2023 17:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=87=BD=E6=95=B0=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E5=92=8Cpython=20=E5=86=85=E9=83=A8=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=90=8D=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- device/device.def | 4 ++-- sane/scanner.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/device/device.def b/device/device.def index a3efd6a..08c38d1 100644 --- a/device/device.def +++ b/device/device.def @@ -20,5 +20,5 @@ EXPORTS hg_scanner_err_description hg_scanner_log_is_enable hg_scanner_log - get_current_time - get_current_time_w \ No newline at end of file + hg_get_current_time + hg_get_current_time_w \ No newline at end of file diff --git a/sane/scanner.cpp b/sane/scanner.cpp index 1bb0eb6..414d9fb 100644 --- a/sane/scanner.cpp +++ b/sane/scanner.cpp @@ -2950,7 +2950,7 @@ void init_log(void) wchar_t ts[128] = { 0 }, now[40] = { 0 }; - get_current_time_w(now); + hg_get_current_time_w(now); swprintf_s(ts, _countof(ts) - 1, L"==================%s==================\r\n", now); fwrite(ts, 2, lstrlenW(ts), g_file_); } @@ -2979,7 +2979,7 @@ void log(const wchar_t* info) unsigned short bom = 0x0feff; wchar_t ts[128] = { 0 }, now[40] = { 0 }; - get_current_time_w(now); + hg_get_current_time_w(now); swprintf_s(ts, _countof(ts) - 1, L"==================%s (Truncated when size > 10MB) ==================\r\n", now); fwrite(&bom, sizeof(bom), 1, g_file_); fwrite(ts, 2, lstrlenW(ts), g_file_);