Skip to content

Commit

Permalink
Update CsWin32
Browse files Browse the repository at this point in the history
Also change base class for EditBase and ButtonControl.
  • Loading branch information
JeremyKuhne committed Feb 6, 2024
1 parent 085a430 commit 8cdacef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/thirtytwo/Controls/ButtonControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Windows;

public partial class ButtonControl : Window
public partial class ButtonControl : Control
{
private static readonly WindowClass s_buttonClass = new("Button");

Expand Down
2 changes: 1 addition & 1 deletion src/thirtytwo/Controls/EditBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Windows;

public abstract class EditBase : Window
public abstract class EditBase : Control
{
protected EditBase(
Rectangle bounds,
Expand Down
2 changes: 1 addition & 1 deletion src/thirtytwo/Win32/System/Registry/Registry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static string QueryKeyName(HKEY key)
status.ThrowIfFailed();

KEY_NAME_INFORMATION* nameInfo = (KEY_NAME_INFORMATION*)b;
return new ReadOnlySpan<char>(nameInfo->Name.Value, (int)nameInfo->NameLength / sizeof(char)).ToString();
return nameInfo->Name.AsSpan((int)nameInfo->NameLength / sizeof(char)).ToString();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/thirtytwo/thirtytwo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.83-beta">
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.85-beta">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 8cdacef

Please sign in to comment.