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
2c39191e
Commit
2c39191e
authored
Oct 21, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix splitpath and wsplitpath for the file extension.
parent
ad24c559
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
dir.c
dlls/msvcrt/dir.c
+5
-2
string.c
dlls/ntdll/string.c
+5
-2
No files found.
dlls/msvcrt/dir.c
View file @
2c39191e
...
...
@@ -463,8 +463,11 @@ void _wsplitpath(const MSVCRT_wchar_t *inpath, MSVCRT_wchar_t *drv, MSVCRT_wchar
}
else
if
(
dir
)
dir
[
0
]
=
0
;
/* look for extension */
for
(
end
=
inpath
;
*
end
;
end
++
)
if
(
*
end
==
'.'
)
break
;
/* look for extension: what's after the last dot */
end
=
NULL
;
for
(
p
=
inpath
;
*
p
;
p
++
)
if
(
*
p
==
'.'
)
end
=
p
;
if
(
!
end
)
end
=
p
;
/* there's no extension */
if
(
fname
)
{
...
...
dlls/ntdll/string.c
View file @
2c39191e
...
...
@@ -376,8 +376,11 @@ void __cdecl _splitpath(const char* inpath, char * drv, char * dir,
}
else
if
(
dir
)
dir
[
0
]
=
0
;
/* look for extension */
for
(
end
=
inpath
;
*
end
;
end
++
)
if
(
*
end
==
'.'
)
break
;
/* look for extension: what's after the last dot */
end
=
NULL
;
for
(
p
=
inpath
;
*
p
;
p
++
)
if
(
*
p
==
'.'
)
end
=
p
;
if
(
!
end
)
end
=
p
;
/* there's no extension */
if
(
fname
)
{
...
...
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