Commit f37ab586 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd: Skip tabs as well as spaces in WCMD_skip_leading_spaces.

parent 7b125126
...@@ -158,8 +158,8 @@ BAZ=bazbaz ...@@ -158,8 +158,8 @@ BAZ=bazbaz
bazbaz bazbaz
set "FOO=bar" should not include the quotes in the variable value set "FOO=bar" should not include the quotes in the variable value
bar bar
@todo_wine@foo foo
@todo_wine@'' ''
'foo@space@' 'foo@space@'
'foo@tab@' 'foo@tab@'
------------ Testing variable expansion -------------- ------------ Testing variable expansion --------------
......
...@@ -443,7 +443,7 @@ void WCMD_strsubstW(WCHAR *start, const WCHAR *next, const WCHAR *insert, int le ...@@ -443,7 +443,7 @@ void WCMD_strsubstW(WCHAR *start, const WCHAR *next, const WCHAR *insert, int le
/*************************************************************************** /***************************************************************************
* WCMD_skip_leading_spaces * WCMD_skip_leading_spaces
* *
* Return a pointer to the first non-space character of string. * Return a pointer to the first non-whitespace character of string.
* Does not modify the input string. * Does not modify the input string.
*/ */
WCHAR *WCMD_skip_leading_spaces (WCHAR *string) { WCHAR *WCMD_skip_leading_spaces (WCHAR *string) {
...@@ -451,7 +451,7 @@ WCHAR *WCMD_skip_leading_spaces (WCHAR *string) { ...@@ -451,7 +451,7 @@ WCHAR *WCMD_skip_leading_spaces (WCHAR *string) {
WCHAR *ptr; WCHAR *ptr;
ptr = string; ptr = string;
while (*ptr == ' ') ptr++; while (*ptr == ' ' || *ptr == '\t') ptr++;
return ptr; return ptr;
} }
......
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