twain_32: Add missing debugstr_a.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrey Gusev 2019-08-19 20:36:18 +03:00 committed by Alexandre Julliard
parent 904c0dc050
commit 5ea3a044b8
1 changed files with 3 additions and 3 deletions

View File

@ -57,12 +57,12 @@ twain_add_onedriver(const char *dsname) {
hmod = LoadLibraryA(dsname); hmod = LoadLibraryA(dsname);
if (!hmod) { if (!hmod) {
ERR("Failed to load TWAIN Source %s\n", dsname); ERR("Failed to load TWAIN Source %s\n", debugstr_a(dsname));
return; return;
} }
dsEntry = (DSENTRYPROC)GetProcAddress(hmod, "DS_Entry"); dsEntry = (DSENTRYPROC)GetProcAddress(hmod, "DS_Entry");
if (!dsEntry) { if (!dsEntry) {
ERR("Failed to find DS_Entry() in TWAIN DS %s\n", dsname); ERR("Failed to find DS_Entry() in TWAIN DS %s\n", debugstr_a(dsname));
return; return;
} }
/* Loop to do multiple detects, mostly for sane.ds and gphoto2.ds */ /* Loop to do multiple detects, mostly for sane.ds and gphoto2.ds */
@ -317,7 +317,7 @@ TW_UINT16 TWAIN_OpenDS (pTW_IDENTITY pOrigin, TW_MEMREF pData)
} }
hmod = LoadLibraryA(devices[i].modname); hmod = LoadLibraryA(devices[i].modname);
if (!hmod) { if (!hmod) {
ERR("Failed to load TWAIN Source %s\n", modname); ERR("Failed to load TWAIN Source %s\n", debugstr_a(modname));
DSM_twCC = TWCC_OPERATIONERROR; DSM_twCC = TWCC_OPERATIONERROR;
HeapFree(GetProcessHeap(), 0, newSource); HeapFree(GetProcessHeap(), 0, newSource);
return TWRC_FAILURE; return TWRC_FAILURE;