From b3d0591e76b1e1ece42a3e052f24f8ad3338580e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 24 Jul 2023 22:18:36 +0200 Subject: [PATCH] [USER32] Use static inline instead of inline Fixes compilation with less optimizations --- win32ss/user/user32/windows/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/user/user32/windows/input.c b/win32ss/user/user32/windows/input.c index 48b18b069da..dc6ddaff5f7 100644 --- a/win32ss/user/user32/windows/input.c +++ b/win32ss/user/user32/windows/input.c @@ -704,7 +704,7 @@ LoadKeyboardLayoutA(LPCSTR pszKLID, return LoadKeyboardLayoutW(wszKLID, Flags); } -inline BOOL IsValidKLID(_In_ LPCWSTR pwszKLID) +static inline BOOL IsValidKLID(_In_ LPCWSTR pwszKLID) { return (pwszKLID != NULL) && (wcsspn(pwszKLID, L"0123456789ABCDEFabcdef") == (KL_NAMELENGTH - 1)); }