cleanup
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1128 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f556e3d8fa
commit
3aeedb1673
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
#define _EXDLL_H_
|
#define _EXDLL_H_
|
||||||
|
|
||||||
// only include this file from one place in your DLL.
|
// 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() { \
|
#define EXDLL_INIT() { \
|
||||||
g_stringsize=string_size; \
|
g_stringsize=string_size; \
|
||||||
|
@ -82,6 +82,12 @@ static char *getuservariable(int varnum)
|
||||||
return g_variables+varnum*g_stringsize;
|
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_
|
#endif//_EXDLL_H_
|
Loading…
Add table
Add a link
Reference in a new issue