]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/volume.cpp
suppress an assert when a combobox receives WM_KILLFOCUS while it is being destroyed
[wxWidgets.git] / src / msw / volume.cpp
index 5a3ad4e44086e81f0fa92cd18d1640b33452ab04..2d7fe331b90260db04de45e1638777cb665908ee 100644 (file)
@@ -99,6 +99,15 @@ struct FileInfo : public wxObject
 {
     FileInfo(unsigned flag=0, wxFSVolumeKind type=wxFS_VOL_OTHER) :
         m_flags(flag), m_type(type) {}
+
+    FileInfo(const FileInfo& other) { *this = other; }
+    FileInfo& operator=(const FileInfo& other)
+    {
+        m_flags = other.m_flags;
+        m_type = other.m_type;
+        return *this;
+    }
+
     unsigned m_flags;
     wxFSVolumeKind m_type;
 };