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
71908c41
Commit
71908c41
authored
Jan 17, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: _makepath(): operate on target buffer directly.
parent
c82a63ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
dir.c
dlls/msvcrt/dir.c
+12
-15
No files found.
dlls/msvcrt/dir.c
View file @
71908c41
...
@@ -857,40 +857,37 @@ VOID _makepath(char * path, const char * drive,
...
@@ -857,40 +857,37 @@ VOID _makepath(char * path, const char * drive,
const
char
*
extension
)
const
char
*
extension
)
{
{
char
ch
;
char
ch
;
char
tmpPath
[
MAX_PATH
];
TRACE
(
"
got %s %s %s %s
\n
"
,
debugstr_a
(
drive
),
debugstr_a
(
directory
),
TRACE
(
"
(%s %s %s %s)
\n
"
,
debugstr_a
(
drive
),
debugstr_a
(
directory
),
debugstr_a
(
filename
),
debugstr_a
(
extension
)
);
debugstr_a
(
filename
),
debugstr_a
(
extension
)
);
if
(
!
path
)
if
(
!
path
)
return
;
return
;
tmpP
ath
[
0
]
=
'\0'
;
p
ath
[
0
]
=
'\0'
;
if
(
drive
&&
drive
[
0
])
if
(
drive
&&
drive
[
0
])
{
{
tmpP
ath
[
0
]
=
drive
[
0
];
p
ath
[
0
]
=
drive
[
0
];
tmpP
ath
[
1
]
=
':'
;
p
ath
[
1
]
=
':'
;
tmpP
ath
[
2
]
=
0
;
p
ath
[
2
]
=
0
;
}
}
if
(
directory
&&
directory
[
0
])
if
(
directory
&&
directory
[
0
])
{
{
strcat
(
tmpP
ath
,
directory
);
strcat
(
p
ath
,
directory
);
ch
=
tmpPath
[
strlen
(
tmpP
ath
)
-
1
];
ch
=
path
[
strlen
(
p
ath
)
-
1
];
if
(
ch
!=
'/'
&&
ch
!=
'\\'
)
if
(
ch
!=
'/'
&&
ch
!=
'\\'
)
strcat
(
tmpP
ath
,
"
\\
"
);
strcat
(
p
ath
,
"
\\
"
);
}
}
if
(
filename
&&
filename
[
0
])
if
(
filename
&&
filename
[
0
])
{
{
strcat
(
tmpP
ath
,
filename
);
strcat
(
p
ath
,
filename
);
if
(
extension
&&
extension
[
0
])
if
(
extension
&&
extension
[
0
])
{
{
if
(
extension
[
0
]
!=
'.'
)
if
(
extension
[
0
]
!=
'.'
)
strcat
(
tmpP
ath
,
"."
);
strcat
(
p
ath
,
"."
);
strcat
(
tmpP
ath
,
extension
);
strcat
(
p
ath
,
extension
);
}
}
}
}
strcpy
(
path
,
tmpPath
);
TRACE
(
"returning %s
\n
"
,
path
);
TRACE
(
"returning %s
\n
"
,
path
);
}
}
...
...
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