mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
code style
This commit is contained in:
@@ -17,7 +17,6 @@ internal sealed partial class PrivateNamedPipeClient : IDisposable
|
|||||||
{
|
{
|
||||||
if (clientStream.TryConnectOnce())
|
if (clientStream.TryConnectOnce())
|
||||||
{
|
{
|
||||||
Span<byte> headerSpan = stackalloc byte[sizeof(PipePacketHeader)];
|
|
||||||
bool serverElevated = false;
|
bool serverElevated = false;
|
||||||
{
|
{
|
||||||
// Connect
|
// Connect
|
||||||
@@ -31,6 +30,7 @@ internal sealed partial class PrivateNamedPipeClient : IDisposable
|
|||||||
|
|
||||||
{
|
{
|
||||||
// Get previous instance elevated status
|
// Get previous instance elevated status
|
||||||
|
Span<byte> headerSpan = stackalloc byte[sizeof(PipePacketHeader)];
|
||||||
clientStream.ReadExactly(headerSpan);
|
clientStream.ReadExactly(headerSpan);
|
||||||
fixed (byte* pHeader = headerSpan)
|
fixed (byte* pHeader = headerSpan)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user