This commit is contained in:
Stefan Markovic 2024-02-22 08:59:10 +01:00
parent fed3f4a483
commit 66578f052f
2 changed files with 6 additions and 1 deletions

View File

@ -135,6 +135,7 @@ public:
Trace::InvokedRet(result);
return result;
}
create_pipe_thread.join();
if (hPipe != INVALID_HANDLE_VALUE)
{

View File

@ -82,7 +82,11 @@ namespace PowerToys.FileLocksmithUI.ViewModels
var args = Environment.GetCommandLineArgs();
var pipeName = args.Where(s => s.Contains("\\\\.\\pipe\\")).FirstOrDefault();
MessageBox.Show(args.ToString());
foreach (var s in args)
{
MessageBox.Show(s);
}
paths = NativeMethods.ReadPathsFromPipe(pipeName);
Logger.LogInfo($"Starting FileLocksmith with {paths.Length} files selected.");
LoadProcessesCommand = new AsyncRelayCommand(LoadProcessesAsync);