From 4ec1033741e2f54c29d885bb5174dcc623a3117e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 31 Oct 2016 01:42:21 -0700 Subject: [PATCH] win-capture: Do not require pipe/mutex within hook Named pipes cannot be used within UWP programs, so make them optional. --- plugins/win-capture/graphics-hook/graphics-hook.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/win-capture/graphics-hook/graphics-hook.c b/plugins/win-capture/graphics-hook/graphics-hook.c index e994b26d3..1a5c017f8 100644 --- a/plugins/win-capture/graphics-hook/graphics-hook.c +++ b/plugins/win-capture/graphics-hook/graphics-hook.c @@ -237,15 +237,11 @@ static inline bool init_hook(HANDLE thread_handle) sprintf(keepalive_name, "%s%lu", EVENT_HOOK_KEEPALIVE, GetCurrentProcessId()); - if (!init_pipe()) { - return false; - } + init_pipe(); if (!init_signals()) { return false; } - if (!init_mutexes()) { - return false; - } + init_mutexes(); if (!init_system_path()) { return false; }