[PATCH] wintab32: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Fri Nov 16 14:50:37 CST 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/wintab32/wintab32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wintab32/wintab32.c b/dlls/wintab32/wintab32.c
index 30379639ae..856f964c63 100644
--- a/dlls/wintab32/wintab32.c
+++ b/dlls/wintab32/wintab32.c
@@ -89,7 +89,7 @@ static HMODULE load_graphics_driver(void)
HKEY hkey;
DWORD size;
WCHAR path[MAX_PATH];
- WCHAR key[(sizeof(key_pathW) + sizeof(displayW)) / sizeof(WCHAR) + 40];
+ WCHAR key[ARRAY_SIZE(key_pathW) + ARRAY_SIZE(displayW) + 40];
UINT guid_atom = HandleToULong( GetPropW( GetDesktopWindow(), display_device_guid_propW ));
if (!guid_atom) return 0;
--
2.14.5
More information about the wine-devel
mailing list