]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
define wxART_* constanst in way that will make adding XRC support easier
[wxWidgets.git] / src / common / filefn.cpp
index f8ef9b471f539aa7fcfb39246220fddd02e364ee..fd4b6b7ae9f5611d4eeaaa76d216088f2386d65f 100644 (file)
@@ -1415,8 +1415,11 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
     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