Skip to content

Commit 5b17597

Browse files
committed
fix msvc warning
1 parent f255219 commit 5b17597

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/api.c

+3
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,13 @@ MsQuicStreamSend(
10821082
SendRequest->TotalLength = TotalLength;
10831083
SendRequest->ClientContext = ClientSendContext;
10841084

1085+
#pragma warning(push)
1086+
#pragma warning(disable:6240) // CXPLAT_AT_DISPATCH only really does anything for kernel mode
10851087
SendInline =
10861088
!Connection->Settings.SendBufferingEnabled &&
10871089
!CXPLAT_AT_DISPATCH() && // Never run inline if at DISPATCH
10881090
Connection->WorkerThreadID == CxPlatCurThreadID();
1091+
#pragma warning(pop)
10891092

10901093
CxPlatDispatchLockAcquire(&Stream->ApiSendRequestLock);
10911094
if (!Stream->Flags.SendEnabled) {

0 commit comments

Comments
 (0)