Skip to content

Commit 1cff66f

Browse files
Process: Do not create console on Windows OS (HaxeFoundation#1004)
Using the standard api to launch a process on Windows OS creates a console window. With this fix, it should match the behavior of other operating systems.
1 parent 3f3205b commit 1cff66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hx/libs/std/Process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Dynamic _hx_std_process_run( String cmd, Array<String> vargs, int inShowParam )
250250
//printf("Cmd %s\n",val_string(cmd));
251251
PROCESS_INFORMATION pinf;
252252
memset(&pinf,0,sizeof(pinf));
253-
if( !CreateProcessW(NULL,(wchar_t *)name,NULL,NULL,TRUE,0,NULL,NULL,&sinf,&pinf) )
253+
if( !CreateProcessW(NULL,(wchar_t *)name,NULL,NULL,TRUE,CREATE_NO_WINDOW,NULL,NULL,&sinf,&pinf) )
254254
{
255255
hx::ExitGCFreeZone();
256256
hx::Throw(HX_CSTRING("Could not start process"));

0 commit comments

Comments
 (0)