diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-03-31 14:51:51 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-03-31 14:51:51 +0000 |
commit | f2e4718bf42f507684949ebf484aa94df42abbbe (patch) | |
tree | 7f6266a7e45144490b18eb6c71a953e8e0196eb9 /tools/dbus-launch-win.c | |
parent | a0f3687d650c8c73134f318820f4978a4ff3e9e2 (diff) | |
parent | 6528b0973bb09b0b407a5e169fdcc519087cc58d (diff) | |
download | dbus-baserock/v1.8.0.tar.gz |
Merge tag 'dbus-1.8.0' into baserock/pedroalvarez/genivibaserock/v1.8.0
dbus-1.8.0
Diffstat (limited to 'tools/dbus-launch-win.c')
-rw-r--r-- | tools/dbus-launch-win.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/dbus-launch-win.c b/tools/dbus-launch-win.c index ea4bf0dd..d899010a 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 @@ -158,8 +159,8 @@ main (int argc, char **argv) if (result == 0) { if (verbose) - fprintf (stderr, "Could not start " DBUS_DAEMON_NAME ". error=%d\n", - GetLastError ()); + fprintf (stderr, "Could not start " DBUS_DAEMON_NAME ". error=%u\n", + (unsigned)GetLastError ()); return 4; } |