Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e727e44d
Commit
e727e44d
authored
Jan 16, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Even if FindExecutable fails wait for process to finish in non-interactive mode.
parent
b0bf0612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
wcmdmain.c
programs/cmd/wcmdmain.c
+7
-10
No files found.
programs/cmd/wcmdmain.c
View file @
e727e44d
...
...
@@ -1225,16 +1225,13 @@ void WCMD_run_program (WCHAR *command, BOOL called)
if
(
!
status
)
break
;
if
(
!
assumeInternal
&&
!
console
)
errorlevel
=
0
;
else
{
/* Always wait when non-interactive (cmd /c or in batch program),
or for console applications */
if
(
assumeInternal
||
!
interactive
||
!
HIWORD
(
console
))
WaitForSingleObject
(
pe
.
hProcess
,
INFINITE
);
GetExitCodeProcess
(
pe
.
hProcess
,
&
errorlevel
);
if
(
errorlevel
==
STILL_ACTIVE
)
errorlevel
=
0
;
}
/* Always wait when non-interactive (cmd /c or in batch program),
or for console applications */
if
(
assumeInternal
||
!
interactive
||
(
console
&&
!
HIWORD
(
console
)))
WaitForSingleObject
(
pe
.
hProcess
,
INFINITE
);
GetExitCodeProcess
(
pe
.
hProcess
,
&
errorlevel
);
if
(
errorlevel
==
STILL_ACTIVE
)
errorlevel
=
0
;
CloseHandle
(
pe
.
hProcess
);
CloseHandle
(
pe
.
hThread
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment