From 509d9025ad1cbc88619ee3c602d5cd7b1b4a2541 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 18 Jul 2012 18:45:10 +0100 Subject: Imported Upstream version 1.6.4 --- tools/Makefile.in | 2 +- tools/dbus-launch-win.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/Makefile.in b/tools/Makefile.in index 75b963d9..b8e779f6 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.11.5 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, diff --git a/tools/dbus-launch-win.c b/tools/dbus-launch-win.c index ea4bf0dd..215fac3f 100644 --- a/tools/dbus-launch-win.c +++ b/tools/dbus-launch-win.c @@ -130,9 +130,10 @@ main (int argc, char **argv) fprintf (stderr, "%ls %ls\n", dbusDaemonPath, command); #else command[0] = L'\0'; - /* Windows CE has a different interpretation of cmdline: Start with argv[1]. */ - wcscpy_s (command, sizeof (command), dbusDaemonPath); - wcscat_s (command, sizeof (command), L" --session"); + /* Windows cmdline starts with path, which can contain spaces. */ + wcscpy_s (command, sizeof (command), L"\""); + wcscat_s (command, sizeof (command), dbusDaemonPath); + wcscat_s (command, sizeof (command), L"\" --session"); if (verbose) fprintf (stderr, "%ls\n", command); #endif -- cgit v1.2.3