From 5b0ee107bfbc1db3a8a7e92b9621d242d50e85dd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 12 Dec 2023 13:09:34 +0100 Subject: [PATCH] [winpr,crt] fix wcstok_s --- winpr/libwinpr/crt/string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winpr/libwinpr/crt/string.c b/winpr/libwinpr/crt/string.c index b1c137ac0..105729afa 100644 --- a/winpr/libwinpr/crt/string.c +++ b/winpr/libwinpr/crt/string.c @@ -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)