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
a47eb31d
Commit
a47eb31d
authored
Jul 24, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jul 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WCMD_run_program: don't try to run an empty line.
parent
6b4d9e09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wcmdmain.c
programs/wcmd/wcmdmain.c
+2
-1
No files found.
programs/wcmd/wcmdmain.c
View file @
a47eb31d
...
...
@@ -360,6 +360,8 @@ HINSTANCE hinst;
char
filetorun
[
MAX_PATH
];
WCMD_parse
(
command
,
quals
,
param1
,
param2
);
/* Quick way to get the filename */
if
(
!
(
*
param1
)
&&
!
(
*
param2
))
return
;
if
(
strpbrk
(
param1
,
"
\\
:"
)
==
NULL
)
{
/* No explicit path given */
if
((
strchr
(
param1
,
'.'
)
==
NULL
)
||
(
strstr
(
param1
,
".bat"
)
!=
NULL
))
{
if
(
SearchPath
(
NULL
,
param1
,
".bat"
,
sizeof
(
filetorun
),
filetorun
,
NULL
))
{
...
...
@@ -659,4 +661,3 @@ char temp_path[MAX_PATH], temp_file[MAX_PATH], temp_file2[MAX_PATH], temp_cmd[10
WCMD_process_command
(
temp_cmd
);
DeleteFile
(
temp_file
);
}
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