Commit 505be073 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

explorer: Avoid using isspace() for WCHARs.

Found with Coccinelle. Signed-off-by: 's avatarAkihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 05c23c95
......@@ -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_whitespace(*p)) p++;
if (*p)
{
*p++ = 0;
while (*p && isspace(*p)) p++;
while (*p && is_whitespace(*p)) p++;
if (*p) cmdline = p;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment