Commit 000c708e authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wintab32: Use the ARRAY_SIZE() macro.

parent 82c8c88b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment