--
v3: d3dx9: Validate filter argument in texture from file functions.
d3dx9: Validate filter argument in D3DXLoadSurfaceFrom{Surface,FileInMemory,Memory}().
d3dx9: Validate filter argument in D3DXLoadVolumeFrom{Volume,FileInMemory,Memory}().
d3dx9: Further validate filter argument passed to D3DXFilterTexture().
d3dx9: Introduce helper function for retrieving the mip filter value in texture from file functions.
d3dx9/tests: Add d3dx filter argument value tests.
d3dx9: Return failure from D3DXLoadSurfaceFromMemory() if d3dx_load_pixels_from_pixels() fails.
d3dx9: Return success in D3DXLoadSurfaceFromMemory() for multisampled destination surfaces.
d3dx9/tests: Add tests for D3DXLoadSurfaceFromMemory() with a multisampled surface.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6157
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/treeview.c:
> !(item->state & TVIS_EXPANDEDONCE));
> if (sendsNotifications)
> {
> - if (!TREEVIEW_SendExpanding(infoPtr, item, TVE_EXPAND))
> - {
> - TRACE(" TVN_ITEMEXPANDING returned TRUE, exiting...\n");
> - return FALSE;
> - }
> + if (!TREEVIEW_SendExpanding(infoPtr, item, TVE_EXPAND))
Let's change TREEVIEW_SendExpanding to return the return value from TREEVIEW_SendTreeviewNotify() so we don't to need negate the return value twice and it's more intuitive this way.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/6218#note_78098
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/treeview.c:
> }
> case TVN_ITEMEXPANDINGA:
> {
> - UINT newmask = pTreeView->itemNew.mask & ~TVIF_CHILDREN;
> + UINT newmask;
> + if (tvn_itemexpanding_ret)
> + {
> + tvn_itemexpanding_ret = 0;
Let's use a similar naming convention like other global variables, for example, g_reject_tvn_itemexpanding. And let parent_wnd_proc always return TRUE when g_reject_tvn_itemexpanding is TRUE and then reset the variable to zero in test_expandnotify() after your tests.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/6218#note_78093