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);