Commit Graph

94 Commits

Author SHA1 Message Date
Alexandre Julliard 97425bd963 msvcrt: Reimplement strcmp/strncmp to get consistent return values.
The system functions may not always return -1 or 1.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-31 09:56:03 +01:00
Alexandre Julliard 0a79eb3608 include: Use the __thiscall attribute directly for the Mingw build.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Zebediah Figura 0c216b8ca8 msvcrt: Avoid using inline assembly in __ExceptionPtrCopyException() and copy_exception().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-01 19:49:29 +02:00
Zebediah Figura 6f819b49c1 msvcrt: Avoid using inline assembly in __ExceptionPtrDestroy().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-01 19:44:44 +02:00
Alex Henrie 8762cd5cf6 msvcrt: Don't include MSVC 8.0+ C++ functions in SOs for older DLLs.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 18:51:23 +01:00
Piotr Caban ab313dd3be msvcr120: Fix exception object refcounting in __ExceptionPtrAssign.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 21:04:33 +02:00
Daniel Lehman 867a27c964 msvcrt: Add __ExceptionPtrAssign.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:10:18 +02:00
Piotr Caban b2eab1a0e7 msvcrt: Add improper_scheduler_detach class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 08:52:47 +02:00
Piotr Caban 1e58032098 msvcrt: Add improper_scheduler_attach class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 08:52:18 +02:00
Piotr Caban 9bb7731e8e msvcrt: Add invalid_scheduler_policy_thread_specification class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:23 +02:00
Piotr Caban 04d8ace09d msvcrt: Add invalid_scheduler_policy_value class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:23 +02:00
Piotr Caban 11fbb1023d msvcrt: Add invalid_scheduler_policy_key class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:23 +02:00
Piotr Caban 90307e067f msvcrt: Add helper for exception throwing.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:23 +02:00
Piotr Caban de600ada77 msvcrt: Add improper_lock class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:22 +02:00
Piotr Caban cf7f632b31 msvcrt: Add __ExceptionPtrCompare implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 20:51:36 +01:00
Piotr Caban 2458f06380 msvcrt: Throw throw_scheduler_resource_allocation_error on Context tls index allocation error.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-23 17:07:58 +01:00
Piotr Caban 27185abe63 msvcrt: Move bad_alloc vtable definition into __asm_dummy_vtables function.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-23 17:07:58 +01:00
Piotr Caban b281c47144 msvcrt: Add scheduler_resource_allocation_error class implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-23 17:07:57 +01:00
Daniel Lehman 4db4d61bbb msvcrt: Add _Trace_ppl_function stub.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-20 13:21:35 +01:00
Piotr Caban 15b144b35d msvcrt: Add __ExceptionPtrCopyException implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 15:07:38 +01:00
Alexandre Goujon eac56fbda5 msvcrt: Implement 64-bit version of __std_type_info_hash.
Signed-off-by: GOUJON Alexandre <ale.goujon@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-06 21:27:52 +02:00
Piotr Caban 4931e6f92b ucrtbase: Add __std_type_info_hash implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 22:39:53 +09:00
Piotr Caban 4ba09e11a8 ucrtbase: Add __std_type_info_destroy_list implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 10:07:12 -05:00
Piotr Caban 2487168b75 ucrtbase: Add __std_type_info_name implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 10:07:06 -05:00
Piotr Caban 0707164543 ucrtbase: Fix __std_type_info_compare implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 10:06:59 -05:00
Piotr Caban 4f8aafbe28 msvcr120: Add __ExceptionPtrToBool implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 12:41:19 +09:00
Piotr Caban 97b9ff81b8 msvcrt: Fix 64-bit _CxxThrowException implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 22:45:07 +09:00
Martin Storsjo 78ce165f11 ucrtbase: Implement __std_type_info_compare.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:08 +09:00
Alexandre Julliard b7f6362ddc msvcrt: Use the correct object type for __non_rtti_object exceptions. 2015-03-04 21:50:32 +09:00
Piotr Caban 43be238331 msvcr80: Throw bad_alloc exception when operator new fails. 2014-09-02 20:54:47 +02:00
Piotr Caban 87bfb306bd msvcr80: Add __AdjustPointer implementation. 2014-05-07 18:57:35 +02:00
Piotr Caban 868e009e79 msvcrt: Add __ExceptionPtr* functions implementation. 2014-05-06 19:21:21 +02:00
Piotr Caban 1be4654842 msvcr80: Update exceptions RTTI data to reflect it's part of std namespace. 2014-05-06 19:20:48 +02:00
Piotr Caban 026ea82a2d msvcr80: Add type_info::name partial implementation. 2014-04-21 16:47:11 +02:00
Piotr Caban beeea28a53 msvcr100: Move functions implementation to msvcrt. 2014-04-16 18:00:15 +02:00
Piotr Caban 32858d1811 msvcr90: Add _is_exception_typeof implementation. 2014-01-06 20:52:40 +01:00
André Hentschel e931b5d17e msvcrt: Remove superfluous casts. 2013-07-03 10:28:22 +02:00
Nikolay Sivov eab914b968 msvcrt: Move demangler flags to a header and use them. 2013-02-25 10:40:36 +01:00
Piotr Caban bdedab6c84 msvcrt: Remove superfluous semicolons. 2012-11-28 20:14:47 +01:00
Piotr Caban 488693e407 msvcrt: Fixed exception information on 64-bit systems. 2012-10-11 20:22:45 +02:00
Piotr Caban f4e323baa4 msvcrt: Fixed RTTI base pointer calculation if signature==0. 2012-09-13 13:56:04 +02:00
Piotr Caban 8060752c09 msvcrt: Fixed RTTI structure on 64-bit systems. 2012-09-07 11:55:32 +02:00
Piotr Caban 33937f039f msvcrt: Support 64-bit RTTI in __RTDynamicCast. 2012-09-05 21:56:57 +02:00
Piotr Caban fbae5a95c3 msvcrt: Support 64-bit RTTI in __RTtypeid function. 2012-09-05 21:56:57 +02:00
Piotr Caban 63be52e2aa msvcrt: Moved RTTI and thiscall related macros to separate header. 2012-09-05 21:56:56 +02:00
Piotr Caban fef8a52fc9 msvcrt: Fixed vector destructors implementation on 64-bit systems. 2012-08-20 15:00:43 +02:00
Piotr Caban 482159a234 msvcrt: Fixed typo in DEFINE_EXCEPTION_TYPE_INFO macro. 2012-05-30 11:28:10 +02:00
Alexandre Julliard 04ccf4f100 msvcrt: Use macros to define exception type info structures. 2012-04-04 20:47:06 +02:00
Alexandre Julliard 6bb9f20090 msvcrt: Use macros to define RTTI data. 2012-04-04 20:17:44 +02:00
Alexandre Julliard aba6423b83 msvcrt: Create an i386-specific file for exception handling. 2012-03-16 10:52:10 +01:00