X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57bd4c6031d438f11af0ec540136f49a928b923c..c5c01214025f3682c2eaf79d5476c8c82f9c920b:/src/msw/volume.cpp diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index 3a1fa48ec1..086c3ee1d7 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -25,8 +25,9 @@ #if wxUSE_FSVOLUME +#include "wx/volume.h" + #ifndef WX_PRECOMP - #include "wx/msw/missing.h" #if wxUSE_GUI #include "wx/icon.h" #endif @@ -38,10 +39,9 @@ #include "wx/dynlib.h" #include "wx/arrimpl.cpp" -#include "wx/volume.h" - #include #include +#include "wx/msw/missing.h" #if wxUSE_BASE @@ -151,11 +151,13 @@ static unsigned GetBasicFlags(const wxChar* filename) // this information. //----------------------------------------------------------------------- SHFILEINFO fi; - long rc; - rc = SHGetFileInfo(filename, 0, &fi, sizeof(fi), SHGFI_ATTRIBUTES ); + long rc = SHGetFileInfo(filename, 0, &fi, sizeof(fi), SHGFI_ATTRIBUTES); if (!rc) { - wxLogError(_("Cannot read typename from '%s'!"), filename); + // this error is not fatal, so don't show a message to the user about + // it, otherwise it would appear every time a generic directory picker + // dialog is used and there is a connected network drive + wxLogLastError(_T("SHGetFileInfo")); } else {