Commit graph

161095 commits

Author SHA1 Message Date
Bartosz Kosiorek
bc8ced226a gdiplus: Remove not used LineCustomCap parameter. 2022-11-23 22:27:20 +01:00
Bartosz Kosiorek
742c315702 gdiplus: Add GdipSetCustomLineCapBaseCap implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45273
2022-11-23 22:27:20 +01:00
Rémi Bernon
aeb43dce75 winex11.drv: Reposition windows on desktop resize only when useful.
This will end up moving window around only if the old virtual screen
origin is different from the new one. Don't send unnecessary messages
if it didn't change.

This helps speeding up D3D tests on the testbot VMs with multiple
displays and hopefully solve the timeout problems.
2022-11-23 20:35:29 +01:00
Martin Storsjö
d6829bdcba ntdll: Avoid accidentally picking up ntdll's __wine_unix_call_funcs for other DLLs.
When f7332ab4a6 switched load_so_dll
over to a proper Unix syscall, ntdll.so started providing the
symbol __wine_unix_call_funcs.

When a DLL calls NtQueryVirtualMemory(MemoryWineUnixFuncs), it can
do so speculatively, not knowing whether the corresponding unix
lib actually does provide anything.

When ntdll.so started providing this symbol, then such speculative
calls to NtQueryVirtualMemory(MemoryWineUnixFuncs) would end up
returning ntdll's __wine_unix_call_funcs if the intended DLL's
unix library lacked one.

This is the case with bcrypt, where the unix library doesn't
provide __wine_unix_call_funcs if gnutls is unavailable.

This fixes crashes after f7332ab4a6,
in builds without gnutls.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-11-23 20:35:06 +01:00
Jacek Caban
c2a43defec win32u: Don't use CDECL for __wine_get_wgl_driver. 2022-11-23 18:04:28 +01:00
Jacek Caban
65835e4b74 win32u: Remove __wine_get_wgl_driver PE entry point. 2022-11-23 18:04:28 +01:00
Alex Henrie
b81a571849 dnsapi: Use the strdup and wcsdup functions instead of reimplementing them. 2022-11-23 17:59:47 +01:00
Nikolay Sivov
7f01fdb6d4 oleaut32/safearray: Fix an error code when trying to redim fixed arrays.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-23 17:59:47 +01:00
Zebediah Figura
fadefecd15 ntdll: Remove an unnecessary cast. 2022-11-23 17:59:47 +01:00
Zebediah Figura
793cc934d9 ntdll: Avoid casting a struct to its first field. 2022-11-23 17:59:47 +01:00
Zebediah Figura
5741f94d1b ntdll: Always trace sizes with %#x. 2022-11-23 17:59:47 +01:00
Zebediah Figura
c9cf44a363 ntdll: Add a get_free_list_block_size() helper. 2022-11-23 17:59:47 +01:00
Rémi Bernon
f810a57590 rpcss: Use I_Rpc(Free|Allocate) in MIDL_user_(allocate|free).
In ept_map, rpcss uses TowerConstruct to allocate tower array elements.

The array is later released by the generated stub code, and each element
is ultimately freed using MIDL_user_free.

