]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
Compile fix for Unicode build on win64
[wxWidgets.git] / src / common / string.cpp
index ffae5b4e127c85156ec36b5b77423ed4a3053fb7..12c4204759d9302c8f1d18e3545589bdf3a0c544 100644 (file)
@@ -365,8 +365,8 @@ bool wxStringBase::Alloc(size_t nLen)
     if ( pData->IsEmpty() ) {
       nLen += EXTRA_ALLOC;
 
-      wxStringData* pData = (wxStringData*)
-          malloc(sizeof(wxStringData) + (nLen + 1)*sizeof(wxChar));
+      pData = (wxStringData *)
+                malloc(sizeof(wxStringData) + (nLen + 1)*sizeof(wxChar));
 
       if ( pData == NULL ) {
         // allocation failure handled by caller