mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-21 08:45:54 +02:00
Client: ServerServiceHelper: Improved error handling of ListShares method
This commit is contained in:
parent
84a8b486eb
commit
0b320ad33e
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ namespace SMBLibrary.Client
|
||||||
}
|
}
|
||||||
NetrShareEnumResponse shareEnumResponse = new NetrShareEnumResponse(responseData);
|
NetrShareEnumResponse shareEnumResponse = new NetrShareEnumResponse(responseData);
|
||||||
ShareInfo1Container shareInfo1 = shareEnumResponse.InfoStruct.Info as ShareInfo1Container;
|
ShareInfo1Container shareInfo1 = shareEnumResponse.InfoStruct.Info as ShareInfo1Container;
|
||||||
if (shareInfo1 == null)
|
if (shareInfo1 == null || shareInfo1.Entries == null)
|
||||||
{
|
{
|
||||||
if (shareEnumResponse.Result == Win32Error.ERROR_ACCESS_DENIED)
|
if (shareEnumResponse.Result == Win32Error.ERROR_ACCESS_DENIED)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue