Made changes to comdlg32/itemdlg.c to add missing controls, which are the address bar and the up button.
Updated bitmaps in comctl32 and SVG files for history icons.
My changes help to resolve this bug: https://bugs.winehq.org/show_bug.cgi?id=50338.
--
v16: comdlg32: Add missing controls and their functionality to IFileDialog, or the common item dialog.
https://gitlab.winehq.org/wine/wine/-/merge_requests/672
Zebediah Figura (@zfigura) commented about dlls/wmvcore/async_reader.c:
> struct stream *stream = arg;
> struct async_reader *reader = stream->reader;
> struct sample *sample;
> + WCHAR buffer[256];
> HRESULT hr;
>
> TRACE("reader %p, number %u\n", reader, stream->number);
>
> + swprintf(buffer, ARRAY_SIZE(buffer), L"wine_wmreader_stream_%u_read", stream->number);
> + SetThreadDescription(GetCurrentThread(), buffer);
Linux cuts off thread names at 15 characters (not counting the null terminator), which somewhat unfortunately makes all of these identical to each other and the deliver threads. Thus far I think Brendan had been trying to make the thread names distinct, if not per se trying to fit the entire name within 15 characters.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1311#note_15868
> We need the read threads to always be running and returning their next sample because we then deliver them in PTS order.
Somewhat out of curiosity, did you check whether this still applies when DedicatedDeliveryThread is set?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1311#note_15869
On Mon Nov 14 12:05:16 2022 +0000, Rémi Bernon wrote:
> I don't think we need to check it here anymore with the latest version.
> Deselected streams will never have pending read requests (or they will
> shortly complete it after deselection, with either error or a last sample).
I guess, but it depends on the fact that "read_result" is zero-initialized and never written, which seems non-obvious and a little fragile. In fact, I think it can already break if a stream was selected and then later becomes deselected, even if the filter was stopped in between. Checking "stream->read_requested" would be more obvious but I think still broken for the same reasons (but simple enough to fix.)
Note that if you do that then read_result becomes superfluous and doesn't really need to be stored anywhere.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1311#note_15867
Zebediah Figura (@zfigura) commented about dlls/wmvcore/async_reader.c:
> +
> + LeaveCriticalSection(&reader->callback_cs);
> + hr = IWMSyncReader2_GetNextSample(reader->reader, stream->number,
> + &sample->buffer, &sample->pts, &sample->duration,
> + &sample->flags, &sample->output, &sample->stream);
> + EnterCriticalSection(&reader->callback_cs);
> + }
> +
> + if (SUCCEEDED(stream->read_result = hr))
> + {
> + TRACE("Got stream %u buffer with pts %I64d.\n", stream->number, sample->pts);
> + stream->next_sample = sample;
> + }
> + else
> + {
> + WARN("Failed to get stream %u sample, hr %#lx.\n", stream->number, stream->read_result);
Missed this the first time, but: I'd make this an ERR, personally. (An application can trigger it, but it's one of those cases where it's a sign that something went catastrophically wrong, and also we're pretty much guessing how to handle it if not.)
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1311#note_15865
Zebediah Figura (@zfigura) commented about dlls/wmvcore/async_reader.c:
> }
>
> if (!first_sample)
> - return NS_E_NO_MORE_SAMPLES;
> + return pending ? E_PENDING : NS_E_NO_MORE_SAMPLES;
What's the point of this? We never check the return code of async_reader_get_next_sample(), only whether it FAILED().
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1311#note_15866
Tests show that Global / Local functions are more robust and catch invalid pointers, to the contrary to heap functions.
I'd like to relax a bit the heap quick pointer validation, in order to avoid looping over the heap regions on every call, and to reduce the locking requirements, though this would then break the globalmem invalid pointer tests, unless they validate the pointers beforehand.
They should maybe use exception handlers rather than pointer validation, but the result is the same. I can change that if it matters.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1361
The drag and drop helpers are mainly used for providing visual feedback for drag and drop operations. While they do not actually influence the dragging process, some applications may expect it to succeed before initiating dragging. If the functions are not implemented, however, then dragging may fail.
This patch set contains tests for basic functionality of the functions involved. It does not account for displaying the drag-image, it just tests for enough functionality to create a basic implementation and allow dragging operations to carry on. Drag-image handling will be added later.
The patch set contains only the tests. The implementation will be added in a separate MR.
--
v2: shell32/tests: Add tests for drag and drop helpers
shell32/tests: Add, initialize and release new variables
shell32/tests: add mock IDataObject instances
https://gitlab.winehq.org/wine/wine/-/merge_requests/1371
The drag and drop helpers are mainly used for providing visual feedback for drag and drop operations. While they do not actually influence the dragging process, some applications may expect it to succeed before initiating dragging. If the functions are not implemented, however, then dragging may fail.
This patch set contains tests for basic functionality of the functions involved. It does not account for displaying the drag-image, it just tests for enough functionality to create a basic implementation and allow dragging operations to carry on. Drag-image handling will be added later.
The patch set contains only the tests. The implementation will be added in a separate MR.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1371
Overwatch 2 verifies that every kernel callback that is run, lives in user32. Introduce a callback in user32 that just forwards to the other modules' callbacks.
--
v15: user32: Remove NtUserDriverCallback* kernel callbacks.
winex11.drv: Route kernel callbacks through user32.
winex11.drv: Pass a struct to x11drv_ime_set_result.
winex11.drv: Pass a struct to x11drv_dnd_post_drop.
winemac.drv: Route kernel callbacks through user32.
wineandroid.drv: Route kernel callbacks through user32.
opengl32: Route kernel callbacks through user32.
winevulkan: Route kernel callbacks through user32.
user32: Add NtUserDispatchCallback kernel callback.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1180
Block records are not processed; only the bitcode is validated.
--
v4: vkd3d-shader/dxil: Read and validate global abbreviated operands.
vkd3d-shader/dxil: Read and validate local abbreviated operands.
vkd3d-compiler: Introduce a dxil-asm target type.
vkd3d-compiler: Introduce a dxbc-dxil source type.
vkd3d-shader/dxil: Read and validate DXIL bitcode unabbreviated blocks.
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/44
v2: Fixed test failures on earlier l3codecx.ax versions.
--
v2: winegstreamer: Set allocator properties for MPEG layer-3 decoder source.
quartz/tests: Add tests for MPEG layer-3 decoder source allocator.
winegstreamer: Check whether transform is supported when creating MPEG layer-3 decoder.
winegstreamer: Implement output media type enumeration in MPEG layer-3 decoder.
quartz/tests: Add tests for MPEG layer-3 decoder output media type enumeration.
quartz/tests: Add tests for MPEG layer-3 decoder sink allocator.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1298