Build a default command-line if the one we received is an empty
string.
diff --git a/scheduler/process.c b/scheduler/process.c
index 18a8202..f89fb0d 100644
--- a/scheduler/process.c
+++ b/scheduler/process.c
@@ -1078,7 +1078,7 @@
/* use the unmodified app name as file name */
lstrcpynA( buffer, appname, buflen );
*handle = open_exe_file( buffer );
- if (!(ret = cmdline))
+ if (!(ret = cmdline) || !cmdline[0])
{
/* no command-line, create one */
if ((ret = HeapAlloc( GetProcessHeap(), 0, strlen(appname) + 3 )))