Commit graph

159480 commits

Author SHA1 Message Date
Alistair Leslie-Hughes 493db3b1f7 ws2_32: Return a valid value for WSAIoctl SIO_IDEAL_SEND_BACKLOG_QUERY.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-16 19:13:30 +02:00
Zebediah Figura c73999f169 win32u: Copy directly into the union pointer in unpack_message().
This works around a spurious gcc warning:

../wine/dlls/win32u/message.c: In function ‘unpack_message.constprop’:
../wine/dlls/win32u/message.c:359:9: error: writing 28 bytes into a region of size 4 [-Werror=stringop-overflow=]
  359 |         memcpy( &ps->wp, &wp, sizeof(wp) );
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../wine/dlls/win32u/win32u_private.h:29,
                 from ../wine/dlls/win32u/message.c:30:
../wine/include/ntuser.h:549:15: note: destination object ‘hwnd’ of size 4
  549 |     UINT      hwnd;
      |               ^~~~
2022-09-16 19:13:24 +02:00
Zebediah Figura f66b49a496 ntdll: Calculate the necessary length after calling snprintf() in SystemWineVersionInformation.
This works around a spurious gcc warning:

../wine/dlls/ntdll/unix/system.c: In function ‘NtQuerySystemInformation’:
../wine/dlls/ntdll/unix/system.c:3176:36: error: ‘%s’ directive output between 0 and 2147483644 bytes may cause result to exceed ‘INT_MAX’ [-Werror=format-truncation=]
 3176 |         snprintf( info, size, "%s%c%s%c%s%c%s", version, 0, wine_build, 0, buf.sysname, 0, buf.release );
      |                                    ^~                       ~~~~~~~~~~
../wine/dlls/ntdll/unix/system.c:3176:9: note: ‘snprintf’ output between 8 and 2147483780 bytes into a destination of size 4294967295
 3176 |         snprintf( info, size, "%s%c%s%c%s%c%s", version, 0, wine_build, 0, buf.sysname, 0, buf.release );
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-16 19:13:13 +02:00
Zebediah Figura d17fe0a792 libwine: Avoid comparing the result of pointer arithmetic to zero.
gcc warns about this:

../wine/libs/wine/mmap.c: In function ‘wine_mmap_add_reserved_area_obsolete’:
../wine/libs/wine/mmap.c:504:9: error: the comparison will always evaluate as ‘true’ for the pointer operand in ‘(char *)addr + (sizetype)size’ must not be NULL [-Werror=address]
  504 |     if (!((char *)addr + size)) size--;  /* avoid wrap-around */
      |         ^
2022-09-16 19:12:52 +02:00
Zebediah Figura 539ef7c462 ntdll: Avoid comparing the result of pointer arithmetic to zero.
gcc warns about this:

../wine/dlls/ntdll/unix/virtual.c: In function ‘mmap_add_reserved_area’:
../wine/dlls/ntdll/unix/virtual.c:241:9: error: the comparison will always evaluate as ‘true’ for the pointer operand in ‘(char *)addr + (sizetype)size’ must not be NULL [-Werror=address]
  241 |     if (!((char *)addr + size)) size--;  /* avoid wrap-around */
      |         ^
2022-09-16 19:12:49 +02:00
Alexandre Julliard 5965771a9c advapi32/tests: Mark some failing tests as todo. 2022-09-16 14:07:13 +02:00
Alexandre Julliard 46164f40ab user32/tests: Don't print debug traces by default.
This reduces the test output to stay within the 32kB limit.
2022-09-16 10:23:11 +02:00
Alexandre Julliard a72bffe768 user32/tests: Only report the first todo of a failed message sequence.
This reduces the test output to stay within the 32kB limit.
2022-09-16 10:18:29 +02:00
Eric Pouech 5fa25d00d7 d3d11/tests: Introduce a clear_rtv() helper.
This fixes warnings with gcc 12.2.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-15 22:33:42 +02:00
Eric Pouech 6ba6f54f56 d3d10core/tests: Introduce a clear_backbuffer_rtv() helper.
This fixes warnings with gcc 12.2.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-15 22:33:40 +02:00
Eric Pouech ae890d5442 d3d10core/tests: Fix erroneous color parameter.
(Spotted by warnings emitted by GCC 12.2).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-15 22:33:37 +02:00
Henri Verbeet 030c37ceae wined3d: Return bools from all return paths in wined3d_cs_map_upload_bo(). 2022-09-15 22:33:24 +02:00
Henri Verbeet e5f5bea390 d3d11/tests: Move the is_warp_device() call out of the loop in check_format_support().
There's no point in querying this multiple times, it's not going to change.

