X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76432737a59e25cd508d817e2dac63c3c03032a1..adb45366da2cb1ee72f548ab2fa149f071327682:/src/msw/volume.cpp?ds=inline diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index bb81bbf9e9..6f4ada640d 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -41,6 +41,16 @@ #include "wx/volume.h" +#include + +#ifndef SHGetFileInfo +#ifdef UNICODE +#define SHGetFileInfo SHGetFileInfoW +#else +#define SHGetFileInfo SHGetFileInfoA +#endif +#endif + #ifndef SHGFI_ATTRIBUTES #define SHGFI_ATTRIBUTES 2048 #endif @@ -412,7 +422,7 @@ wxArrayString wxFSVolume::GetVolumes(int flagsSet, int flagsUnset) { #ifdef UNICODE s_pWNetOpenEnum = (WNetOpenEnumPtr)s_mprLib.GetSymbol(_T("WNetOpenEnumW")); - s_pWNetEnumResource = (WNetEnumResourcePtr)s_mprLib.GetSymbol("WNetEnumResourceW"); + s_pWNetEnumResource = (WNetEnumResourcePtr)s_mprLib.GetSymbol(_T("WNetEnumResourceW")); #else s_pWNetOpenEnum = (WNetOpenEnumPtr)s_mprLib.GetSymbol(_T("WNetOpenEnumA")); s_pWNetEnumResource = (WNetEnumResourcePtr)s_mprLib.GetSymbol(_T("WNetEnumResourceA"));