From 14c31804ad4e48c7dcf12e5f96198d5ee19b6a2f Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 22 Dec 2009 10:07:37 +0100 Subject: [PATCH] fixed install root when using msvc ide --- dbus/dbus-sysdeps-win.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 2a8100ab0..c323820b8 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -3208,6 +3208,8 @@ _dbus_get_install_root(char *prefix, int len) //the Latin "bin", but that is not likely I think... if (lastSlash - prefix > 3 && strncmp(lastSlash - 4, "\\bin", 4) == 0) lastSlash[-3] = 0; + else if (lastSlash - prefix > 3 && (strncmp(lastSlash - 10, "\\bin\\Debug", 10) == 0 || strncmp(lastSlash - 10, "\\bin\\Release", 10) == 0)) + lastSlash[-9] = 0; return TRUE; } -- 2.47.3