From: Ralf Habacker Date: Tue, 22 Dec 2009 09:07:37 +0000 (+0100) Subject: fixed install root when using msvc ide X-Git-Tag: dbus-1.3.1~120^2~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14c31804ad4e48c7dcf12e5f96198d5ee19b6a2f;p=thirdparty%2Fdbus.git fixed install root when using msvc ide --- 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; }