Commit graph

159525 commits

Author SHA1 Message Date
Connor McAdams
41dd89a8e4 uiautomationcore: Implement UiaNodeFromHandle.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams
858596bbd5 uiautomationcore: Shutdown provider thread when all returned nodes are released.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams
d7c95765d0 uiautomationcore: Increment module reference count when starting provider thread.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams
02b87a4002 uiautomationcore: Implement UiaReturnRawElementProvider.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Rémi Bernon
7ceac9e4c9 winegstreamer: Merge wm_syncreader.c into wm_reader.c. 2022-09-20 09:26:25 +02:00
Rémi Bernon
1dd11e63c0 winegstreamer: Aggregate a IWMSyncReader in the async reader.
Instead of an internal struct wm_reader.
2022-09-20 09:26:23 +02:00
Rémi Bernon
131ada052a winegstreamer: Get rid of the wm_reader_ops callbacks.
Controlling lifetime from the sync / async reader side.
2022-09-20 09:26:21 +02:00
Nikolay Sivov
0f25fadb14 threadpoolwinrt: Add initial implementation of RunAsync.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:11 +02:00
Nikolay Sivov
511be2e86d threadpoolwinrt: Add a stub module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:08 +02:00
Nikolay Sivov
42e21bc5df include: Add windows.system.threading.idl.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:26:08 +02:00
Jinoh Kang
dce7a61fa4 msvcp90: Use atomic write for releasing threadsafe_queue spin lock.
This fixes data race in ARM/ARM64 platforms, and prevents potential
memory access reordering by the compiler.
2022-09-20 09:24:38 +02:00
Jinoh Kang
94512ecc12 concrt140: Use atomic write for releasing threadsafe_queue spin lock.
This fixes data race in ARM/ARM64 platforms, and prevents potential
memory access reordering by the compiler.
2022-09-20 09:24:37 +02:00
Etaash Mathamsetty
d1e23696df ntoskrnl: KeSetTargetProcessorDpcEx stub.
Required by mrac anti cheat.
2022-09-20 09:22:47 +02:00
Alistair Leslie-Hughes
df72f9a870 msdasql: Implement IColumnsRowset GetAvailableColumns.
The functions returns a series of custom columns to make a row unique.
For us, it's safe to return no extra columns at this stage.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-20 09:22:25 +02:00
Alistair Leslie-Hughes
ebf0070899 msdasql: Implement ICommandProperties SetProperties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-20 09:22:25 +02:00
Alistair Leslie-Hughes
323355a848 msdasql: Implement ICommandProperties GetProperties.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-20 09:22:23 +02:00
Akihiro Sagawa
cb0e4f5f4f user32: Fix a memory allocation strategy.
Otherwise, the function allocates a heap memory when prev_size is enough.
What is worse is that it returns the buffer untouched if the prev_size
is insufficient.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53703
2022-09-19 20:13:12 +02:00
Piotr Caban
548a6afccb msvcr100: Fix crash when setting scheduler in schedule_task_proc.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53672
2022-09-19 20:12:51 +02:00
Piotr Caban
bd43bb5304 msvcp90: Fix indentation in concurrent_vector_alloc_segment function. 2022-09-19 20:12:43 +02:00
Shaun Ren
6d2a9af43b msvcrt: Fix strncmp return value.
Some programs, such as Final Fantasy IV (3D remake), expect strncmp
to return exactly +/-1 when the strings are not equal.

Signed-off-by: Shaun Ren <sren@codeweavers.com>
2022-09-19 20:12:32 +02:00
Gijs Vermeulen
1b3f61d7a5 ntdll: Add RtlDosPathNameToRelativeNtPathName_U.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53700
2022-09-19 20:12:02 +02:00
Nikolay Sivov
1ceba3533e kernelbase: Add MapViewOfFileFromApp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-19 20:11:37 +02:00
Nikolay Sivov
3ede82e2a8 kernelbase: Add CreateFileMappingFromApp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-19 20:11:36 +02:00
Nikolay Sivov
40d0e55d4c kernelbase: Add OpenFileMappingFromApp().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-19 20:11:35 +02:00
Alistair Leslie-Hughes
b114b2c9eb wininet: Use standard HTTP_ADD Flags. 2022-09-19 20:10:47 +02:00
Eric Pouech
4bdf92cb7f jscript: Fix GCC 12.2 warning.
When initializing a jsstr_inline_t with a len < 3, the size passed
for the allocation is smaller then the size of the structure
(as the later is rounded up to the alignment = 4 bytes).

