Skip to content

Commit

Permalink
implicit casting workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Nov 14, 2024
1 parent 1746795 commit 2f39aeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions published/external/xdp/details/ioctlfn.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ _XdpIoctl(
XdpHandle, *Event, NULL, Overlapped, IoStatusBlock, Operation, InBuffer,
InBufferSize, OutBuffer, OutputBufferSize));

#pragma warning(push)
#pragma warning(disable: 6221)
XDPAPI_ASSERT(XdpStatus != XDP_STATUS_PENDING || MayPend);

if (Event == &LocalEvent && XdpStatus == XDP_STATUS_PENDING) {
Expand All @@ -255,6 +257,7 @@ _XdpIoctl(

XdpStatus = _XdpConvertNtStatusToXdpStatus(IoStatusBlock->Status);
}
#pragma warning(pop)

if (BytesReturned != NULL) {
*BytesReturned = (ULONG)IoStatusBlock->Information;
Expand Down

0 comments on commit 2f39aeb

Please sign in to comment.