tools/dbus-launch-win.c: fix typo (cherry picked from commit 81a7a0e9309e5929857fdf44...
[platform/upstream/dbus.git] / tools / dbus-launch-win.c
index cc936a6..9a792c9 100644 (file)
@@ -68,11 +68,12 @@ int main(int argc,char **argv)
       showConsole = 1; 
 #endif
   GetModuleFileName(NULL,dbusDaemonPath,sizeof(dbusDaemonPath));
-  /* check for debug version */
-  if (strstr(dbusDaemonPath,"dbus-launchd.exe"))
+
+#ifdef _DEBUG
       daemon_name = "dbus-daemond.exe";
-  else
+#else
       daemon_name = "dbus-daemon.exe";
+#endif
   if ((p = strrchr(dbusDaemonPath,'\\'))) 
     {
       *(p+1)= '\0';
@@ -111,7 +112,7 @@ int main(int argc,char **argv)
   if (result == 0) 
     {
       if (verbose)
-          fprintf(stderr,"could not start dbus-daemon error=%d",GetLastError());
+          fprintf(stderr, "Could not start dbus-daemon error=%d",GetLastError());
       return 4;
     }