Commit graph

161371 commits

Author SHA1 Message Date
Rémi Bernon bd747f22c3 wmvcore/tests: Test user time granularity and delivered pts. 2022-12-01 10:20:27 +01:00
Rémi Bernon 35991d9d94 wmvcore/tests: Track and check last and next output pts. 2022-12-01 10:20:27 +01:00
Rémi Bernon 31a08b84ce wmvcore/tests: Test OnTime callback events synchronously. 2022-12-01 10:20:27 +01:00
Rémi Bernon ce64755578 wmvcore/tests: Fix OnStreamSample stream number checks. 2022-12-01 10:20:27 +01:00
Rémi Bernon debe249ae9 wmvcore/tests: Test that a unique read thread is involved.
And that it also allocates the samples.
2022-12-01 10:20:25 +01:00
Rémi Bernon 5e70f1cfaf wmvcore: Move async reader from winegstreamer/wm_asyncreader.c. 2022-12-01 10:20:14 +01:00
Nikolay Sivov 30c33c2f98 d3d10/effect: Add sin/cos instruction support for expressions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 23:32:37 +01:00
Nikolay Sivov 8dcadad5c0 d3d10/effect: Add 'mul' instruction support for expressions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 23:32:36 +01:00
Nikolay Sivov eb3e4b79ac d3d10/effect: Add 'neg' instruction support for expressions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 23:32:34 +01:00
Nikolay Sivov 854ecc773c d3d10/effect: Add min/max instructions support for expressions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 23:32:33 +01:00
Nikolay Sivov 9a4f1bb229 d3d10/effect: Remove unused field from property description data.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 23:32:31 +01:00
Gabriel Ivăncescu 4376a8c709 include/mshtmhst: Add CGID_ScriptSite and CMDIDs for it.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Gabriel Ivăncescu a431aa42b0 mshtml/tests: Expect UpdateUI, Exec_UPDATECOMMANDS and Exec_SETTITLE in edit mode.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53530
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Gabriel Ivăncescu 823a4414f2 mshtml/tests: Allow BINDINFO_OPTIONS_ENABLE_UTF8 in bind options.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52910
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Gabriel Ivăncescu 8cb7dc2e40 mshtml: Don't lock document mode when querying IEventTarget.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Gabriel Ivăncescu 2e4721ac8f jscript: Pass correct 'this' to host objects in ES5 mode.
For some reason, only pure js objects are passed in mshtml's jscript engine.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Gabriel Ivăncescu 144479afa1 mshtml: Send load event synchronously for img elements that loaded instantly in legacy modes.
Otherwise, script56.chm's javascript will keep reloading the image and
triggering onload events non-stop. It protects against this using a variable
"noReentry", which is only set temporarily while setting the source, so it
expects it to be triggered synchronously.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53927
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Gabriel Ivăncescu ce54f50feb mshtml: Keep a ref to the window during the doc nsevent handlers.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53999
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-30 20:48:20 +01:00
Ivo Ivanov 46360dd732 wineusb.sys: Move event handling to a single thread.
Also fixes a segmentation fault on exit of winedevice.exe.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52213
2022-11-30 20:48:20 +01:00
Zebediah Figura f5ce9f6312 wined3d: Use unsigned int for "refcount" variables. 2022-11-30 20:48:20 +01:00
Robert Wilhelm 39058487ec vbscript: Handle "case" statements without separators.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53678
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 20:48:20 +01:00
Rémi Bernon 4979ae5a94 kernelbase: Restore HEAP_REALLOC_IN_PLACE_ONLY usage in LocalReAlloc.
This effectively reverts 2be9b0ff4a, which
incorrectly removed the flag, when the reallocation failures the tests
showed were coming from an underlying LFH in-place reallocation failure.

