Skip to content

Commit 3418f7e

Browse files
author
Ben Hillis
committed
formatting
1 parent 2e57b33 commit 3418f7e

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/windows/wslpluginhost/exe/PluginHost.cpp

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ try
126126

127127
g_hookThreadId.store(GetCurrentThreadId());
128128
m_pluginErrorMessage.reset();
129-
auto cleanup = wil::scope_exit([&] {
130-
g_hookThreadId.store(0);
131-
});
129+
auto cleanup = wil::scope_exit([&] { g_hookThreadId.store(0); });
132130

133131
HRESULT hr = m_hooks.OnVMStarted(&ctx.info, &settings);
134132

@@ -154,9 +152,7 @@ try
154152
auto ctx = BuildSessionContext(SessionId, UserToken, SidSize, SidData);
155153

156154
g_hookThreadId.store(GetCurrentThreadId());
157-
auto cleanup = wil::scope_exit([&] {
158-
g_hookThreadId.store(0);
159-
});
155+
auto cleanup = wil::scope_exit([&] { g_hookThreadId.store(0); });
160156

161157
HRESULT hr = m_hooks.OnVMStopping(&ctx.info);
162158

@@ -199,9 +195,7 @@ try
199195

200196
g_hookThreadId.store(GetCurrentThreadId());
201197
m_pluginErrorMessage.reset();
202-
auto cleanup = wil::scope_exit([&] {
203-
g_hookThreadId.store(0);
204-
});
198+
auto cleanup = wil::scope_exit([&] { g_hookThreadId.store(0); });
205199

206200
HRESULT hr = m_hooks.OnDistributionStarted(&ctx.info, &distro);
207201

@@ -246,9 +240,7 @@ try
246240
distro.Version = Version ? Version : L"";
247241

248242
g_hookThreadId.store(GetCurrentThreadId());
249-
auto cleanup = wil::scope_exit([&] {
250-
g_hookThreadId.store(0);
251-
});
243+
auto cleanup = wil::scope_exit([&] { g_hookThreadId.store(0); });
252244

253245
HRESULT hr = m_hooks.OnDistributionStopping(&ctx.info, &distro);
254246

@@ -283,9 +275,7 @@ try
283275
distro.Version = Version ? Version : L"";
284276

285277
g_hookThreadId.store(GetCurrentThreadId());
286-
auto cleanup = wil::scope_exit([&] {
287-
g_hookThreadId.store(0);
288-
});
278+
auto cleanup = wil::scope_exit([&] { g_hookThreadId.store(0); });
289279

290280
HRESULT hr = m_hooks.OnDistributionRegistered(&ctx.info, &distro);
291281

@@ -320,9 +310,7 @@ try
320310
distro.Version = Version ? Version : L"";
321311

322312
g_hookThreadId.store(GetCurrentThreadId());
323-
auto cleanup = wil::scope_exit([&] {
324-
g_hookThreadId.store(0);
325-
});
313+
auto cleanup = wil::scope_exit([&] { g_hookThreadId.store(0); });
326314

327315
HRESULT hr = m_hooks.OnDistributionUnregistered(&ctx.info, &distro);
328316

0 commit comments

Comments
 (0)