Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/dotnet/src/wpf/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class Server
public static int Start(string arg)
{
int pid = Process.GetCurrentProcess().Id;
using (NamedPipeServerStream pipeServer = new NamedPipeServerStream(String.Format("pywinauto_{0}", pid), PipeDirection.InOut, 1, PipeTransmissionMode.Message))
using (NamedPipeServerStream pipeServer = new NamedPipeServerStream(String.Format("process_{0}", pid), PipeDirection.InOut, 1, PipeTransmissionMode.Message))
{
bool stop = false;
while (!stop)
Expand Down
7 changes: 3 additions & 4 deletions src/injected/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ def call_action(self, action_name, pid, **params):
reply = json.loads(reply)

reply_code = reply['status_code']
reply_message = reply['message']

if reply_code == UNSUPPORTED_ACTION:
raise InjectedUnsupportedActionError(reply_message)
raise InjectedUnsupportedActionError(reply['message'])
elif reply_code == RUNTIME_ERROR:
raise InjectedRuntimeError(reply_message)
raise InjectedRuntimeError(reply['message'])
elif reply_code == NOT_FOUND:
raise InjectedNotFoundError(reply_message)
raise InjectedNotFoundError(reply['message'])
Comment thread
vasily-v-ryabov marked this conversation as resolved.
elif reply_code != OK:
raise InjectedBaseError()

Expand Down
Binary file modified src/injected/libs/dotnet/x64/Newtonsoft.Json.dll
Binary file not shown.
Binary file modified src/injected/libs/dotnet/x64/worker_wpf.dll
Binary file not shown.
Loading