Change to assume executable extension when none is given (except on wince)
authorFridrich Štrba <fridrich.strba@bluewin.ch>
Wed, 28 Apr 2010 13:09:14 +0000 (15:09 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 29 Apr 2010 09:40:09 +0000 (11:40 +0200)
dbus/dbus-spawn-win.c

index 29be65a..b2cc4e6 100644 (file)
@@ -533,7 +533,11 @@ spawn_program (char* name, char** argv, char** envp)
 
   memset (&si, 0, sizeof (si));
   si.cb = sizeof (si);
+#ifdef DBUS_WINCE
   result = CreateProcessA (name, arg_string, NULL, NULL, FALSE, 0,
+#else
+  result = CreateProcessA (NULL, arg_string, NULL, NULL, FALSE, 0,
+#endif
                           (LPVOID)env_string, NULL, &si, &pi);
   free (arg_string);
   if (env_string)