Commit graph

3241 commits

Author SHA1 Message Date
Victor Chiletto fd2ddf8f2a msvcrt: Remove uses of wcsncpy from locale_to_sname. 2023-07-27 13:12:06 +09:00
Victor Chiletto 46596db7ed msvcrt: Fix memory leak in create_locinfo. 2023-07-27 13:12:06 +09:00
Victor Chiletto 85317b51cb msvcrt: Remove unused struct locale_search_t member. 2023-07-27 13:12:06 +09:00
Piotr Caban 4a4f138fe9 msvcrt: Set sname_match in locale_to_sname when returning cached result. 2023-07-21 21:27:44 +02:00
Piotr Caban f93f31dec5 msvcrt: Improve locale_to_sname error handling. 2023-07-21 21:27:44 +02:00
Piotr Caban 092e68b2e0 msvcrt: Pass correct buffer to locale_to_sname helper in create_locinfo. 2023-07-21 21:27:44 +02:00
Yuxuan Shui f66c897212 msvcrt: Fix out-of-bound access in create_locinfo.
Fixes regression introduced by 24a2b62554.

Signed-off-by: Yuxuan Shui <yshui@codeweavers.com>
2023-07-20 21:48:39 +02:00
Francois Gouget fc37683985 msvcrt/tests: Check that some functions are only available in 32-bit code. 2023-07-19 16:54:29 +02:00
Victor Chiletto 8f663f3d5e msvcrt: Use GetLocaleInfoEx to compare locale info.
GetLocaleInfoA doesn't return the proper sname for neutral LCIDs.
2023-07-12 21:51:20 +02:00
Victor Chiletto ec7816a42a msvcrt: Remap synonyms to snames.
Gives us more control over what we map to which is required due to changes in Chinese locales.
2023-07-12 21:51:18 +02:00
Victor Chiletto d71e939498 msvcrt: Simplify set_lc_locale_name. 2023-07-12 21:51:18 +02:00
Victor Chiletto 72c3b8f3a0 msvcrt: Skip exhaustive locale search with valid snames. 2023-07-12 21:51:18 +02:00
Victor Chiletto 45dd09d0cf msvcrt: Convert locale_to_LCID to snames. 2023-07-12 21:51:18 +02:00
Victor Chiletto 24a2b62554 msvcrt: Use snames instead of LCIDs in create_locinfo. 2023-07-12 21:51:18 +02:00
Piotr Caban 781b8c3d6b msvcr100: Use Context blocking functions in _Condition_variable class. 2023-06-08 18:44:10 +02:00
Piotr Caban 7bf56117ce msvcr100: Use block_context_for helper in event::wait(). 2023-06-08 18:44:10 +02:00
Piotr Caban d3d9297b60 msvcr100: Use block_context_for helper in Concurrency::wait(). 2023-06-08 18:44:10 +02:00
Piotr Caban 0f69396405 msvcr100: Add support for COOPERATIVE_TIMEOUT_INFINITE timeout in critical_section. 2023-06-08 18:44:10 +02:00
Piotr Caban 684dbfd0c7 msvcr100: Fix use after free in critical_section::try_lock_for(). 2023-06-08 18:44:09 +02:00
Piotr Caban 01c3f4dc65 msvcr100: Use Context blocking functions in Concurrency::wait(). 2023-06-06 21:51:43 +02:00
Piotr Caban 3ef786f46a msvcr100: Use Context blocking functions in event class. 2023-06-06 21:51:43 +02:00
Alex Henrie 76acd5916f msvcrt: Use 'else if' in _wgetcwd.
Fixes a scan-build warning.
2023-06-06 11:52:19 +02:00
Piotr Caban 7e060adfcc msvcr100: Use Context blocking functions in critical_section class. 2023-06-05 14:01:07 +02:00
Piotr Caban 51388af06f msvcr100: Use Context to store critical_section owner. 2023-06-05 14:01:07 +02:00
Piotr Caban 0336d66ea1 msvcr100: Fix next writer unblocking in reader_writer_lock::unlock.
Fixes regression introduced by 256c344550.
2023-06-01 22:00:19 +02:00
Brendan Shanks e414561a96 msvcrt: Fix crash when rethrowing after a non-C++ exception on x86_64. 2023-04-21 20:44:43 +02:00
Piotr Caban 256c344550 msvcr100: Use Context blocking functions in reader_writer_lock class. 2023-04-14 20:33:54 +02:00
Piotr Caban c595bef69b msvcr100: Add ExternalContextBase::Unblock implementation. 2023-04-14 20:33:54 +02:00
Piotr Caban b96e7d34e4 msvcr100: Add ExternalContextBase::IsSynchronouslyBlocked() implementation. 2023-04-14 20:33:54 +02:00
Piotr Caban dcccf544be msvcr100: Add ExternalContextBase::Block() implementation. 2023-04-14 20:33:54 +02:00
Piotr Caban 92e75061f3 msvcr100: Add Context::Block() implementation. 2023-04-14 20:33:54 +02:00
Piotr Caban 08ed6b1ddf msvcr100: Add missing ExternalContextBase virtual functions stubs. 2023-04-14 20:33:54 +02:00
Torge Matthies 0aa7ac415f msvcr110: Implement _Context::_IsSynchronouslyBlocked. 2023-04-14 20:33:54 +02:00
Alexandre Julliard d70a652da8 msvcrt: Use the _dclass()/_fdclass() implementation from the bundled musl library. 2023-04-11 12:36:53 +02:00
Alexandre Julliard 75eb987768 msvcrt: Use the sqrt() implementation from the bundled musl library. 2023-04-11 12:36:53 +02:00
Alexandre Julliard 20c53e72c9 msvcrt: Use the sqrtf() implementation from the bundled musl library. 2023-04-11 12:36:53 +02:00
Alexandre Julliard bfc3a2bdb3 msvcrt: Use the erf()/erfc()/erff()/erfcf() implementation from the bundled musl library. 2023-04-11 12:36:53 +02:00
Alexandre Julliard 3b1e2a7bfd msvcrt: Use the remainder()/remainderf() implementation from the bundled musl library. 2023-04-11 12:36:53 +02:00
Alexandre Julliard 5c00be28fc msvcrt: Use the tanh()/tanhf() implementation from the bundled musl library. 2023-04-10 14:18:20 +02:00
Alexandre Julliard 4ffb1199e3 msvcrt: Use the atanh()/atanhf() implementation from the bundled musl library. 2023-04-10 14:18:18 +02:00
Alexandre Julliard e2924fafdf msvcrt: Use the acosh()/acoshf() implementation from the bundled musl library. 2023-04-10 14:18:17 +02:00
Alexandre Julliard 6e9dd141a8 msvcrt: Use the asinh()/asinhf() implementation from the bundled musl library. 2023-04-10 14:18:17 +02:00
Alexandre Julliard ecfbd5971e msvcrt: Use the atan() implementation from the bundled musl library. 2023-04-10 14:18:17 +02:00
Alexandre Julliard 82563ede70 msvcrt: Use the asin() implementation from the bundled musl library. 2023-04-10 14:18:11 +02:00
Alexandre Julliard 938acddb9f msvcrt: Use the acos() implementation from the bundled musl library. 2023-04-10 14:18:11 +02:00
Alexandre Julliard 5c3de7d794 msvcrt: Use the exp() implementation from the bundled musl library. 2023-04-10 14:18:10 +02:00
Alexandre Julliard e525730cc1 msvcrt: Use the atanf() implementation from the bundled musl library. 2023-04-10 14:18:09 +02:00
Alexandre Julliard 472d7ec76d msvcrt: Use the asinf() implementation from the bundled musl library.
With the changes from 0b8db61271.
2023-04-10 14:18:08 +02:00
Alexandre Julliard c9399ae7d5 msvcrt: Use the acosf() implementation from the bundled musl library.
With the changes from 9c8f8e715f.
2023-04-10 14:18:06 +02:00
Alexandre Julliard 221f891848 msvcrt: Use the expf() implementation from the bundled musl library. 2023-04-10 14:18:06 +02:00