Andrey Gusev : twain_32: Add missing debugstr_a.

Alexandre Julliard julliard at winehq.org
Mon Aug 19 15:35:12 CDT 2019


Module: wine
Branch: master
Commit: 5ea3a044b83c4cd55a3c647f5e80511a85b9f536
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5ea3a044b83c4cd55a3c647f5e80511a85b9f536

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Mon Aug 19 20:36:18 2019 +0300

twain_32: Add missing debugstr_a.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 3f7ead4..45f227e 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;




More information about the wine-cvs mailing list