- 20 Sep, 2022 7 commits
-
-
Nikolay Sivov authored
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
-
Jinoh Kang authored
This fixes data race in ARM/ARM64 platforms, and prevents potential memory access reordering by the compiler.
-
Jinoh Kang authored
This fixes data race in ARM/ARM64 platforms, and prevents potential memory access reordering by the compiler.
-
Etaash Mathamsetty authored
Required by mrac anti cheat.
-
Alistair Leslie-Hughes authored
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>
-
Alistair Leslie-Hughes authored
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
-
Alistair Leslie-Hughes authored
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
-
- 19 Sep, 2022 12 commits
-
-
Akihiro Sagawa authored
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
-
Piotr Caban authored
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53672
-
Piotr Caban authored
-
Shaun Ren authored
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>
-
Gijs Vermeulen authored
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53700
-
Nikolay Sivov authored
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
-
Nikolay Sivov authored
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
-
Nikolay Sivov authored
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
-
Alistair Leslie-Hughes authored
-
Eric Pouech authored
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>
-
Alistair Leslie-Hughes authored
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36312
-
Aurimas Fišeras authored
-
- 16 Sep, 2022 21 commits
-
-
Zebediah Figura authored
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; | ^~~~~~~
-
Rémi Bernon authored
-
Rémi Bernon authored
-
Rémi Bernon authored
-
Rémi Bernon authored
-
Eric Pouech authored
GCC complains about writing 4x4 floats into a pointer to a float. Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
-
Alistair Leslie-Hughes authored
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>
-
Davide Beatrici authored
-
Davide Beatrici authored
-
Davide Beatrici authored
-
Davide Beatrici authored
-
Davide Beatrici authored
-
Davide Beatrici authored
-
Davide Beatrici authored
The data type for "done" was accidentally changed in e29dc33a. 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.
-
Davide Beatrici authored
-
Davide Beatrici authored
The function takes the number of (wide) characters in input, not bytes.
-
Nikolay Sivov authored
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
-
Alistair Leslie-Hughes authored
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
-
Zebediah Figura authored
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; | ^~~~
-
Zebediah Figura authored
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 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
Zebediah Figura authored
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 */ | ^
-