diff --git a/src/tests/profiler/native/profiler.h b/src/tests/profiler/native/profiler.h index 9231c576cd353c..d3da750f3467cf 100644 --- a/src/tests/profiler/native/profiler.h +++ b/src/tests/profiler/native/profiler.h @@ -68,14 +68,14 @@ class ShutdownGuard // ELT hooks will continue to be called. We would AV if we tried to call // in to freed resources. #define SHUTDOWNGUARD() \ - ShutdownGuard(); \ + ShutdownGuard shutdownGuard; \ if (ShutdownGuard::HasShutdownStarted()) \ { \ return S_OK; \ } #define SHUTDOWNGUARD_RETVOID() \ - ShutdownGuard(); \ + ShutdownGuard shutdownGuard; \ if (ShutdownGuard::HasShutdownStarted()) \ { \ return; \