mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Initialize STARTUPINFOW.cb
This commit is contained in:
parent
4d4f1e8bf5
commit
97e3b3c850
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
|
|
@ -923,7 +923,10 @@ namespace Flow.Launcher.Infrastructure
|
|||
/// </summary>
|
||||
public static unsafe bool RunAsDesktopUser(string app, string currentDir, string cmdLine, bool loadProfile, bool createNoWindow, out string errorInfo)
|
||||
{
|
||||
STARTUPINFOW si = new();
|
||||
STARTUPINFOW si = new()
|
||||
{
|
||||
cb = (uint)Marshal.SizeOf<STARTUPINFOW>()
|
||||
};
|
||||
PROCESS_INFORMATION pi = new();
|
||||
errorInfo = string.Empty;
|
||||
HANDLE hShellProcess = HANDLE.Null, hShellProcessToken = HANDLE.Null, hPrimaryToken = HANDLE.Null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue