Alistair Leslie-Hughes : mspatcha/tests: Fix compile error on older compilers.
Alexandre Julliard
julliard at winehq.org
Fri May 10 10:45:19 CDT 2019
Module: wine
Branch: master
Commit: 1b7ed451e0b7b97bc8ebe08ed483e5485eaa30c4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1b7ed451e0b7b97bc8ebe08ed483e5485eaa30c4
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu May 9 23:54:54 2019 +0000
mspatcha/tests: Fix compile error on older compilers.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 702e4e3..0e0409e 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");
More information about the wine-cvs
mailing list