fixed bug #1605581 - nsExec:ExecToLog is unstable in silent mode

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4835 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-12-01 16:29:36 +00:00
parent 0d05d1ea62
commit 80c1dfbc16

View file

@ -143,7 +143,9 @@ void ExecScript(int log) {
g_to = 0; // default is no timeout
bOEM = FALSE; // default is no OEM->ANSI conversion
g_hwndList = FindWindowEx(FindWindowEx(g_hwndParent,NULL,"#32770",NULL),NULL,"SysListView32",NULL);
g_hwndList = NULL;
if (g_hwndParent)
g_hwndList = FindWindowEx(FindWindowEx(g_hwndParent,NULL,"#32770",NULL),NULL,"SysListView32",NULL);
// add space
pExec = g_exec + lstrlen(g_exec);