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
699df04e
Commit
699df04e
authored
Jun 27, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Do not use wide character constants.
parent
e3708a60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
splitpath.c
programs/winefile/splitpath.c
+7
-7
No files found.
programs/winefile/splitpath.c
View file @
699df04e
...
...
@@ -33,18 +33,18 @@ void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHAR*
if
(
drv
)
{
*
drv
++
=
*
path
++
;
*
drv
++
=
*
path
++
;
*
drv
=
L
'\0'
;
*
drv
=
'\0'
;
}
}
else
if
(
drv
)
*
drv
=
L
'\0'
;
*
drv
=
'\0'
;
/* search for end of string or stream separator */
for
(
end
=
path
;
*
end
&&
*
end
!=
L
':'
;
)
for
(
end
=
path
;
*
end
&&
*
end
!=
':'
;
)
end
++
;
/* search for begin of file extension */
for
(
p
=
end
;
p
>
path
&&
*--
p
!=
L'\\'
&&
*
p
!=
L
'/'
;
)
if
(
*
p
==
L
'.'
)
{
for
(
p
=
end
;
p
>
path
&&
*--
p
!=
'\\'
&&
*
p
!=
'/'
;
)
if
(
*
p
==
'.'
)
{
end
=
p
;
break
;
}
...
...
@@ -64,14 +64,14 @@ void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHAR*
for
(
s
=
p
;
s
<
end
;
)
*
name
++
=
*
s
++
;
*
name
=
L
'\0'
;
*
name
=
'\0'
;
}
if
(
dir
)
{
for
(
s
=
path
;
s
<
p
;
)
*
dir
++
=
*
s
++
;
*
dir
=
L
'\0'
;
*
dir
=
'\0'
;
}
}
...
...
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