X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e7fa3a63f2e36bc5b89b7cd8fd85ede84cd01ad..e0fbcda633e7307c0de5e12e1060303c744cb8ea:/src/msw/volume.cpp diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index 2c04d2952f..5a3ad4e440 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -68,6 +68,14 @@ #define SHGFI_SMALLICON 1 #endif +#ifndef SHGFI_SHELLICONSIZE + #define SHGFI_SHELLICONSIZE 4 +#endif + +#ifndef SHGFI_OPENICON + #define SHGFI_OPENICON 2 +#endif + //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // Dynamic library function defs. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -101,7 +109,8 @@ static FileInfoMap s_fileInfo(25); // Other initialization. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #if wxUSE_GUI -WX_DEFINE_OBJARRAY(wxIconArray); +// already in wx/iconbndl.h +// WX_DEFINE_OBJARRAY(wxIconArray); #endif //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -247,8 +256,8 @@ static void BuildListFromNN(wxArrayString& list, NETRESOURCE* pResSrc, //---------------------------------------------------------------------- if (rc = s_pWNetOpenEnum(scope, RESOURCETYPE_DISK, 0, pResSrc, &hEnum), rc == NO_ERROR) { - unsigned long count = 1; - unsigned long size = 256; + DWORD count = 1; + DWORD size = 256; NETRESOURCE* pRes = (NETRESOURCE*)malloc(size); memset(pRes, 0, sizeof(NETRESOURCE)); while (rc = s_pWNetEnumResource(hEnum, &count, pRes, &size), rc == NO_ERROR || rc == ERROR_MORE_DATA)