The Free Software Media System - Server Backend & API
fix network enumeration
Luke Pulverenti1aede748b3ae
diff --git a/MediaBrowser.ServerApplication/Networking/NetworkManager.cs b/MediaBrowser.ServerApplication/Networking/NetworkManager.csindex 978a29db00..cc9061fcd0 100644--- a/MediaBrowser.ServerApplication/Networking/NetworkManager.cs+++ b/MediaBrowser.ServerApplication/Networking/NetworkManager.cs@@ -29,6 +29,7 @@ namespace MediaBrowser.ServerApplication.Networking/// <returns>IEnumerable{NetworkShare}.</returns>public IEnumerable<NetworkShare> GetNetworkShares(string path){+ Logger.Info("Getting network shares from {0}", path);return new ShareCollection(path).OfType<Share>().Select(ToNetworkShare);}diff --git a/MediaBrowser.ServerApplication/Networking/NetworkShares.cs b/MediaBrowser.ServerApplication/Networking/NetworkShares.csindex 91bd167b83..f9a59203d7 100644--- a/MediaBrowser.ServerApplication/Networking/NetworkShares.cs+++ b/MediaBrowser.ServerApplication/Networking/NetworkShares.cs@@ -390,7 +390,9 @@ namespace MediaBrowser.ServerApplication.NetworkingType t = (2 == level) ? typeof(SHARE_INFO_2) : typeof(SHARE_INFO_1);int offset = Marshal.SizeOf(t);- for (int i = 0, lpItem = pBuffer.ToInt32(); i < entriesRead; i++, lpItem += offset)+ var lpItem = pBuffer.ToInt64();++ for (int i = 0; i < entriesRead; i++, lpItem += offset){IntPtr pItem = new IntPtr(lpItem);if (1 == level)