Commit graph

159175 commits

Author SHA1 Message Date
Kevin Puetz b5d3759fc5 winecrt0: Remove free_delay_imports.
MSVC's delayimp.lib does not actually free delayload dependencies.
winecrt0's attempt to do so from ELF __attribute__((destructor))
is unnecessary and potentially harmful:

- When triggered naturally via LdrUnloadDll, this leads to recursive calls
  to FreeLibrary, violating free_lib_count and missing DLL_PROCESS_DETACH
- when triggered by glibc's _dl_fini (at process exit), it leads to
  use-after-free of the TEB (GetCurrentThreadID after the main thread is no longer Win32)
  via  FreeLibrary -> LdrLdrUnloadDll -> RtlEnterCriticalSection( &loader_section )
- double-free of the library itself, since the DLL_PROCESS_DETACH has
  already been handled by LdrShutdownProcess
- Race against wineserver sending a SIGKILL from process_killed,
  since all Win32 threads of the process have exited

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53032
2022-08-31 18:32:13 +02:00
Francois Gouget aeb9737388 dinput/tests: Remove WINAPI on static functions where not needed. 2022-08-31 18:31:43 +02:00
Francois Gouget 92b6c23790 dinput: Remove WINAPI on static functions where not needed. 2022-08-31 18:31:43 +02:00
Francois Gouget 24c8c47cf0 winex11.drv: Make get_unix_file_name() static. 2022-08-31 18:31:34 +02:00
Francois Gouget 49d4fb0d66 crypt32: Remove WINAPI on static functions where not needed. 2022-08-31 18:31:24 +02:00
Francois Gouget 516e6dd921 winealsa.drv: Make functions static where possible.
This helps detect dead code.
2022-08-31 18:31:17 +02:00
Alexandre Julliard 4f75dd8c44 gitlab: Run CI scripts as non-root user. 2022-08-31 18:19:04 +02:00
Alexandre Julliard 1a982894dd gitlab: Rename build-all job to build-linux.
For symmetry with build-mac.
2022-08-31 17:44:53 +02:00
Jacek Caban 49752f34ca winevulkan: Get rid of unix_funcs. 2022-08-31 17:44:53 +02:00
Jacek Caban 395061e367 winevulkan: Use __wine_unix_call for checking Vulkan functions availability. 2022-08-31 17:44:53 +02:00
Jacek Caban 05d2576b1f winevulkan: Use vk_unix_call in loader.c. 2022-08-31 17:44:53 +02:00
Eric Pouech 9a98276f98 msvcrt: Fix order of extended qualifiers and qualifiers.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-08-31 17:44:53 +02:00
Eric Pouech 638b06015b msvcrt: Use enum to clarify post-processing actions.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-08-31 17:44:53 +02:00
Eric Pouech 22362757ad msvcrt: Undecorate function signature as template argument.
Introducing get_function_signaturei() to factorize parsing of function
signature.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-08-31 17:44:53 +02:00
Eric Pouech 5e37bcf794 msvcrt: Fix white space output for typecast operator.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-08-31 17:44:53 +02:00
Eric Pouech 507a02c1d3 msvcrt: Improve support for template in methods.
Adding function template support for methods that need specific
post processing in demangling
(constructor, destructor, cast operator)

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-08-31 17:44:53 +02:00
Eric Pouech 766085edd2 msvcrt: Correctly support space generation in pointers.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-08-31 17:44:53 +02:00
Alistair Leslie-Hughes 4e1b7cec16 winepulse: Use the predicate to terminate the connect cond_wait loop. 2022-08-31 17:44:53 +02:00
Nikolay Sivov 3a481200a4 mshtml/tests: Fix a typo in test message (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 17:44:53 +02:00
Nikolay Sivov 114a06364b win32u/hook: Fix a leak on earlier return (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 17:44:53 +02:00
Nikolay Sivov 9d58733b3b evr/filter: Initialize interface pointer in GetService() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 17:44:53 +02:00
Nikolay Sivov bc05d15cf1 mfsrcsnk/wave: Initialize buffer pointer in ProcessSample() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 17:44:53 +02:00
Nikolay Sivov c6a75d01b5 bcrypt/tests: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-31 17:44:53 +02:00
Francois Gouget c0ad6d745e winspool.drv/tests: Fix the spelling of a variable name. 2022-08-30 22:00:55 +02:00
Francois Gouget b886f6198b mscvpdb: Fix a spelling error in a comment. 2022-08-30 22:00:55 +02:00
Francois Gouget b25b2ed31a dbghelp: Fix a couple of spelling errors in a comment. 2022-08-30 22:00:55 +02:00
Francois Gouget a9e28f130d mshtml/tests: Fix a spelling error in an ok() message. 2022-08-30 22:00:55 +02:00
Rémi Bernon 4d0e202092 wmvcore/tests: Test async reader DedicatedDeliveryThread setting. 2022-08-30 21:38:39 +02:00
Rémi Bernon 18f1e9bd00 wmvcore/tests: Test async reader compressed sample monotonic pts. 2022-08-30 21:38:39 +02:00
Rémi Bernon ea6de10f89 wmvcore/tests: Test that the callback thread is always the same. 2022-08-30 21:38:39 +02:00
Rémi Bernon 161846fb71 wmvcore/tests: Test async reader output settings read / write. 2022-08-30 21:38:39 +02:00
Rémi Bernon 11fe0d115c wmvcore/tests: Test sync reader output settings read / write. 2022-08-30 21:38:39 +02:00
Rémi Bernon 7cd83c9804 wmvcore/tests: Use a constant for test.wmv duration. 2022-08-30 21:38:39 +02:00
Matteo Bruni b996a96981 d3dx10/tests: Add a test for D3DX10PreprocessShaderFromMemory(). 2022-08-30 21:38:39 +02:00
Andrey Gusev 8ffbd56a43 d3dx10: Implement D3DX10PreprocessShaderFromMemory().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53427
2022-08-30 21:38:39 +02:00
Nikolay Sivov 24e90e4350 evr/filter: Implement pin's connect/disconnect.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-30 21:38:39 +02:00
Rémi Bernon d82af2f320 winemac.drv: Support enumerating non-primary adapters display modes. 2022-08-30 21:38:39 +02:00
Rémi Bernon 0f014f5030 winemac.drv: Support getting non-primary adapter current display mode. 2022-08-30 21:38:39 +02:00
Rémi Bernon 75fa51e555 winemac.drv: Check for non-primary adapter earlier in macdrv_ChangeDisplaySettingsEx. 2022-08-30 21:38:39 +02:00
Rémi Bernon 66a051d29a winemac.drv: Remove unnecessary macdrv_EnumDisplaySettingsEx declaration. 2022-08-30 21:38:39 +02:00
Rémi Bernon 4571201f2e winemac.drv: Invalidate mode cache when enum flags changes. 2022-08-30 21:38:39 +02:00
Rémi Bernon 557270355f winemac.drv: Rename display modes cache variables. 2022-08-30 21:38:39 +02:00
Piotr Caban 6fc4b80e5d d3dx10/tests: Improve cube textures data testing. 2022-08-30 21:38:39 +02:00
Piotr Caban 13801e63c9 d3dx10: Add support for loading MipLevels data in load_texture_data. 2022-08-30 21:38:39 +02:00
Piotr Caban d1c03fe48a d3dx10: Don't check frame count in load_texture_data. 2022-08-30 21:38:39 +02:00
Piotr Caban 3265019d7c d3dx10: Add support for texture cubes in D3DX10CreateTexture functions. 2022-08-30 21:38:39 +02:00
Piotr Caban 77d0bd8267 d3dx10: Use WIC functions to obtain info about DDS image. 2022-08-30 21:38:39 +02:00
Piotr Caban 82bb308f7a d3dx10: Factor out image format conversion function. 2022-08-30 21:38:39 +02:00
Connor McAdams 00c8117a72 combase: Omit thread ID from the stub manager ipid for MTA objects.
It is possible for a thread that creates an MTA to call
CoUninitialize() and not destroy the MTA if another thread has
entered the MTA in the meantime. If the original thread then creates
an STA, subsequent attempts to find the MTA with 'apartment_findfromtid'
will get the original thread's STA. To avoid this, don't set a TID value
in the stub manager IPID value to indicate that the stub resides in the
MTA.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-08-30 21:38:39 +02:00
Jacek Caban 55db1dbb32 user32: Call winproc_init before dpiaware_init.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53601
2022-08-30 21:38:39 +02:00