From f65ad433287474501661164d1b4d7e05e1f03e8d Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 4 Oct 2015 10:26:20 +0200 Subject: [PATCH] Make sure that dbus library always uses the ansi version of GetModuleFileName(). Otherwise the multibyte character search functions called in many locations do not work. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83539 --- dbus/dbus-internals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index 30a5fa7..13b3338 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -302,7 +302,7 @@ _dbus_verbose_init (void) #ifdef DBUS_USE_OUTPUT_DEBUG_STRING { char *last_period, *last_slash; - GetModuleFileName(0,module_name,sizeof(module_name)-1); + GetModuleFileNameA(0,module_name,sizeof(module_name)-1); last_period = _mbsrchr(module_name,'.'); if (last_period) *last_period ='\0'; -- 1.8.4.5