Commit graph

165109 commits

Author SHA1 Message Date
Michael Stefaniuc 7ae55662a2 wow64win: Remove dangling space after newline in ERR() message. 2023-06-27 22:14:15 +02:00
Michael Stefaniuc 3dfa697b0e windows.gaming.input: Drop superfluous casts to self. 2023-06-27 22:14:15 +02:00
Michael Stefaniuc 3bb5fcd5f3 gdiplus/tests: Remove superfluous casts to self. 2023-06-27 22:14:15 +02:00
Rémi Bernon 341673f669 winegstreamer: Lookup stream handler result using a dedicated helper. 2023-06-27 22:14:15 +02:00
Rémi Bernon 1069d4792c winegstreamer: Rename winegstreamer_stream_handler to stream_handler. 2023-06-27 22:14:15 +02:00
Rémi Bernon 73acbb70d5 winegstreamer: Create and destroy result entries using dedicated helpers. 2023-06-27 22:14:15 +02:00
Rémi Bernon ed9a7b667f winegstreamer: Lookup stream descriptors before starting streams. 2023-06-27 22:14:15 +02:00
Rémi Bernon 25469b5a32 winegstreamer: Keep a reference on the media source start descriptor. 2023-06-27 22:14:15 +02:00
Rémi Bernon b9293a3e66 maintainers: Assume GStreamer media source maintainership. 2023-06-27 22:14:15 +02:00
Joel Holdsworth 1ccd037e00 ntdll: Implement FILE_DISPOSITION_POSIX_SEMANTICS.
Both the Msys2 and Cygwin runtimes make use of
FILE_DISPOSITON_POSIX_SEMANTICS in their implementations of the unlink()
system call. This enables these routines to behave similarly to POSIX where are
unlisted from the directory, if handles are still open.

https://github.com/msys2/msys2-runtime/blob/msys2-3.4.3/winsup/cygwin/syscalls.cc#L722
https://www.cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/syscalls.cc#l724

Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth f10383e9d0 server: Replace unlink member of closed_fd with disp_flags.
In order to implement FILE_DISPOSITION_POSIX_SEMANTICS, it will be necessary
to add additional flags to closed_fd. In preparation for this, the unlink
member variable has been replaced with disp_flags which directly reflects the
flags defined in the FILE_DISPOSITION_INFORMATION_EX structure.

Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth 0e6b5811c8 ntdll/tests: Add tests for FILE_DISPOSITION_POSIX_SEMANTICS.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth 146333fed2 ntdll: Implement FILE_DISPOSITION_ON_CLOSE.
The FILE_DELETE_ON_CLOSE can be used with the FILE_DISPOSITION_ON_CLOSE flag
of FileDispositionInformationEx.

Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth d89ee7c030 ntdll/tests: Add tests for FILE_DISPOSITION_ON_CLOSE.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth 91e442b060 ntdll: Implement FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE.
Both the Msys2 and Cygwin runtimes make use of
FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE in their implementations of the
unlink() system call. This enables these routines to delete a read-only file
without first modifying the attributes.

https://github.com/msys2/msys2-runtime/blob/msys2-3.4.3/winsup/cygwin/syscalls.cc#L724
https://www.cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/syscalls.cc#l726

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50771
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth cbc1e4423e ntdll/tests: Add tests for FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth cc1d0e493d ntdll: Initial implementation of FileDispositionInformationEx.
This is required by Msys2 when running gpg-agent.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54996
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 22:14:15 +02:00
Joel Holdsworth dedd130d9e include: Define FILE_DISPOSITION_INFORMATION_EX and friends.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2023-06-27 12:05:05 +02:00
Zebediah Figura 9f2cf25c2d d3d10core/tests: Read back directly from the mipmap texture in test_generate_mips().
This is far simpler than drawing with it.

The immediate motivation here is that the DXGI_FORMAT_R8G8B8A8_UINT test causes
a validation error when drawing, since the shader declares its resource as a
float4 texture, which does not match the UINT view format. This could be fixed
by using a different shader, but it seems more prudent to just simplify the test
to not draw at all.
2023-06-27 11:58:17 +02:00
Zebediah Figura 0135114951 d3d11/tests: Read back directly from the mipmap texture in test_generate_mips().
This is far simpler than drawing with it.