TowerConstruct always allocate memory using I_RpcAllocate, we must use
I_RpcFree to free it.
2022-11-23 17:59:47 +01:00
Alex Henrie
80175e41da urlmon: Use standard C functions for memory allocation. 2022-11-23 17:59:47 +01:00
Gabriel Ivăncescu
534b977c62 jscript: Throw proper error when calling Set constructor as method.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-23 17:59:47 +01:00
Gabriel Ivăncescu
84f7f60192 jscript: Throw proper error when calling Map constructor as method.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-23 17:59:47 +01:00
Gabriel Ivăncescu
8cb5d74125 jscript: Pass correct 'this' to callbacks called by builtins.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-23 17:59:47 +01:00
Gabriel Ivăncescu
da842966ff jscript: Pass a jsval as the 'this' to disp_call_value.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-23 17:59:47 +01:00
Gabriel Ivăncescu
9d4e93cfde jscript: Pass a jsval as the 'this' to jsdisp_call_value.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-23 17:59:47 +01:00
Gabriel Ivăncescu
3805eef49a jscript: Initialize source and lastIndex for RegExp.prototype.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-11-23 17:59:47 +01:00
Piotr Caban
f8a0d96567 winspool: Correctly free data allocated with GdiConvertToDevmodeW. 2022-11-23 17:59:47 +01:00
Alexandre Julliard
020e2b6bb4 makedep: Pass the actual name of the module in the delay load flags. 2022-11-23 17:59:46 +01:00
Alexandre Julliard
51087b9b65 makedep: Unify the search for static and import libs. 2022-11-23 17:59:46 +01:00
Alexandre Julliard
5084f4da2b win32u: Build without -DWINE_NO_LONG_TYPES. 2022-11-23 16:13:58 +01:00
Alexandre Julliard
670033b2cb win32u: Use int instead of long types in a few places.
To avoid typecasts in debug traces.
2022-11-23 16:11:48 +01:00
Alexandre Julliard
d38a4a23fb win32u: Use int instead of long types for monitor index and flags.
To avoid typecasts in debug traces.
2022-11-23 16:11:48 +01:00
Alexandre Julliard
8bab39d946 win32u: Use int instead of long types for font sizes and flags.
To avoid typecasts in debug traces.
2022-11-23 16:11:48 +01:00
Alexandre Julliard
3ae7035afd win32u: Add a debug helper to print color values. 2022-11-23 16:11:48 +01:00
Alexandre Julliard
7eb1e94299 win32: Fix int/long type mismatches. 2022-11-23 12:02:27 +01:00
Alexandre Julliard
b00a831d3d kernel32/tests: Don't filter out the WINELOADER variable. 2022-11-23 11:07:30 +01:00
Fabian Maurer
5be2a01ce6 imm32: Prevent deadlock on unload.
ole32 is delay loaded, which can cause race conditions against
krnl386.exe when unloading.
This is because imm32 tries to get the loader lock while holding the win16 mutex,
and kernel386 does the opposite.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52511
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2022-11-23 11:03:55 +01:00
Nikolay Sivov
131aa5135b vbscript/tests: Fix redim tests. 2022-11-23 11:01:47 +01:00
Ziqing Hui
d596f97250 winegstreamer: Implement media_object_GetInputType for WMV decoder. 2022-11-23 11:01:20 +01:00
Ziqing Hui
8844d42428 mf/tests: Test IMediaObject_GetInputType for WMV decoder. 2022-11-23 11:01:20 +01:00
Ziqing Hui
b173aa7a98 winegstreamer: Implement media_object_GetStreamCount for WMV decoder. 2022-11-23 11:01:20 +01:00
Ziqing Hui
9d1c7692f9 mf/tests: Test IMediaObject_GetStreamCount for WMV decoder. 2022-11-23 11:01:20 +01:00
Ziqing Hui
aad791e9e6 winegstreamer: Implement profile_GetStreamByNumber. 2022-11-23 11:01:20 +01:00
Ziqing Hui
64debc9b1d wmvcore/tests: Add tests for IWMProfile_GetStreamByNumber. 2022-11-23 11:01:20 +01:00
Anton Baskanov
13059c229e winegstreamer: Set the discontinuity flag in wg_transform.
This is required to avoid glitches when seeking, as some formats (e.g.
MP3) may use data from previous frames.
2022-11-23 11:00:43 +01:00
Anton Baskanov
5a80ace060 include: Add MFSampleExtension_Discontinuity to mfapi.h. 2022-11-23 11:00:43 +01:00
Anton Baskanov
9add23322a winegstreamer: Allocate at least 3 buffers for MPEG audio in quartz parser. 2022-11-23 11:00:43 +01:00
Anton Baskanov
dfb161624f winegstreamer: Destroy the sample queue when stopping the quartz transform.
This releases the samples wg_transform might have referenced before destruction.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53342
2022-11-23 11:00:41 +01:00
Anton Baskanov
b89a01bff8 winegstreamer: Hold the streaming lock while destroying wg_transform.
Otherwise, the streaming thread might try to access it while it's being destroyed.
2022-11-23 11:00:40 +01:00
Eric Pouech
4ae5d81932 wined3d: Change return value for *get_emul_mask() to unsigned int.
This will simplify changes when using long types.
(and returned values are defined as int:s anyway).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-23 11:00:16 +01:00
Eric Pouech
f7deca3ae6 wined3d: Use pointer to non long integral type for some helpers.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-23 11:00:16 +01:00
Eric Pouech
767a715d47 wined3d: Use long type for interlock variables/fields.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-23 11:00:16 +01:00
Gerald Pfeifer
1d0383e2a4 ntdll: Make init_builtin_dll return a value on FreeBSD.
With commit 1d1690782b init_builtin_dll
gained a return value, alas the FreeBSD-specific code (under #ifdef)
was not adjusted and still returned void.
2022-11-23 10:59:58 +01:00
Eric Pouech
fbf2301177 dbghelp: Fix typos in codeview_is_type_forward().
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-22 21:51:26 +01:00
Georg Lehmann
8ef4a31116 winevulkan: Update to VK spec version 1.3.235. 2022-11-22 21:51:25 +01:00
Georg Lehmann
3759dbd645 winevulkan: Convert unions when nessecary. 2022-11-22 21:51:25 +01:00