mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 18:03:30 +08:00
[winpr,crt] fix wcstok_s
This commit is contained in:
parent
9575f386cd
commit
5b0ee107bf
@ -413,24 +413,24 @@ WCHAR* wcstok_s(WCHAR* strToken, const WCHAR* strDelimit, WCHAR** context)
|
||||
if (!strToken)
|
||||
strToken = *context;
|
||||
|
||||
Data_Read_UINT16(strToken, value);
|
||||
value = *strToken;
|
||||
|
||||
while (*strToken && _wcschr(strDelimit, value))
|
||||
{
|
||||
strToken++;
|
||||
Data_Read_UINT16(strToken, value);
|
||||
value = *strToken;
|
||||
}
|
||||
|
||||
if (!*strToken)
|
||||
return NULL;
|
||||
|
||||
nextToken = strToken++;
|
||||
Data_Read_UINT16(strToken, value);
|
||||
value = *strToken;
|
||||
|
||||
while (*strToken && !(_wcschr(strDelimit, value)))
|
||||
{
|
||||
strToken++;
|
||||
Data_Read_UINT16(strToken, value);
|
||||
value = *strToken;
|
||||
}
|
||||
|
||||
if (*strToken)
|
||||
|
Loading…
Reference in New Issue
Block a user