From: Mattia Barbon Date: Mon, 19 Nov 2001 18:58:04 +0000 (+0000) Subject: Fixed Cygwin crash on toolbar tooltip X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a95821781b3703af8a6483e590b00c348611f3f9 Fixed Cygwin crash on toolbar tooltip git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 6ea1b236f4..40119dce3b 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -836,8 +836,9 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl), // this case size_t lenAnsi = help.Len(); - #ifdef __MWERKS__ + #if defined( __MWERKS__ ) || defined( __CYGWIN__ ) // MetroWerks doesn't like calling mbstowcs with NULL argument + // neither Cygwin does size_t lenUnicode = 2*lenAnsi; #else size_t lenUnicode = mbstowcs(NULL, help, lenAnsi);