From 3aeedb16738557e520a6d06f3c59fa6d3ca99cdb Mon Sep 17 00:00:00 2001 From: justin1014 Date: Sat, 21 Sep 2002 19:10:15 +0000 Subject: [PATCH] cleanup git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1128 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/ExDLL/exdll.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Contrib/ExDLL/exdll.h b/Contrib/ExDLL/exdll.h index 38083e1d..a64a2ed3 100644 --- a/Contrib/ExDLL/exdll.h +++ b/Contrib/ExDLL/exdll.h @@ -2,7 +2,7 @@ #define _EXDLL_H_ // only include this file from one place in your DLL. -// (it is all static shit, if you use it in two places it will fail) +// (it is all static, if you use it in two places it will fail) #define EXDLL_INIT() { \ g_stringsize=string_size; \ @@ -82,6 +82,12 @@ static char *getuservariable(int varnum) return g_variables+varnum*g_stringsize; } +static void setuservariable(int varnum, char *var) +{ + if (var != NULL && varnum >= 0 && varnum < __INST_LAST) + lstrcpy(g_variables + varnum*g_stringsize, var); +} + #endif//_EXDLL_H_ \ No newline at end of file