wintrust/tests: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-05-30 01:15:32 +02:00 committed by Alexandre Julliard
parent 032af1923c
commit 6ff4365fb3
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ static HANDLE create_temp_file(WCHAR *temp_file)
HANDLE file = INVALID_HANDLE_VALUE; HANDLE file = INVALID_HANDLE_VALUE;
WCHAR temp_path[MAX_PATH]; WCHAR temp_path[MAX_PATH];
if (GetTempPathW(sizeof(temp_path) / sizeof(temp_path[0]), temp_path)) if (GetTempPathW(ARRAY_SIZE(temp_path), temp_path))
{ {
static const WCHAR img[] = { 'i','m','g',0 }; static const WCHAR img[] = { 'i','m','g',0 };