diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/msquic/avoid-w-invalid-unevaluated-string.patch | |
Diffstat (limited to 'vcpkg/ports/msquic/avoid-w-invalid-unevaluated-string.patch')
| -rw-r--r-- | vcpkg/ports/msquic/avoid-w-invalid-unevaluated-string.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/vcpkg/ports/msquic/avoid-w-invalid-unevaluated-string.patch b/vcpkg/ports/msquic/avoid-w-invalid-unevaluated-string.patch new file mode 100644 index 0000000..9ad0a24 --- /dev/null +++ b/vcpkg/ports/msquic/avoid-w-invalid-unevaluated-string.patch @@ -0,0 +1,69 @@ +diff --git a/src/core/mtu_discovery.c b/src/core/mtu_discovery.c +index a40c05c..8891efc 100644 +--- a/src/core/mtu_discovery.c ++++ b/src/core/mtu_discovery.c +@@ -34,8 +34,8 @@ Abstract: + #include "mtu_discovery.c.clog.h" + #endif + +-CXPLAT_STATIC_ASSERT(CXPLAT_MAX_MTU >= QUIC_DPLPMTUD_DEFAULT_MAX_MTU, L"Default max must not be more than max"); +-CXPLAT_STATIC_ASSERT(QUIC_DPLPMTUD_MIN_MTU <= QUIC_DPLPMTUD_DEFAULT_MIN_MTU, L"Default min must not be less than min"); ++CXPLAT_STATIC_ASSERT(CXPLAT_MAX_MTU >= QUIC_DPLPMTUD_DEFAULT_MAX_MTU, "Default max must not be more than max"); ++CXPLAT_STATIC_ASSERT(QUIC_DPLPMTUD_MIN_MTU <= QUIC_DPLPMTUD_DEFAULT_MIN_MTU, "Default min must not be less than min"); + + _IRQL_requires_max_(PASSIVE_LEVEL) + static +diff --git a/src/core/packet_builder.h b/src/core/packet_builder.h +index 97d6079..912ce89 100644 +--- a/src/core/packet_builder.h ++++ b/src/core/packet_builder.h +@@ -158,7 +158,7 @@ typedef struct QUIC_PACKET_BUILDER { + + CXPLAT_STATIC_ASSERT( + sizeof(QUIC_PACKET_BUILDER) < 1024, +- L"Packet builder should be small enough to fit on the stack."); ++ "Packet builder should be small enough to fit on the stack."); + + // + // Initializes the packet builder for general use. +diff --git a/src/core/quicdef.h b/src/core/quicdef.h +index 219ef33..07956b5 100644 +--- a/src/core/quicdef.h ++++ b/src/core/quicdef.h +@@ -240,10 +240,10 @@ typedef struct QUIC_RX_PACKET QUIC_RX_PACKET; + #define QUIC_MAX_RANGE_ACK_PACKETS 0x800 // 2048 + #define QUIC_MAX_RANGE_DECODE_ACKS 0x1000 // 4096 + +-CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_ALLOC_SIZE), L"Must be power of two"); +-CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_DUPLICATE_PACKETS), L"Must be power of two"); +-CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_ACK_PACKETS), L"Must be power of two"); +-CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_DECODE_ACKS), L"Must be power of two"); ++CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_ALLOC_SIZE), "Must be power of two"); ++CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_DUPLICATE_PACKETS), "Must be power of two"); ++CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_ACK_PACKETS), "Must be power of two"); ++CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(QUIC_MAX_RANGE_DECODE_ACKS), "Must be power of two"); + + // + // Minimum MTU allowed to be configured. Must be able to fit a +@@ -300,7 +300,7 @@ CXPLAT_STATIC_ASSERT(QUIC_INITIAL_PACKET_LENGTH >= QUIC_MIN_INITIAL_PACKET_LENGT + + CXPLAT_STATIC_ASSERT( + QUIC_DEFAULT_DISCONNECT_TIMEOUT <= QUIC_MAX_DISCONNECT_TIMEOUT, +- L"Default disconnect timeout should always be less than max"); ++ "Default disconnect timeout should always be less than max"); + + // + // The default connection idle timeout (in milliseconds). +diff --git a/src/core/range.h b/src/core/range.h +index b6d2cc0..ca6d3cd 100644 +--- a/src/core/range.h ++++ b/src/core/range.h +@@ -21,7 +21,7 @@ typedef struct QUIC_SUBRANGE { + + } QUIC_SUBRANGE; + +-CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(sizeof(QUIC_SUBRANGE)), L"Must be power of two"); ++CXPLAT_STATIC_ASSERT(IS_POWER_OF_TWO(sizeof(QUIC_SUBRANGE)), "Must be power of two"); + + typedef struct QUIC_RANGE_SEARCH_KEY { + |