6 Dec
2022
6 Dec
'22
9:32 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/msstyles.h:
LPCWSTR UXINI_GetNextValue(PUXINI_FILE uf, DWORD *dwNameLen, LPCWSTR *lpValue, DWORD *dwValueLen) DECLSPEC_HIDDEN; BOOL UXINI_FindValue(PUXINI_FILE uf, LPCWSTR lpName, LPCWSTR *lpValue, DWORD *dwValueLen) DECLSPEC_HIDDEN;
+static inline WCHAR toupperW(WCHAR c) +{ + if (c >= 'a' && c <= 'z') return c - 'a' + 'A'; + else if (c > 127) return RtlUpcaseUnicodeChar(c); + else return c; +} + +static inline WCHAR *strupperW(WCHAR *dst, const WCHAR *src, DWORD count) Can't you use CharUpperBuffW() instead?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1681#note_18793