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
505be073
Commit
505be073
authored
May 17, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: 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
05c23c95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
desktop.c
programs/explorer/desktop.c
+7
-2
No files found.
programs/explorer/desktop.c
View file @
505be073
...
...
@@ -903,6 +903,11 @@ static void set_desktop_window_title( HWND hwnd, const WCHAR *name )
HeapFree
(
GetProcessHeap
(),
0
,
window_titleW
);
}
static
inline
BOOL
is_whitespace
(
WCHAR
c
)
{
return
c
==
' '
||
c
==
'\t'
;
}
/* main desktop management function */
void
manage_desktop
(
WCHAR
*
arg
)
{
...
...
@@ -919,11 +924,11 @@ void manage_desktop( WCHAR *arg )
BOOL
enable_shell
=
FALSE
;
/* get the rest of the command line (if any) */
while
(
*
p
&&
!
isspace
(
*
p
))
p
++
;
while
(
*
p
&&
!
is
_white
space
(
*
p
))
p
++
;
if
(
*
p
)
{
*
p
++
=
0
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
while
(
*
p
&&
is
_white
space
(
*
p
))
p
++
;
if
(
*
p
)
cmdline
=
p
;
}
...
...
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