summaryrefslogtreecommitdiff
path: root/chromium/sandbox/win/src/named_pipe_interception.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/sandbox/win/src/named_pipe_interception.cc')
-rw-r--r--chromium/sandbox/win/src/named_pipe_interception.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/sandbox/win/src/named_pipe_interception.cc b/chromium/sandbox/win/src/named_pipe_interception.cc
index f437b1c2e85..c62d0931d73 100644
--- a/chromium/sandbox/win/src/named_pipe_interception.cc
+++ b/chromium/sandbox/win/src/named_pipe_interception.cc
@@ -27,12 +27,12 @@ HANDLE WINAPI TargetCreateNamedPipeW(
if (INVALID_HANDLE_VALUE != pipe)
return pipe;
- DWORD original_error = ::GetLastError();
-
// We don't trust that the IPC can work this early.
if (!SandboxFactory::GetTargetServices()->GetState()->InitCalled())
return INVALID_HANDLE_VALUE;
+ DWORD original_error = ::GetLastError();
+
// We don't support specific Security Attributes.
if (security_attributes)
return INVALID_HANDLE_VALUE;