Stream contents of output (avoid pipe being full)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@931 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
055bf1d65b
commit
e002bbbecc
2 changed files with 3 additions and 3 deletions
|
@ -85,8 +85,8 @@ void ExecScript(BOOL log) {
|
||||||
HANDLE newstdout=0,read_stdout=0;
|
HANDLE newstdout=0,read_stdout=0;
|
||||||
DWORD dwRead = 1;
|
DWORD dwRead = 1;
|
||||||
DWORD dwExit = !STILL_ACTIVE;
|
DWORD dwExit = !STILL_ACTIVE;
|
||||||
char szBuf[1024];
|
static char szBuf[1024];
|
||||||
char szBufTmp[1024];
|
static char szBufTmp[4096];
|
||||||
szBufTmp[0]=0;
|
szBufTmp[0]=0;
|
||||||
GetVersionEx(&osv);
|
GetVersionEx(&osv);
|
||||||
if (osv.dwPlatformId == VER_PLATFORM_WIN32_NT) {
|
if (osv.dwPlatformId == VER_PLATFORM_WIN32_NT) {
|
||||||
|
@ -162,7 +162,7 @@ int LogMessage(const char *pStr) {
|
||||||
nItemCount=SendMessage(g_hwndList, LVM_GETITEMCOUNT, 0, 0);
|
nItemCount=SendMessage(g_hwndList, LVM_GETITEMCOUNT, 0, 0);
|
||||||
item.mask=LVIF_TEXT;
|
item.mask=LVIF_TEXT;
|
||||||
item.pszText=(char *)pStr;
|
item.pszText=(char *)pStr;
|
||||||
item.cchTextMax=6;
|
item.cchTextMax=0;
|
||||||
item.iItem=nItemCount;
|
item.iItem=nItemCount;
|
||||||
ListView_InsertItem(g_hwndList, &item);
|
ListView_InsertItem(g_hwndList, &item);
|
||||||
ListView_EnsureVisible(g_hwndList, item.iItem, 0);
|
ListView_EnsureVisible(g_hwndList, item.iItem, 0);
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue