aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-10-25 03:44:24 +0000
committerdos-reis <gdr@axiomatics.org>2009-10-25 03:44:24 +0000
commita6dc2413d2c01f5b375e63aa6a313e541a2df2cd (patch)
tree0efc5b18f1bc210386612023f3794ae9b6b66a70
parentbd7d826e17d7719188598a9149403d544d1c45bc (diff)
downloadopen-axiom-a6dc2413d2c01f5b375e63aa6a313e541a2df2cd.tar.gz
-rw-r--r--src/lib/cfuns-c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c
index 60cb4e3a..97d85d15 100644
--- a/src/lib/cfuns-c.c
+++ b/src/lib/cfuns-c.c
@@ -730,7 +730,7 @@ OPENAXIOM_EXPORT int
oa_spawn(openaxiom_process* proc, openaxiom_spawn_flags flags)
{
#ifdef __WIN32__
- cons char* path = NULL;
+ const char* path = NULL;
char* cmd_line = NULL;
int curpos = strlen(proc->argv[0]);
int cmd_line_length = curpos;
@@ -751,7 +751,7 @@ oa_spawn(openaxiom_process* proc, openaxiom_spawn_flags flags)
}
cmd_line[curpos] = '\0';
- if (flags & openaxiom_spawn_search_path == 0)
+ if ((flags & openaxiom_spawn_search_path) == 0)
path = proc->argv[0];
if(CreateProcess(/* lpApplicationName */ path,
@@ -768,7 +768,7 @@ oa_spawn(openaxiom_process* proc, openaxiom_spawn_flags flags)
return proc->id = -1;
}
proc->id = proc_info.dwProcessId;
- if (flags & openaxiom_spawn_replace == 0)
+ if ((flags & openaxiom_spawn_replace) == 0)
return proc->id;
WaitForSingleObject(proc_info.hProcess, INFINITE);
GetExitCodeProcess(proc_info.hProcess, &status);