From 1b7ed451e0b7b97bc8ebe08ed483e5485eaa30c4 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Thu, 9 May 2019 23:54:54 +0000 Subject: [PATCH] mspatcha/tests: Fix compile error on older compilers. Signed-off-by: Alistair Leslie-Hughes Signed-off-by: Alexandre Julliard --- dlls/mspatcha/tests/apply_patch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/mspatcha/tests/apply_patch.c b/dlls/mspatcha/tests/apply_patch.c index 702e4e3bc9a..0e0409e2599 100644 --- a/dlls/mspatcha/tests/apply_patch.c +++ b/dlls/mspatcha/tests/apply_patch.c @@ -336,15 +336,17 @@ BOOL create_temp_file(const BYTE *buf, size_t size, const char *temppath, char * void delete_test_files(void) { - for (size_t i = 0; test_files[i].buf != NULL; ++i) + size_t i; + for (i = 0; test_files[i].buf != NULL; ++i) DeleteFileA(test_files[i].name); } BOOL setup_test_files(void) { char temppath[MAX_PATH]; + size_t i; GetTempPathA(MAX_PATH, temppath); - for (size_t i = 0; test_files[i].buf != NULL; ++i) { + for (i = 0; test_files[i].buf != NULL; ++i) { if (!create_temp_file(test_files[i].buf, test_files[i].size, temppath, test_files[i].name)) { skip("Failed to create/write temporary test files\n");