From b0622bb49a419567d7b4d7bbbebed9d74cdd34e6 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 18 Nov 2020 17:25:32 +0100 Subject: [PATCH] msvcrt: Mark old_locinfo as const in create_locinfo. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/msvcrt/locale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c index 32f2c9b4624..b24871b9cd7 100644 --- a/dlls/msvcrt/locale.c +++ b/dlls/msvcrt/locale.c @@ -1035,7 +1035,7 @@ static inline BOOL set_lc_locale_name(MSVCRT_pthreadlocinfo locinfo, int cat) #endif static inline BOOL category_needs_update(int cat, int user_cat, - MSVCRT_pthreadlocinfo locinfo, LCID lcid, unsigned short cp) + const MSVCRT_threadlocinfo *locinfo, LCID lcid, unsigned short cp) { if(!locinfo) return TRUE; if(user_cat!=cat && user_cat!=MSVCRT_LC_ALL) return FALSE; @@ -1106,7 +1106,7 @@ static MSVCRT___lc_time_data* create_time_data(LCID lcid) } static MSVCRT_pthreadlocinfo create_locinfo(int category, - const char *locale, MSVCRT_pthreadlocinfo old_locinfo) + const char *locale, const MSVCRT_threadlocinfo *old_locinfo) { static const char collate[] = "COLLATE="; static const char ctype[] = "CTYPE=";