[PATCH] twain_32: Add missing debugstr_a.
Andrey Gusev
andrey.goosev at gmail.com
Mon Aug 19 12:36:18 CDT 2019
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
dlls/twain_32/dsm_ctrl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/twain_32/dsm_ctrl.c b/dlls/twain_32/dsm_ctrl.c
index 3f7ead43f1..45f227e180 100644
--- a/dlls/twain_32/dsm_ctrl.c
+++ b/dlls/twain_32/dsm_ctrl.c
@@ -57,12 +57,12 @@ twain_add_onedriver(const char *dsname) {
hmod = LoadLibraryA(dsname);
if (!hmod) {
- ERR("Failed to load TWAIN Source %s\n", dsname);
+ ERR("Failed to load TWAIN Source %s\n", debugstr_a(dsname));
return;
}
dsEntry = (DSENTRYPROC)GetProcAddress(hmod, "DS_Entry");
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;
}
/* 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);
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;
HeapFree(GetProcessHeap(), 0, newSource);
return TWRC_FAILURE;
--
2.21.0
More information about the wine-devel
mailing list