微调脚本编译不支持临时变量

This commit is contained in:
yangjiaxuan 2023-06-15 11:47:00 +08:00
parent 4d842a847f
commit 54c2da5e38
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@

#include "scanner.h" #include "scanner.h"
@ -2997,8 +2997,8 @@ COM_API_IMPLEMENT(scanner, int, set_value(int sn, void* val))
void* w = val; void* w = val;
if (org_id == 0x102c) if (org_id == 0x102c)
{ {
const char* str = sane_opt_trans::language_from_twain(*(int*)val); // const char* str = sane_opt_trans::language_from_twain(*(int*)val);
strv = str; strv = sane_opt_trans::language_from_twain(*(int*)val);
w = &strv; w = &strv;
} }