From 8fe018ce589c385038ef20fcbe2df069d5ec32e6 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Tue, 23 Jul 2019 23:32:49 +0200 Subject: [PATCH] + fix: SimpleIni: section iterator callback type --- minipath/src/Config.h | 2 +- src/Config/Config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minipath/src/Config.h b/minipath/src/Config.h index a1a920ad5..2f0df71ca 100644 --- a/minipath/src/Config.h +++ b/minipath/src/Config.h @@ -99,7 +99,7 @@ extern "C" { // IniFileIterateSection(): // - typedef void (*IterSectionFunc_t)(LPCWSTR key, LPCWSTR value); + typedef void (CALLBACK* IterSectionFunc_t)(LPCWSTR key, LPCWSTR value); BOOL IniFileIterateSection(LPCWSTR lpFilePath, LPCWSTR lpSectionName, IterSectionFunc_t callBack); diff --git a/src/Config/Config.h b/src/Config/Config.h index fc0539336..94e9a805e 100644 --- a/src/Config/Config.h +++ b/src/Config/Config.h @@ -105,7 +105,7 @@ bool IniFileDelete(LPCWSTR lpFilePath, LPCWSTR lpSectionName, LPCWSTR lpKeyName, // IniFileIterateSection(): // -typedef void (*IterSectionFunc_t)(LPCWSTR key, LPCWSTR value); +typedef void (CALLBACK* IterSectionFunc_t)(LPCWSTR key, LPCWSTR value); bool IniFileIterateSection(LPCWSTR lpFilePath, LPCWSTR lpSectionName, IterSectionFunc_t callBack);