[PATCH] wintrust/tests: Use the available ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Tue May 29 18:15:32 CDT 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/wintrust/tests/softpub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c
index 6e7913f710..81153a28cc 100644
--- a/dlls/wintrust/tests/softpub.c
+++ b/dlls/wintrust/tests/softpub.c
@@ -287,7 +287,7 @@ static HANDLE create_temp_file(WCHAR *temp_file)
HANDLE file = INVALID_HANDLE_VALUE;
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 };
--
2.14.3
More information about the wine-devel
mailing list