@@ -35,7 +35,7 @@ if (options.As(&optionsStaging10) == S_OK)
3535{
3636 // Configure port ranges for WebRTC UDP traffic to work within enterprise firewalls
3737 // Set UDP port range (example: 50000-55000 for enterprise environments)
38- const INT32 udpMin = 50000, udpMax = 55000;
38+ const UINT32 udpMin = 50000, udpMax = 55000;
3939
4040 CHECK_FAILURE (optionsStaging10->SetAllowedPortRange(
4141 COREWEBVIEW2_TRANSPORT_PROTOCOL_UDP, udpMin, udpMax));
@@ -109,8 +109,8 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
109109 ///
110110 HRESULT SetAllowedPortRange(
111111 [in] COREWEBVIEW2_TRANSPORT_PROTOCOL protocol,
112- [in] INT32 minPort,
113- [in] INT32 maxPort
112+ [in] UINT32 minPort,
113+ [in] UINT32 maxPort
114114 );
115115
116116 /// Gets the allowed port range for the specified transport protocol.
@@ -124,8 +124,8 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
124124 ///
125125 HRESULT GetAllowedPortRange(
126126 [in] COREWEBVIEW2_TRANSPORT_PROTOCOL protocol,
127- [out] INT32 * minPort,
128- [out] INT32 * maxPort
127+ [out] UINT32 * minPort,
128+ [out] UINT32 * maxPort
129129 );
130130
131131
@@ -147,8 +147,8 @@ namespace Microsoft.Web.WebView2.Core
147147 [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2StagingEnvironmentOptions10" )]
148148 {
149149 // ICoreWebView2StagingEnvironmentOptions10 members
150- void SetAllowedPortRange(CoreWebView2NetworkProtocol protocol, Int32 minPort, Int32 maxPort);
151- void GetAllowedPortRange(CoreWebView2NetworkProtocol protocol, out Int32 minPort, out Int32 maxPort);
150+ void SetAllowedPortRange(CoreWebView2NetworkProtocol protocol, UInt32 minPort, UInt32 maxPort);
151+ void GetAllowedPortRange(CoreWebView2NetworkProtocol protocol, out UInt32 minPort, out UInt32 maxPort);
152152 }
153153 }
154154}
0 commit comments