compilation fixes for Unicode build in !TIF_PLATFORM_CONSOLE case (fixes WinCE compilation)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-02-24 23:05:45 +00:00
parent ecb22f9e0a
commit 47493bc09f

View File

@ -340,12 +340,12 @@ static void
Win32WarningHandler(const char* module, const char* fmt, va_list ap)
{
#ifndef TIF_PLATFORM_CONSOLE
LPTSTR szTitle;
LPTSTR szTmp;
LPCTSTR szTitleText = "%s Warning";
LPCTSTR szDefaultModule = "LIBTIFF";
LPCTSTR szTmpModule = (module == NULL) ? szDefaultModule : module;
if ((szTitle = (LPTSTR)LocalAlloc(LMEM_FIXED, (strlen(szTmpModule) +
char *szTitle;
char *szTmp;
const char *szTitleText = "%s Warning";
const char *szDefaultModule = "LIBTIFF";
const char *szTmpModule = (module == NULL) ? szDefaultModule : module;
if ((szTitle = (char *)LocalAlloc(LMEM_FIXED, (strlen(szTmpModule) +
strlen(szTitleText) + strlen(fmt) + 128)*sizeof(char))) == NULL)
return;
sprintf(szTitle, szTitleText, szTmpModule);
@ -368,12 +368,12 @@ static void
Win32ErrorHandler(const char* module, const char* fmt, va_list ap)
{
#ifndef TIF_PLATFORM_CONSOLE
LPTSTR szTitle;
LPTSTR szTmp;
LPCTSTR szTitleText = "%s Error";
LPCTSTR szDefaultModule = "LIBTIFF";
LPCTSTR szTmpModule = (module == NULL) ? szDefaultModule : module;
if ((szTitle = (LPTSTR)LocalAlloc(LMEM_FIXED, (strlen(szTmpModule) +
char *szTitle;
char *szTmp;
const char *szTitleText = "%s Error";
const char *szDefaultModule = "LIBTIFF";
const char *szTmpModule = (module == NULL) ? szDefaultModule : module;
if ((szTitle = (char *)LocalAlloc(LMEM_FIXED, (strlen(szTmpModule) +
strlen(szTitleText) + strlen(fmt) + 128)*sizeof(char))) == NULL)
return;
sprintf(szTitle, szTitleText, szTmpModule);