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
9abd3b96
Commit
9abd3b96
authored
May 17, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msstyles: Avoid using isspace() for WCHARs.
Found with Coccinelle. Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98d0fa99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
msstyles.c
dlls/uxtheme/msstyles.c
+7
-2
No files found.
dlls/uxtheme/msstyles.c
View file @
9abd3b96
...
...
@@ -1175,19 +1175,24 @@ static BOOL MSSTYLES_GetNextInteger(LPCWSTR lpStringStart, LPCWSTR lpStringEnd,
return
TRUE
;
}
static
inline
BOOL
isSpace
(
WCHAR
c
)
{
return
c
==
' '
||
c
==
'\f'
||
c
==
'\n'
||
c
==
'\r'
||
c
==
'\t'
||
c
==
'\v'
;
}
static
BOOL
MSSTYLES_GetNextToken
(
LPCWSTR
lpStringStart
,
LPCWSTR
lpStringEnd
,
LPCWSTR
*
lpValEnd
,
LPWSTR
lpBuff
,
DWORD
buffSize
)
{
LPCWSTR
cur
=
lpStringStart
;
LPCWSTR
start
;
LPCWSTR
end
;
while
(
cur
<
lpStringEnd
&&
(
is
s
pace
(
*
cur
)
||
*
cur
==
','
))
cur
++
;
while
(
cur
<
lpStringEnd
&&
(
is
S
pace
(
*
cur
)
||
*
cur
==
','
))
cur
++
;
if
(
cur
>=
lpStringEnd
)
{
return
FALSE
;
}
start
=
cur
;
while
(
cur
<
lpStringEnd
&&
*
cur
!=
','
)
cur
++
;
end
=
cur
;
while
(
is
s
pace
(
*
end
))
end
--
;
while
(
is
S
pace
(
*
end
))
end
--
;
lstrcpynW
(
lpBuff
,
start
,
min
(
buffSize
,
end
-
start
+
1
));
...
...
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