Commit graph

3249 commits

Author SHA1 Message Date
Alistair Leslie-Hughes e9003720d6 msvcrt: Remove DECLSPEC_HIDDEN usage. 2023-09-01 19:48:03 +02:00
Piotr Caban 969ed7edea msvcr110: Add _Cancellation_beacon class implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54756
2023-08-28 11:19:54 +02:00
Piotr Caban 3f55fb72ca msvcr110: Add Context::IsCurrentTaskCollectionCanceling implementation. 2023-08-28 11:19:54 +02:00
Piotr Caban 74eae57e0f msvcrt/tests: Make registry handle inheritable in test_invalid_stdin tests.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55286
2023-08-24 16:26:35 +02:00
Piotr Caban 195ff4bce7 msvcr90/tests: Reorder locale refcount tests to workaround leak in _create_locale.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54718
2023-08-23 17:46:17 +02:00
Piotr Caban 254dd0a2b2 msvcr70: Don't set SSE2 control register in _control87.
Restores old function behavior in msvcr70 and msvcr71.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55414
2023-08-22 16:58:25 +02:00
Eric Pouech 626f8d75e8 msvcrt: Fix freopen() on FILE with invalid underlying fd.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-17 23:26:13 +02:00
Eric Pouech 65b6e237cd msvcrt/tests: Add tests for freopen().
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-17 23:26:13 +02:00
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