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
30f503fd
Commit
30f503fd
authored
Dec 15, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Dec 15, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: GetFullPathName sets lpFilePart only when the last element
does not end with '\'.
parent
1beaae5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
dos_fs.c
files/dos_fs.c
+8
-2
No files found.
files/dos_fs.c
View file @
30f503fd
...
...
@@ -1058,8 +1058,14 @@ DWORD WINAPI GetFullPathName32A( LPCSTR name, DWORD len, LPSTR buffer,
if
(
ret
&&
lastpart
)
{
LPSTR
p
=
buffer
+
strlen
(
buffer
);
while
((
p
>
buffer
+
2
)
&&
(
*
p
!=
'\\'
))
p
--
;
*
lastpart
=
p
+
1
;
/* if the path closed with '\', *lastpart is 0 */
if
(
*
p
!=
'\\'
)
{
while
((
p
>
buffer
+
2
)
&&
(
*
p
!=
'\\'
))
p
--
;
*
lastpart
=
p
+
1
;
}
else
*
lastpart
=
NULL
;
}
return
ret
;
}
...
...
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