Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54037
test_SendMessage_other_thread(2), which is supposed to show that
Windows doesn't use an internal sent message for SetParent, tacks
this onto another more complex test, which introduces a race
condition (see Comment 2 on the bug). I am not sure if it can be
fixed in the existing function, perhaps it can and I just can't
keep track of all the moving parts well enough, but I see no need
to make it so difficult.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4493
Some distros arbitrary flags into clang config files without guarding it for applicable targets, which breaks cross compilation.
--
v2: winegcc: Support --no-default-config argument.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4492
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45123
In `gdiplus/graphicspath.c` calculating the Pythagorean addition is needed, which is defined as:
a ⊕ b = sqrt(a^2+b^2)
This is hypotenuse, or the length of the longest side of a right-angled triangle, that we know the other 2 sides, a and b.
https://en.wikipedia.org/wiki/Pythagorean_addition
By using `sqrt(a * a + b * b)`, for large (or small) `a` or `b`, there is a possibility of overflow (underflow),
although the result itself is not that big (small) to cause overflow (underflow).
To overcome this problem, there are implementations of hypotenuse that do not use power of 2,
and use other methods to calculate the result.
To calculate `a ⊕ b`, you can easily use `hypotf(a,b)`.
https://en.cppreference.com/w/cpp/numeric/math/hypot
--
v4: gdiplus/font: Avoid computation overflow and underflow by using hypotf
gdiplus/graphicspath: Avoid computation overflow and underflow by using hypotf.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4475