mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
few more
This commit is contained in:
@@ -15,9 +15,8 @@ namespace mRemoteNG.Connection
|
||||
[SupportedOSPlatform("windows")]
|
||||
public sealed class PuttySessionInfo : ConnectionInfo, IComponent
|
||||
{
|
||||
#region Properties
|
||||
|
||||
[Browsable(false)] public RootPuttySessionsNodeInfo RootRootPuttySessionsInfo { get; set; }
|
||||
[Browsable(false)]
|
||||
public RootPuttySessionsNodeInfo RootRootPuttySessionsInfo { get; set; } = default!;
|
||||
|
||||
[ReadOnly(true)] public override string PuttySession { get; set; } = string.Empty;
|
||||
|
||||
@@ -35,7 +34,7 @@ namespace mRemoteNG.Connection
|
||||
[ReadOnly(true), Browsable(false)]
|
||||
public override string Panel
|
||||
{
|
||||
get => Parent?.Panel;
|
||||
get => Parent?.Panel ?? string.Empty; // Provide a default value to handle null cases
|
||||
set { }
|
||||
}
|
||||
|
||||
@@ -58,7 +57,7 @@ namespace mRemoteNG.Connection
|
||||
|
||||
[ReadOnly(true), Browsable(false)] public override string UserField { get; set; } = string.Empty;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
[Command(), LocalizedAttributes.LocalizedDisplayName("strPuttySessionSettings")]
|
||||
public void SessionSettings()
|
||||
|
||||
@@ -245,17 +245,19 @@ namespace mRemoteNG.Tools
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
||||
public class WINTRUST_FILE_INFO
|
||||
{
|
||||
public WINTRUST_FILE_INFO()
|
||||
{
|
||||
cbStruct = (uint)Marshal.SizeOf(typeof(WINTRUST_FILE_INFO));
|
||||
}
|
||||
{
|
||||
public WINTRUST_FILE_INFO()
|
||||
{
|
||||
cbStruct = (uint)Marshal.SizeOf(typeof(WINTRUST_FILE_INFO));
|
||||
pcwszFilePath = string.Empty; // Initialize to an empty string to satisfy non-nullable property
|
||||
}
|
||||
|
||||
private uint cbStruct;
|
||||
[MarshalAs(UnmanagedType.LPTStr)]public string pcwszFilePath;
|
||||
public IntPtr hFile;
|
||||
public IntPtr pgKnownSubject;
|
||||
}
|
||||
private uint cbStruct;
|
||||
[MarshalAs(UnmanagedType.LPTStr)]
|
||||
public string pcwszFilePath;
|
||||
public IntPtr hFile;
|
||||
public IntPtr pgKnownSubject;
|
||||
}
|
||||
|
||||
public const int CRYPT_E_NO_MATCH = unchecked ((int) 0x80092009);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user