diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-05-12 01:59:32 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-05-12 01:59:32 -0400 |
| commit | eeaec966acd2eb489801b79aa70615419ab4e41f (patch) | |
| tree | 45fb9298eff0578ec1803272e20583fa8f0cdc91 /MediaBrowser.ServerApplication/Networking/NetworkShares.cs | |
| parent | f5e5ca62a675e4521c8f7d39a8adcd699d2435c1 (diff) | |
| parent | 2716315669926df1b7ac0f7ad3a4fc3db24a18ea (diff) | |
Merge pull request #1729 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.ServerApplication/Networking/NetworkShares.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/Networking/NetworkShares.cs | 4 |
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) |