GCC 12.2 complains about this when dereferencing the pointer to
the structure as the size passed for allocation is smaller than the
size of the structure.

The warning is fixed by using flexible array member in
jsstr_inline_t. Given the rounding behavior in memory allocation, this
should not change the size of allocated blocks.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-19 20:10:36 +02:00
Alistair Leslie-Hughes
5308c71cfd oledb32/tests: Free returned property set memory.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36312
2022-09-19 20:10:26 +02:00
Aurimas Fišeras
e04a406a0a po: Update Lithuanian translation. 2022-09-19 20:10:13 +02:00
Zebediah Figura
f5b9213725 ntdll: Do not check for malloc() failure in get_initial_environment.
This is called early in process startup; malloc() should definitely never fail here.

This fixes an uninitialized variable warning with gcc 12.2:

In function ‘build_initial_params’,
    inlined from ‘init_startup_info’ at ../wine/dlls/ntdll/unix/env.c:2004:18:
../wine/dlls/ntdll/unix/env.c:1910:12: error: ‘env_pos’ may be used uninitialized [-Werror=maybe-uninitialized]
 1910 |     path = get_env_var( env, env_pos, pathW, 4 );
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../wine/dlls/ntdll/unix/env.c: In function ‘init_startup_info’:
../wine/dlls/ntdll/unix/env.c:1903:18: note: ‘env_pos’ declared here
 1903 |     SIZE_T size, env_pos, env_size;
      |                  ^~~~~~~
2022-09-16 21:08:28 +02:00
Rémi Bernon
ed0d100ec9 winegstreamer: Check for already opened stream in wm_reader_open*. 2022-09-16 21:08:20 +02:00
Rémi Bernon
359258560e winegstreamer: Use a dedicated CS to serialize async reader commands. 2022-09-16 21:08:20 +02:00
Rémi Bernon
daf10989f8 winegstreamer: Introduce a new async_reader_deliver_sample helper. 2022-09-16 21:08:20 +02:00
Rémi Bernon
4a1e95c814 winegstreamer: Wake thread when async reader user clock is modified. 2022-09-16 21:08:20 +02:00
Eric Pouech
af0fa4b8a8 glu32: Fix GCC 12.2 warnings.
GCC complains about writing 4x4 floats into a pointer to a float.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-16 19:15:05 +02:00
Alistair Leslie-Hughes
b9d07d6cb4 wininet: Clear cached credentials after the first failed attempt.
Windows when using cached credentials will use them on the first challenge,
if then a second 403 (ACCESS_DENIED) is received, the user is prompted again
but this time with the password and save checkbox cleared.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-16 19:15:05 +02:00
Davide Beatrici
8537b72202 winecoreaudio: Switch to mmdevapi's unixlib.h. 2022-09-16 19:15:05 +02:00
Davide Beatrici
af1257f741 winecoreaudio: Adapt "get_capture_buffer_params" struct to mmdevapi's. 2022-09-16 19:15:05 +02:00
Davide Beatrici
0987d1b002 winecoreaudio: Adapt "release_render_buffer_params" struct to mmdevapi's. 2022-09-16 19:15:05 +02:00
Davide Beatrici
9a30a71e3b winecoreaudio: Adapt "release_stream_params" struct to mmdevapi's. 2022-09-16 19:15:05 +02:00
Davide Beatrici
de9da9bcdb winecoreaudio: Adapt "create_stream_params" struct to mmdevapi's. 2022-09-16 19:15:05 +02:00
Davide Beatrici
bc404b6c9c winecoreaudio: Drop "unix_" prefix in unixlib enum, apply it to the functions instead. 2022-09-16 19:15:05 +02:00
Davide Beatrici
2fa22538a5 mmdevapi: Integrate winecoreaudio's additions in unixlib.h.
The data type for "done" was accidentally changed in e29dc33aeb.

BOOL is basically the same as UINT32, but it should only be used for flags.
BOOLEAN would be better for that though, as it's single-byte.
2022-09-16 19:15:05 +02:00
Davide Beatrici
013f662c05 winecoreaudio: Switch to string as device identifier, to match other drivers. 2022-09-16 19:15:05 +02:00
Davide Beatrici
93d3ecb90f winecoreaudio: Fix RegEnumKeyExW() call passing wrong unit for the buffer size.
The function takes the number of (wide) characters in input, not bytes.
2022-09-16 19:15:05 +02:00
Nikolay Sivov
2821d9cb41 xmllite/writer: Enable some more tests for WriteNode().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-16 19:15:05 +02:00
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