Perhaps more importantly, calling is_warp_device() inside a todo_wine block
will cause "Test succeeded inside todo block: ..." messages from
get_device_adapter_desc(). These appear to have been introduced by commit
fcc276ecb1. Arguably get_device_adapter_desc()
shouldn't use ok() in the first place.
2022-09-15 22:33:18 +02:00
Henri Verbeet 7d20333faf d3d11: Implement d3d11_input_layout_to_wined3d_declaration() on top of vkd3d_shader_parse_input_signature().
This was originally prompted by the fact that
wined3d_extract_shader_input_signature_from_dxbc() allocates elements with
HeapAlloc(), but d3d11_input_layout_to_wined3d_declaration() attempts to free
them with free(). That's a regression introduced by commit
b951c37b87. Since we're touching the code
though, we may as well use vkd3d_shader_parse_input_signature(), and get rid
of wined3d_extract_shader_input_signature_from_dxbc().
2022-09-15 22:33:10 +02:00
Henri Verbeet bba63771eb d3d9/tests: The expected scissor rect after a reset is equal to the back-buffer dimensions.
This appears to have gotten lost in commit
7623d0a6f5.
2022-09-15 22:33:04 +02:00
Henri Verbeet 51466755ad wined3d: Destroy the Vulkan command pool after cleaning up resources.
This fixes an issue exposed (but not caused) by commit
e553be7e77. Calling vkFreeCommandBuffers()
after the corresponding command pool was destroyed causes invalid memory
accesses. Thanks to Jacek for pointing this out.
2022-09-15 22:32:57 +02:00
Henri Verbeet 99a3bc3c2b wined3d: Fix the sub-resource index validation in wined3d_texture_update_overlay().
This condition accidentally got inverted when
wined3d_texture_validate_sub_resource_idx() was introduced in commit
44d6f2adbc.
2022-09-15 22:02:09 +02:00
Alexandre Julliard 064edf1df4 d2d1/tests: Skip subsequent todo tests for unsupported properties.
This reduces the number of printed todos in order to stay within the 32kB limit.
2022-09-15 20:55:55 +02:00
Jacek Caban 2d8850365b wininet/tests: Don't send two HTTP responses for a single request in server_thread. 2022-09-15 20:55:51 +02:00
Mohamad Al-Jaf 1df5309a82 winusb: Add WinUsb_Free stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52677
Signed-off-by: Mohamad Al-Jaf <mohamadaljaf@gmail.com>
2022-09-15 17:45:44 +02:00
Mohamad Al-Jaf 437bdce96c include: Add winusb.h file.
Signed-off-by: Mohamad Al-Jaf <mohamadaljaf@gmail.com>
2022-09-15 17:45:26 +02:00
Georg Lehmann a37b4832bc winevulkan: Update to VK spec version 1.3.228. 2022-09-15 13:47:45 +02:00
Nikolay Sivov 90ff3c5b85 xmllite/writer: Implement WriteNodeShallow().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 3cd0bfd4a7 xmllite/writer: Handle empty local name in WriteAttributeString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 538bc11b4e xmllite/tests: Add a test for IsEmptyElement() on attributes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov fdbbf6de48 xmllite/tests: Add some more tests for WriteStartElement().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov e77d3f59e8 xmllite/writer: Add initial implementation of WriteNode().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 22c9af7162 xmllite/writer: Implement WriteAttributes().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 5de86e12ad xmllite/writer: Close open tag on WriteProcessingInstruction().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov cd55a67424 xmllite/writer: Close open tag on WriteRaw().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 57497d1262 xmllite/writer: Handle empty prefix and uri correctly in WriteStartElement().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 225e7b34a9 xmllite/writer: Implement WriteWhitespace().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Nikolay Sivov 31aac84ad0 xmllite/reader: Improve xml declaration node parsing.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-15 13:47:45 +02:00
Jinoh Kang d5f5834735 include: Define atomic read/write helpers for 32-bit integers.
Based on the corresponding functions from Windows SDK header files.

Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-09-15 13:47:45 +02:00
Zhiyi Zhang 2375a6e5bd kernelbase: Return system error codes in the ReadDirectoryChangesW() completion callback.
Return system error codes instead of NT status codes in the ReadDirectoryChangesW() completion callback.
2022-09-15 13:47:45 +02:00
Rémi Bernon 71da6a7152 winegstreamer: Create wg_sample from IMFSample within wg_transform_push_mf. 2022-09-15 13:47:45 +02:00
Rémi Bernon 77a4b4b439 winegstreamer: Remove unnecessary IMFTransform_GetInputStreamInfo calls. 2022-09-15 13:47:45 +02:00
Rémi Bernon 2c4fbd1531 winegstreamer: Check WMA sample size before wrapping the sample. 2022-09-15 13:47:45 +02:00
Rémi Bernon 19df4f02de winegstreamer: Check for unexpected format change in wg_transform_read helpers. 2022-09-15 13:47:45 +02:00
Rémi Bernon 024eef2258 winegstreamer: Stop setting flags on unexpected MF_E_TRANSFORM_STREAM_CHANGE. 2022-09-15 13:47:45 +02:00
Rémi Bernon 9e2a9e34cc winegstreamer: Set MFT_OUTPUT_DATA_BUFFER_INCOMPLETE in wg_transform_read_mf. 2022-09-15 13:47:45 +02:00
Rémi Bernon 6178392862 winegstreamer: Better implement H264 MFT GetAttributes and GetOutputStreamAttributes. 2022-09-15 13:47:45 +02:00
Rémi Bernon 5db7218620 winegstreamer: Avoid leaking attributes on video processor creation failure. 2022-09-15 13:47:45 +02:00
Rémi Bernon ddf7026d4c winegstreamer: Support MFT_SET_TYPE_TEST_ONLY flag in the MF transforms. 2022-09-15 13:47:45 +02:00
Floris Renaud d4e6a01fae po: Update Dutch translation. 2022-09-15 13:47:45 +02:00
Brendan Shanks 5cf574998e server: Use correct context struct and thread flavor when setting debug registers on macOS. 2022-09-15 13:47:45 +02:00
Brendan Shanks 774769671c server: Write to correct context struct when getting debug registers on macOS. 2022-09-15 13:47:45 +02:00
Brendan Shanks 2075a78ed3 server: Report errors on macOS when getting/setting debug registers. 2022-09-15 13:47:45 +02:00
Brendan Shanks 28ec3090fa server: Remove 32-bit-specific macOS #ifdefs. 2022-09-15 13:47:45 +02:00
Alexandre Julliard d35c361e4b ntdll/tests: Don't run the stack growth tests too many times.
This reduces the number of printed todos in order to stay within the 32kB limit.
2022-09-15 13:47:45 +02:00