]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Compilaton fixes.
[wxWidgets.git] / src / msw / window.cpp
index a6f3d3a4c17c56d6185844d3b6e7e16c295116d6..3d223612143b4bea990573a6a6fe8bee271e0e40 100644 (file)
@@ -3383,9 +3383,7 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam)
 
         // and now get the file name
         ::DragQueryFile(hFilesInfo, wIndex,
-                        files[wIndex].GetWriteBuf(len), len);
-
-        files[wIndex].UngetWriteBuf();
+                        wxStringBuffer(files[wIndex], len), len);
     }
     DragFinish (hFilesInfo);