Commit graph

909 commits

Author SHA1 Message Date
wuliande
ce125cc4f5 msvcp90: Make _Condition_variable_* function pointers static. 2022-11-03 18:33:09 +01:00
Bartosz Kosiorek
5258c8b952 msvcp90: Add _Wcerr_func implementation. 2022-11-02 16:01:31 +01:00
Bartosz Kosiorek
8b5b111f16 msvcp90: Add _Wclog_func implementation. 2022-11-02 16:01:30 +01:00
Bartosz Kosiorek
4e60e3babf msvcp90: Add _Wcout_func implementation. 2022-11-02 16:01:29 +01:00
Bartosz Kosiorek
5085dc2f2b msvcp90: Add _Cerr_func implementation. 2022-11-02 16:01:28 +01:00
Bartosz Kosiorek
10766e10dc msvcp90: Add _Clog_func implementation. 2022-11-02 16:01:26 +01:00
Bartosz Kosiorek
8cfe98c9de msvcp90: Add _Cout_func implementation. 2022-11-02 16:01:25 +01:00
Bartosz Kosiorek
1cdb3b55a5 msvcp90: Add _Wcin_func implementation. 2022-11-02 16:01:24 +01:00
Bartosz Kosiorek
ac224f25df msvcp90: Add _Cin_func implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47304
2022-11-02 16:01:18 +01:00
Paul Gofman
6c55010ef8 msvcp140: Import __ExceptionPtrCompare implementation. 2022-10-12 19:14:42 +02:00
Paul Gofman
961428dc74 msvcp140: Import __ExceptionPtrCopyException implementation. 2022-10-12 19:14:41 +02:00
Paul Gofman
1986dcc69c msvcp140: Import __ExceptionPtrToBool implementation. 2022-10-12 19:14:40 +02:00
Paul Gofman
23dd3b27e4 msvcp140: Import __ExceptionPtrCurrentException implementation. 2022-10-12 19:14:40 +02:00
Paul Gofman
58c0d78485 msvcp140: Import __ExceptionPtrRethrow implementation. 2022-10-12 19:14:39 +02:00
Paul Gofman
95b8a3a1c9 msvcp140: Import __ExceptionPtrAssign implementation. 2022-10-12 19:14:39 +02:00
Paul Gofman
c590c6b788 msvcp140: Import __ExceptionPtrCopy implementation. 2022-10-12 19:14:38 +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
Piotr Caban
bd43bb5304 msvcp90: Fix indentation in concurrent_vector_alloc_segment function. 2022-09-19 20:12:43 +02:00
Gijs Vermeulen
3f47b478b4 msvcp140: Add _ExceptionHolder::ReportUnhandledError stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53614
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
2022-09-07 21:16:26 +02:00
Piotr Caban
e047352193 msvcp71: Use MultiByteToWideChar in _Fiopen implementation.
Spotted by Yeshun Ye.
2022-08-18 21:42:19 +02:00
Piotr Caban
8c46e2a85b msvcp90: Use 'MultiByteToWideChar' in _Fiopen implementation.
Based on a patch by Yeshun Ye.
2022-08-15 18:12:20 +02:00
Alexandre Julliard
a40973f204 include: Add a number of 64-bit interlocked functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-23 10:55:06 +02:00
Torge Matthies
00012d3381 msvcp90: Fix segfault in bad_alloc exception default constructor.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-07 19:42:24 +02:00
Paul Gofman
d72d596070 msvcp140: Implement _Copy_file().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 21:15:52 +02:00
Piotr Caban
b8128f4162 msvcp140: Add SRWLock based _Mtx_t and _Cnd_t implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-15 18:05:27 +01:00
Piotr Caban
3f97321c73 msvcp110: Use _Condition_variable in _Cnd_t implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-15 18:05:27 +01:00
Piotr Caban
e040e2c16a msvcp110: Add _Mtx_reset_owner implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-15 18:05:27 +01:00
Piotr Caban
90c0807a87 msvcp110: Add _Mtx_clear_owner implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-15 18:05:27 +01:00
Piotr Caban
bd0d5dea13 msvcp110: Introduce wrapper around critical_section functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-15 18:05:27 +01:00
Piotr Caban
61da3277c4 msvcp90/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-14 11:04:19 +01:00
Piotr Caban
1d5a45912e msvcp90: Remove STREAMSIZE_BITS definition.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:44:55 +01:00
Piotr Caban
4aed1c2074 msvcp: Remove typos in mangled names.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:44:55 +01:00
Piotr Caban
09343d8981 msvcp: Print 0x prefix with %#x format in traces.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-08 20:24:15 +01:00
Eric Pouech
df25a1924a msvcp: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-08 20:24:15 +01:00
Eric Pouech
9ddcbb5f64 msvcr*: Use correct integral type in Interlocked* calls.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 19:42:01 +01:00
Eric Pouech
3fb30b5d75 msvcp: Use correct integral types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-03 21:05:48 +01:00
Eric Pouech
d7dad50544 msvcrt: Use correct integral types in structs.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-03 21:05:27 +01:00
Eric Pouech
b7b841eb69 msvcrt*: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-01 20:35:39 +01:00
Alexandre Julliard
f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Paul Gofman
f1dce4df90 msvcp110: Add ?_Byte_reverse_table@details@Concurrency@@3QBEB data export.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-19 22:05:19 +01:00
Eric Pouech
01111b941d msvcrt: Fix double-free and memory leak in type_info destructor.
Spotted by toying with the gcc's static analyzer.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-16 20:44:27 +01:00
Piotr Caban
c90d72588e msvcp140: Fix _Winerror_map test failures.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-19 18:31:38 +01:00
Alexandre Julliard
97479d3d32 ntdll: Move some exception definitions to winternl.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 13:52:42 +02:00
Alexandre Julliard
088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Piotr Caban
05235df044 concrt140: Avoid forwarding to msvcp120 by duplicating msvcp90/details.c.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-30 22:49:58 +02:00
Piotr Caban
731dca90c7 msvcp90: Use throw_exception helper to throw exception object only.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 20:25:05 +02:00
Piotr Caban
d7e9190032 msvcp90: Introduce throw_failure helper.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 20:25:05 +02:00
Piotr Caban
93455491fc msvcp90: Introduce throw_range_error helper.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 20:25:05 +02:00
Piotr Caban
503f3462c6 msvcp90: Don't use throw_exception helper for out_of_range exception.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 20:25:05 +02:00
Piotr Caban
73c4ae66c2 msvcp90: Don't use throw_exception helper for runtime_error exception.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 20:25:05 +02:00