initialize everything when creating a new dialog to avoid setting leaking from the last dialog
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5846 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a2e5fbe2ee
commit
f50bc2fab7
1 changed files with 16 additions and 4 deletions
|
@ -16,10 +16,10 @@ char progname[1024];
|
||||||
char lastused[1024];
|
char lastused[1024];
|
||||||
char checkbox[1024];
|
char checkbox[1024];
|
||||||
|
|
||||||
int autoadd = 0;
|
int autoadd;
|
||||||
int g_done = 0;
|
int g_done;
|
||||||
int noicon = 0;
|
int noicon;
|
||||||
int rtl = 0;
|
int rtl;
|
||||||
|
|
||||||
void *lpWndProcOld;
|
void *lpWndProcOld;
|
||||||
|
|
||||||
|
@ -46,6 +46,18 @@ void __declspec(dllexport) Init(HWND hwndParent, int string_size, char *variable
|
||||||
|
|
||||||
extra->RegisterPluginCallback(g_hInstance, PluginCallback);
|
extra->RegisterPluginCallback(g_hInstance, PluginCallback);
|
||||||
|
|
||||||
|
g_done = 0;
|
||||||
|
noicon = 0;
|
||||||
|
rtl = 0;
|
||||||
|
autoadd = 0;
|
||||||
|
|
||||||
|
text[0] = 0;
|
||||||
|
progname[0] = 0;
|
||||||
|
lastused[0] = 0;
|
||||||
|
checkbox[0] = 0;
|
||||||
|
|
||||||
|
g_hwStartMenuSelect = NULL;
|
||||||
|
|
||||||
{
|
{
|
||||||
hwChild = GetDlgItem(hwndParent, 1018);
|
hwChild = GetDlgItem(hwndParent, 1018);
|
||||||
if (!hwChild)
|
if (!hwChild)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue