Commit graph

165149 commits

Author SHA1 Message Date
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
Davide Beatrici
a1cbc47bbc wineoss: Use standard allocator in AudioClient's Initialize. 2023-06-26 15:04:21 +02:00
Davide Beatrici
92a251a9af winecoreaudio: Use standard allocator in AudioClient's Initialize. 2023-06-26 15:04:21 +02:00
Davide Beatrici
fbb1e18529 winealsa: Use standard allocator in AudioClient's Initialize. 2023-06-26 15:04:21 +02:00
Rémi Bernon
7cc24be079 mfplat: Use QueryPerformanceCounter in MFGetSystemTime. 2023-06-26 15:04:02 +02:00
Fabian Maurer
0ce5584acc widl: Don't crash on nameless structs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49772
2023-06-26 15:00:58 +02:00
Alexandre Julliard
c13e7ae474 Release 8.11. 2023-06-23 23:17:45 +02:00
Eric Pouech
16f538a1c9 winedump: Tidy up print out in minidumps.
- adjust hex/decimal print out
- use internal helpers

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-06-23 22:48:18 +02:00
Gabriel Ivăncescu
38f6eb34b8 jscript: Properly handle passing undefined value to Number.toString in ES5+ mode.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-06-23 22:48:18 +02:00
Gabriel Ivăncescu
3d04d052cd jscript: Properly handle passing undefined value to Number.toPrecision.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-06-23 22:48:18 +02:00
Gabriel Ivăncescu
1f4cdeeeac jscript: Always create detached variable objects with no class.
As it is done in exec_source. This matters as we actually have a check in
exprval_call that relies on this (because scope variable objects must never
be exposed).

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-06-23 22:48:18 +02:00