mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-03 14:31:49 +02:00
Minor exception message changes
This commit is contained in:
parent
b6eebcef20
commit
d74a478db8
1 changed files with 9 additions and 9 deletions
|
@ -278,7 +278,7 @@ namespace SMBLibrary.Win32.Security
|
|||
{
|
||||
if (result == SEC_E_INVALID_HANDLE)
|
||||
{
|
||||
throw new Exception("InitializeSecurityContext failed, invalid handle");
|
||||
throw new Exception("InitializeSecurityContext failed, Invalid handle");
|
||||
}
|
||||
else if (result == SEC_E_INVALID_TOKEN)
|
||||
{
|
||||
|
@ -286,11 +286,11 @@ namespace SMBLibrary.Win32.Security
|
|||
}
|
||||
else if (result == SEC_E_BUFFER_TOO_SMALL)
|
||||
{
|
||||
throw new Exception("InitializeSecurityContext failed, buffer too small");
|
||||
throw new Exception("InitializeSecurityContext failed, Buffer too small");
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("InitializeSecurityContext failed, error code 0x" + result.ToString("X"));
|
||||
throw new Exception("InitializeSecurityContext failed, Error code 0x" + result.ToString("X"));
|
||||
}
|
||||
}
|
||||
byte[] messageBytes = output.GetBufferBytes(0);
|
||||
|
@ -317,7 +317,7 @@ namespace SMBLibrary.Win32.Security
|
|||
{
|
||||
if (result == SEC_E_INVALID_HANDLE)
|
||||
{
|
||||
throw new Exception("AcceptSecurityContext failed, invalid handle");
|
||||
throw new Exception("AcceptSecurityContext failed, Invalid handle");
|
||||
}
|
||||
else if (result == SEC_E_INVALID_TOKEN)
|
||||
{
|
||||
|
@ -325,11 +325,11 @@ namespace SMBLibrary.Win32.Security
|
|||
}
|
||||
else if (result == SEC_E_BUFFER_TOO_SMALL)
|
||||
{
|
||||
throw new Exception("AcceptSecurityContext failed, buffer too small");
|
||||
throw new Exception("AcceptSecurityContext failed, Buffer too small");
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("AcceptSecurityContext failed, error code 0x" + result.ToString("X"));
|
||||
throw new Exception("AcceptSecurityContext failed, Error code 0x" + result.ToString("X"));
|
||||
}
|
||||
}
|
||||
FreeCredentialsHandle(ref credentialsHandle);
|
||||
|
@ -386,15 +386,15 @@ namespace SMBLibrary.Win32.Security
|
|||
{
|
||||
if (result == SEC_E_INVALID_HANDLE)
|
||||
{
|
||||
throw new Exception("AcceptSecurityContext failed, invalid handle");
|
||||
throw new Exception("AcceptSecurityContext failed, Invalid handle");
|
||||
}
|
||||
else if (result == SEC_E_INVALID_TOKEN)
|
||||
{
|
||||
throw new Exception("AcceptSecurityContext failed, invalid security token");
|
||||
throw new Exception("AcceptSecurityContext failed, Invalid security token");
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("AcceptSecurityContext failed, error code 0x" + result.ToString("X"));
|
||||
throw new Exception("AcceptSecurityContext failed, Error code 0x" + result.ToString("X"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue