If the malloc(3) has failed to allocate the memory in the
init_xdg_dirs(), the latter returns nonzero value, but the 'file' handle
is kept open. This closes the handle before return from the
init_xdg_dirs() if the malloc(3) has failed.
--
v4: shell32: Fix possible handle leak
https://gitlab.winehq.org/wine/wine/-/merge_requests/5827
These patches fix painting in an application that draws outside of a CS_PARENTDC child
client area in its WM_PAINT handler.
Comments and suggestions are welcome.
--
v3: win32u: Use parent rectangle for visible region calculations of a CS_PARENTDC child.
win32u: Don't clip update region to the window client rectangle.
win32u: GetUpdateRect() should clip update rectangle to the window client area.
win32u: GetUpdateRgn() should clip update region to the window client area.
win32u: Clip PAINTSTRUCT.rcPaint to the window client area.
server: For a CS_PARENTDC child use parent for visible region calculations.
server: If the being validated region covers whole window then validate everything.
user32/tests: Add a message test for listbox redrawing after LB_SETCOUNT.
https://gitlab.winehq.org/wine/wine/-/merge_requests/5665