Skip to content

Commit

Permalink
Make CodeCheck builds happy (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed May 3, 2024
1 parent 4b6b857 commit 1901d1d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,9 @@ MsQuicSetParam(
{
CXPLAT_PASSIVE_CODE();

const BOOLEAN IsPriority = !!(Param & QUIC_PARAM_HIGH_PRIORITY);
Param &= ~QUIC_PARAM_HIGH_PRIORITY;

if ((Handle == NULL) ^ QUIC_PARAM_IS_GLOBAL(Param)) {
//
// Ensure global parameters don't have a handle passed in, and vice
Expand All @@ -1381,8 +1384,6 @@ MsQuicSetParam(
Handle);

QUIC_STATUS Status;
const BOOLEAN IsPriority = !!(Param & QUIC_PARAM_HIGH_PRIORITY);
Param &= ~QUIC_PARAM_HIGH_PRIORITY;

if (QUIC_PARAM_IS_GLOBAL(Param)) {
//
Expand Down Expand Up @@ -1489,6 +1490,9 @@ MsQuicGetParam(
{
CXPLAT_PASSIVE_CODE();

const BOOLEAN IsPriority = !!(Param & QUIC_PARAM_HIGH_PRIORITY);
Param &= ~QUIC_PARAM_HIGH_PRIORITY;

if ((Handle == NULL) ^ QUIC_PARAM_IS_GLOBAL(Param) ||
BufferLength == NULL) {
//
Expand All @@ -1505,8 +1509,6 @@ MsQuicGetParam(
Handle);

QUIC_STATUS Status;
const BOOLEAN IsPriority = !!(Param & QUIC_PARAM_HIGH_PRIORITY);
Param &= ~QUIC_PARAM_HIGH_PRIORITY;

if (QUIC_PARAM_IS_GLOBAL(Param)) {
//
Expand Down

0 comments on commit 1901d1d

Please sign in to comment.