aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/zenserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/zenserver.cpp')
-rw-r--r--src/zenserver/zenserver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index d8176678d..daec743a0 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -124,8 +124,9 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen
if (ParentPid)
{
- ProcessHandle OwnerProcess;
- OwnerProcess.Initialize(ParentPid);
+ std::error_code Ec;
+ ProcessHandle OwnerProcess;
+ OwnerProcess.Initialize(ParentPid, /* out */ Ec);
if (!OwnerProcess.IsValid())
{