Thus, it restores todo_wine where appropriate while removing other todos
for sizes outside of the LFH block size range.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53996
2022-11-30 20:38:27 +01:00
Rémi Bernon a568704c32 kernel32/tests: Add more GlobalReAlloc tests with larger size.
In place reallocation is possible, although it depends on the underlying
heap strategy. The LFH heap usually fails as it doesn't blocks to grow
or shrink out of their size class. Larger block (LFH is limited to 16K
blocks), more often allow in-place reallocation, and some native DLLs
depend on this.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53996
2022-11-30 20:38:27 +01:00
Rémi Bernon b793367c67 kernel32/tests: Make sure the LFH is enabled for some sizes.
Making the GlobalReAlloc tests more sensible, as they fail to reallocate
when the block was allocated with the LFH and the new size wouldn't.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54012
2022-11-30 20:38:27 +01:00
Rémi Bernon a51e2a3f94 ntdll: Move delayed free support out of heap_free. 2022-11-30 20:38:27 +01:00
Rémi Bernon cbe3fb89d2 ntdll: Move large block free out of heap_free. 2022-11-30 20:38:27 +01:00
Rémi Bernon 523d4cc416 ntdll: Move large block alloc out of heap_allocate. 2022-11-30 20:38:27 +01:00
Rémi Bernon a7fda2f8cb ntdll: Make realloc implementation more generic.
Either resizing a block in place, or reallocating through RtlHeap calls.
2022-11-30 20:38:27 +01:00
Rémi Bernon ce450253bd ntdll: Return the old data size from heap_reallocate. 2022-11-30 20:38:27 +01:00
Rémi Bernon 4334c5b0c1 ntdll: Move large block resize in heap_reallocate. 2022-11-30 20:38:27 +01:00
Rémi Bernon 0c5f9e8d4e ntdll: Merge next free block before resizing in heap_reallocate. 2022-11-30 20:38:27 +01:00
Connor McAdams c0360db561 uiautomationcore: Add UiaAddEvent stub.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-11-30 20:38:27 +01:00
Connor McAdams 41736eb554 uiautomationcore: Add UiaEventRemoveWindow stub.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-11-30 20:38:27 +01:00
Connor McAdams 9ea53ec2f6 uiautomationcore: Add UiaEventAddWindow stub.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-11-30 20:38:27 +01:00
Connor McAdams 922706bd1e uiautomationcore: Add UiaRemoveEvent stub.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-11-30 20:38:27 +01:00
Michael Stefaniuc b58c88d14d dmstyle: Move a struct declaration to the file it is used in.
And get rid of the typedef for that struct.
2022-11-30 20:38:27 +01:00
Michael Stefaniuc 44400613cb dmstyle: Get rid of a no longer used function. 2022-11-30 20:38:27 +01:00
Michael Stefaniuc 25de40af07 dmstyle: Simplify parsing of a style reference list.
Avoids adding an invalid style reference to the list with subsequent
crash on release.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53941
2022-11-30 20:38:27 +01:00
Michael Stefaniuc 8881ada9c9 dmstyle: Simplify parsing of a style track list.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53941
2022-11-30 20:38:27 +01:00
Matteo Bruni 72597b170e wined3d: Don't use separate GL contexts for different swapchains.
This avoids triggering a Mesa slowpath introduced
by Mesa commit e7f3a8d6959c74f63c877dd8776fe519d54f946f.

Additionally, it helps applications using multiple swapchains and
queries (e.g. the one in bug 43773) by not requiring extra context
switches when polling queries. For the records, the actual issue from
bug 43773 was probably fixed a long time ago, maybe already by
7b62a970e9 or thereabouts.

The downside of this change is that we'll now end up calling
glFinish() when there are multiple threads using the same device when
CSMT is disabled. That's a non-default setting and one that should
only be used for troubleshooting purposes at this point, so it
shouldn't be too bad of an issue. It might also make sense to just get
rid of that glFinish() entirely, it's never going to be a complete
fix.
2022-11-30 20:38:27 +01:00
Matteo Bruni ee349306e2 wined3d: Destroy primary GL context if initialization fails. 2022-11-30 20:38:27 +01:00
Matteo Bruni 242cdaee82 wined3d: Move backup window / DC handling from the swapchain to the device. 2022-11-30 20:38:27 +01:00
Matteo Bruni b12cae8c99 wined3d: Get rid of a redundant branch. 2022-11-30 20:38:27 +01:00
Matteo Bruni c1857959b8 wined3d: Remove unnecessary index increment in wined3d_context_gl_cleanup_resources(). 2022-11-30 20:38:27 +01:00
Matteo Bruni d6e4e944af wined3d: Don't try to access unused buffers in wined3d_context_gl_load_numbered_arrays().
wined3d_stream_info_from_declaration() doesn't update elements of the
stream_info structure that are not used by the current vertex
declaration. That means that there might be obsolete buffer references
in stream_info, possibly to buffers that have since been destroyed.
2022-11-30 20:38:27 +01:00
Michel Zou 53bc6c7a4a msvcrt: Fix errno set on dup from read-only file.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53950
2022-11-30 20:38:27 +01:00
Nikolay Sivov 7ca1eff8e1 vbscript: Make redim fail on fixed-size arrays.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53964
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 15:38:34 +01:00
Nikolay Sivov 7bf58c895c d3dcompiler: Implement D3DDisassemble() using vkd3d-shader.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46649
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 15:38:26 +01:00
Zhiyi Zhang e5c6f915bb winex11.drv: Release window data before calling sync_window_cursor().
This prevents a deadlock between the window data lock and the ntdll loader lock because
sync_window_cursor() eventually may grab the ntdll loader lock. So if another thread already
grabbed the ntdll loader lock and wants to enter the same window data critical section, it will
deadlock.

Fix Youropa (SteamID: 640120) OpenGL launch option launching to a black screen.
2022-11-30 11:14:30 +01:00
Rémi Bernon 140456a058 joy.cpl: Remove unnecessary JoystickData structure. 2022-11-30 11:14:21 +01:00