Akihiro Sagawa : wininet: Use isspaceW() instead of isspace() for WCHARs.
Alexandre Julliard
julliard at winehq.org
Wed May 17 15:58:29 CDT 2017
Module: wine
Branch: master
Commit: 05c23c95f83dcf271f13286e4b2ea595bbace2e8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=05c23c95f83dcf271f13286e4b2ea595bbace2e8
Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date: Wed May 17 21:35:47 2017 +0900
wininet: Use isspaceW() instead of isspace() for WCHARs.
Found with Coccinelle.
Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wininet/http.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 321d569..2172f5f 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -4295,7 +4295,7 @@ static BOOL HTTP_ParseDateAsAsctime(LPCWSTR value, FILETIME *ft)
while (isspaceW(*ptr))
ptr++;
- for (monthPtr = month; !isspace(*ptr) &&
+ for (monthPtr = month; !isspaceW(*ptr) &&
monthPtr - month < sizeof(month) / sizeof(month[0]) - 1;
monthPtr++, ptr++)
*monthPtr = *ptr;
@@ -4392,7 +4392,7 @@ static BOOL HTTP_ParseRfc1123Date(LPCWSTR value, FILETIME *ft)
while (isspaceW(*ptr))
ptr++;
- for (monthPtr = month; !isspace(*ptr) &&
+ for (monthPtr = month; !isspaceW(*ptr) &&
monthPtr - month < sizeof(month) / sizeof(month[0]) - 1;
monthPtr++, ptr++)
*monthPtr = *ptr;
More information about the wine-cvs
mailing list