Commit 0f0647e1 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 7619786b
......@@ -77,7 +77,7 @@ static inline WCHAR *load_resource(const WCHAR *name)
HRSRC res;
void *ptr;
GetTempPathW(sizeof(pathW)/sizeof(WCHAR), pathW);
GetTempPathW(ARRAY_SIZE(pathW), pathW);
lstrcatW(pathW, name);
file = CreateFileW(pathW, GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0);
......
......@@ -79,7 +79,7 @@ static inline WCHAR *load_resource(const WCHAR *name)
HRSRC res;
void *ptr;
GetTempPathW(sizeof(pathW)/sizeof(WCHAR), pathW);
GetTempPathW(ARRAY_SIZE(pathW), pathW);
lstrcatW(pathW, name);
file = CreateFileW(pathW, GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 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