Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
93bdde3a
Commit
93bdde3a
authored
Dec 14, 2013
by
Jonathan Liu
Committed by
Alexandre Julliard
Dec 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Use correct PATH separator on Windows.
parent
e3fc518e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
utils.c
tools/winebuild/utils.c
+8
-2
No files found.
tools/winebuild/utils.c
View file @
93bdde3a
...
...
@@ -39,6 +39,12 @@
#include "build.h"
#ifdef _WIN32
# define PATH_SEPARATOR ';'
#else
# define PATH_SEPARATOR ':'
#endif
static
const
char
**
tmp_files
;
static
unsigned
int
nb_tmp_files
;
static
unsigned
int
max_tmp_files
;
...
...
@@ -319,13 +325,13 @@ struct strarray *find_tool( const char *name, const char * const *names )
if
(
!
getenv
(
"PATH"
))
return
NULL
;
path
=
xstrdup
(
getenv
(
"PATH"
));
for
(
p
=
path
,
count
=
2
;
*
p
;
p
++
)
if
(
*
p
==
':'
)
count
++
;
for
(
p
=
path
,
count
=
2
;
*
p
;
p
++
)
if
(
*
p
==
PATH_SEPARATOR
)
count
++
;
dirs
=
xmalloc
(
count
*
sizeof
(
*
dirs
)
);
count
=
0
;
dirs
[
count
++
]
=
p
=
path
;
while
(
*
p
)
{
while
(
*
p
&&
*
p
!=
':'
)
p
++
;
while
(
*
p
&&
*
p
!=
PATH_SEPARATOR
)
p
++
;
if
(
!*
p
)
break
;
*
p
++
=
0
;
dirs
[
count
++
]
=
p
;
...
...
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