Skip to content

I20250131-1800

@HeikoKlare HeikoKlare tagged this 31 Jan 17:56
Edge compares the result of WebView initialization with an HRESULT
created from a Windows error code via the HRESULT_FROM_WIN32 macro. The
actual result in that initialization callback is a long while the
HRESULT returned from the macro is represented as integer in SWT. The
current comparison of long and integer does not take into account that
the values are signed. In this specific case, the actual HRESULT to
compare against is 2147947423 while the HRESULT_FROM_WIN32 macro returns
the signed value -2147019873. The actual result needs to be converted
into a signed integer as well, as otherwise it will be considered as
2147947423, thus never matching the expected HRESULT value.

This change converts the processed result into an integer to correct the
comparison.
Assets 2
Loading