diff --git a/src/test/bin/winkernel/control.cpp b/src/test/bin/winkernel/control.cpp index fb62f7689e..bdeab35fd3 100644 --- a/src/test/bin/winkernel/control.cpp +++ b/src/test/bin/winkernel/control.cpp @@ -692,14 +692,14 @@ QuicTestCtlEvtIoDeviceControl( STRSAFE_NULL_ON_FAILURE); #if defined(QUIC_API_ENABLE_PREVIEW_FEATURES) - QUIC_EXECUTION_CONFIG* Config = &Params->TestConfigurationParams.Config; - if (Config->Flags != QUIC_EXECUTION_CONFIG_FLAG_NONE) { + QUIC_EXECUTION_CONFIG Config = Params->TestConfigurationParams.Config; + if (Config.Flags != QUIC_EXECUTION_CONFIG_FLAG_NONE) { Status = MsQuic->SetParam( nullptr, QUIC_PARAM_GLOBAL_EXECUTION_CONFIG, sizeof(Config), - Config); + &Config); } #endif