From 80c1dfbc165fcc530e31421131bb1a1164cb57f1 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 1 Dec 2006 16:29:36 +0000 Subject: [PATCH] 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 --- Contrib/nsExec/nsexec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Contrib/nsExec/nsexec.c b/Contrib/nsExec/nsexec.c index bbdf332f..fa06367a 100644 --- a/Contrib/nsExec/nsexec.c +++ b/Contrib/nsExec/nsexec.c @@ -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);