aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/Networking/NetworkShares.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-11 13:24:01 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-11 13:24:01 -0400
commit1aede748b3ae62ca85c8958579b526b48298c8fb (patch)
treec96c70c52464af05a3bd39cdb239ed47991d192c /MediaBrowser.ServerApplication/Networking/NetworkShares.cs
parenta178f74456be7904f642f76bc0fc7ef107334c43 (diff)
fix network enumeration
Diffstat (limited to 'MediaBrowser.ServerApplication/Networking/NetworkShares.cs')
-rw-r--r--MediaBrowser.ServerApplication/Networking/NetworkShares.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.ServerApplication/Networking/NetworkShares.cs b/MediaBrowser.ServerApplication/Networking/NetworkShares.cs
index 91bd167b8..f9a59203d 100644
--- a/MediaBrowser.ServerApplication/Networking/NetworkShares.cs
+++ b/MediaBrowser.ServerApplication/Networking/NetworkShares.cs
@@ -390,7 +390,9 @@ namespace MediaBrowser.ServerApplication.Networking
Type 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)