git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16454
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool needsANSI = TRUE;
#if !defined(HAVE_WGETCWD) || wxUSE_UNICODE_MSLU
bool needsANSI = TRUE;
#if !defined(HAVE_WGETCWD) || wxUSE_UNICODE_MSLU
- wxCharBuffer c_buffer(sz);
- char *cbuf = (char*)(const char*)c_buffer;
+ // This is not legal code as the compiler
+ // is allowed destroy the wxCharBuffer.
+ // wxCharBuffer c_buffer(sz);
+ // char *cbuf = (char*)(const char*)c_buffer;
+ char cbuf[_MAXPATHLEN];
#endif
#ifdef HAVE_WGETCWD
#endif
#ifdef HAVE_WGETCWD