소스 검색

Minor exception message changes

Tal Aloni 7 년 전
부모
커밋
d74a478db8
1개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 9 9
      SMBLibrary/Win32/Security/SSPIHelper.cs

+ 9 - 9
SMBLibrary/Win32/Security/SSPIHelper.cs

@@ -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"));
                 }
             }
         }