X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95fbc73897ecae0a1d32d61cc9af418298f973c8..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/msw/volume.cpp?ds=sidebyside diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index 397eb7e228..06c454ebc9 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -506,12 +506,13 @@ bool wxFSVolumeBase::Create(const wxString& name) if (!rc) { wxLogError(_("Cannot read typename from '%s'!"), m_volName.c_str()); - return m_isOk; + return false; } m_dispName = fi.szDisplayName; // all tests passed. - return m_isOk = true; + m_isOk = true; + return true; } // Create //=============================================================================