POOLMEM* pszBuf = get_pool_memory(PM_MESSAGE);
pszBuf = check_pool_memory_size(pszBuf, dwChars+1);
- dwChars = p_WideCharToMultiByte(GetConsoleOutputCP(),0,(LPCWSTR) pwszBuf,-1,pszBuf,dwChars,NULL,NULL);
+ dwChars = p_WideCharToMultiByte(GetConsoleOutputCP(),0,(LPCWSTR)pwszBuf,-1,pszBuf,dwChars,NULL,NULL);
free_pool_memory(pwszBuf);
if (WriteConsoleA (hOut, pszBuf, dwChars-1, &dwCharsWritten, NULL)) {
free_pool_memory(pszBuf);
return dwCharsWritten;
}
+ free_pool_memory(pszBuf);
}
-
+ /* Fall back */
return fputs(string, stream);
}
General:
04May07
+kes Free an unreleased buffer in compat code.
kes Change console Job name from *Console* to -Console- to eliminate
Win32 filename problems. Put Win32 path separator when creating
Console file. This fixes bug #846.