The immediate motivation here is that the DXGI_FORMAT_R8G8B8A8_UINT test causes
a validation error when drawing, since the shader declares its resource as a
float4 texture, which does not match the UINT view format. This could be fixed
by using a different shader, but it seems more prudent to just simplify the test
to not draw at all.
2023-06-27 11:58:15 +02:00
Paul Gofman e647719eb0 crypt32/tests: Test CertCreateSelfSignCertificate() without provider info. 2023-06-27 11:58:05 +02:00
Paul Gofman 7861b1e8f0 Revert "crypt32: Do not create persistent container in CRYPT_CreateKeyProv().".
This reverts commit a19c871291.
2023-06-27 11:58:05 +02:00
Alex Henrie 00df1bea9a dbghelp: Allocate real_path with the CRT and copy it to the module heap.
Fixes both a memory leak and an alloc/free mismatch, and the module heap
is the most appropriate place to hold the variable long-term.
2023-06-27 11:58:05 +02:00
Davide Beatrici 39cc4fcc95 wineoss: Use mmdevapi's AudioClient's QueryInterface. 2023-06-27 11:58:05 +02:00
Davide Beatrici b064a7dcc1 winecoreaudio: Use mmdevapi's AudioClient's QueryInterface. 2023-06-27 11:58:05 +02:00
Davide Beatrici 79f960f6df winealsa: Use mmdevapi's AudioClient's QueryInterface. 2023-06-27 11:58:05 +02:00
Davide Beatrici ab33114c69 winepulse: Move AudioClient's QueryInterface into mmdevapi. 2023-06-27 11:58:05 +02:00
Davide Beatrici 71500094c4 wineoss: Use mmdevapi's AudioClient's Release, AddRef. 2023-06-27 11:58:05 +02:00
Davide Beatrici aedd34dd3c winecoreaudio: Use mmdevapi's AudioClient's Release, AddRef. 2023-06-27 11:58:05 +02:00
Davide Beatrici 3c8e2c3276 winealsa: Use mmdevapi's AudioClient's Release, AddRef. 2023-06-27 11:58:05 +02:00
Davide Beatrici f37d21db9d winepulse: Move AudioClient's Release, AddRef into mmdevapi. 2023-06-27 11:58:05 +02:00
Davide Beatrici 33685372dd winepulse: Refactor AudioClient's Release to match other drivers. 2023-06-27 11:58:05 +02:00
Davide Beatrici 5069c2ad90 winecoreaudio: Refactor AudioClient's Release to match other drivers. 2023-06-27 11:58:05 +02:00
Alistair Leslie-Hughes 0f41f29a22 wined3d: Rename shader_extract_from_dxbc to wined3d_shader_extract_from_dxbc.
Stops a linker error of duplicate name when using upstream vkd3d.
2023-06-27 11:51:36 +02:00
Eric Pouech 1d281c620d dbghelp/tests: Don't call SymSetExtendedOption() directly.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55128
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-06-26 20:20:27 +02:00
Jacek Caban a312a8e29a gdi32/uniscribe: Don't use DECLSPEC_HIDDEN. 2023-06-26 20:19:13 +02:00
Jacek Caban a5f62b3ef7 make_unicode: Don't use DECLSPEC_HIDDEN. 2023-06-26 20:19:13 +02:00
Jacek Caban cd56a1c164 gdi32: Don't use DECLSPEC_HIDDEN. 2023-06-26 20:19:13 +02:00
Eric Pouech bbc2a9ab5b dbghelp: Implement SymSrvGetFileIndexInfo for PDB files.
Only done for DS format.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-06-26 16:49:45 +02:00
Eric Pouech f4c1860480 dbghelp: Add tests for SymSrvGetFileIndexInfo() for PDB files.
Add infrastructure to generate fake .PDB files.

Only done in DS format.

I'm not sure we care about JG anymore, DS format has been introduced
by MS in early 2000 to supersede JG, and is still mainstream today).
For the record, LLVM in its PDB handling doesn't support JG format.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-06-26 16:49:45 +02:00
Tim Clem 9874807564 winemac.drv: Don't expect an internal driver message to set last error.
NtUserMessageCall(..., NtUserSendDriverMessage) does not ensure the
validity of the hwnd, so this check will incorrectly fail if the
last error was ERROR_INVALID_WINDOW_HANDLE by coincidence. The
notify_owner call immediately following this code will catch a
destroyed owner hwnd.
2023-06-26 16:47:59 +02:00
Rémi Bernon 5b11157ecf explorer: Use wide string literals. 2023-06-26 16:47:11 +02:00
Rémi Bernon 43fd81b3a5 explorer: Use unprefixed debug macros. 2023-06-26 16:47:11 +02:00
Rémi Bernon 240bdd5772 explorer: Use CRT allocation functions. 2023-06-26 16:47:11 +02:00
Maarten De Braekeleer 5e2f9996ba cmd: Fix 'if exist' with a directory/ as a parameter.
'if exists' takes a parameter which can be directory, directory/,
directory/. directory\ or directory\. for example, and should equate
to true if the directory exists. The syntax directory\ is explicitly
rejected by FindFirstFile and hence was not working - look for this
specific case, and if found append a '.'.

Follow-up commit of bc9d68bcbe

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55130#add_comment
2023-06-26 16:44:17 +02:00
Jacek Caban dcf0bf1f38 ntdll: Inherit ConsoleHandle only by CUI processes. 2023-06-26 15:04:26 +02:00
Davide Beatrici 5716a20d72 wineoss: Use mmdevapi's AudioClient's Initialize. 2023-06-26 15:04:21 +02:00
Davide Beatrici f5d8920239 winecoreaudio: Use mmdevapi's AudioClient's Initialize. 2023-06-26 15:04:21 +02:00
Davide Beatrici 964356e932 winealsa: Use mmdevapi's AudioClient's Initialize. 2023-06-26 15:04:21 +02:00
Davide Beatrici a15a066a09 winepulse: Move AudioClient's Initialize into mmdevapi. 2023-06-26 15:04:21 +02:00