Timo Kreuzer
6133cc016d
[CRT/x64] Fix a bug in __C_specific_handler
...
Fixes crash of compiler_apitest pseh
2023-09-26 18:02:21 +03:00
Timo Kreuzer
d41a4030bc
[CRT] Import parameter check for fclose from wine
...
Fixes advpack_apitest:DelNode crash.
2023-09-17 10:19:15 +03:00
Katayama Hirofumi MZ
85377ee3db
[SDK][CRT][MSVCRT] Implement _CrtSetReportMode and _CrtSetReportFile ( #5662 )
...
- Implement reporting to file.
CORE-11835, CORE-15517, ROSTESTS-386
2023-09-11 04:37:27 +09:00
Timo Kreuzer
ce848e5c11
[CPPRT][CRT][MSVCRT] Move __CxxFrameHandler3 to crt and export it on NT6
...
Previously it was in cpprt, which is a support library for C++, containing functions that are not exported by msvcrt. But since Vista __CxxFrameHandler3 is exported by msvcrt. Therefore move it to crt, and to satisfy pre-Vista configurations, also add it to msvcrtex.
2023-08-23 20:43:53 +03:00
Timo Kreuzer
c332b917dc
[CRT] Reduce diff to wine-5.0
2023-08-19 23:50:52 +03:00
winesync
1f8eda7853
[WINESYNC] msvcrt: Fix handling tryblocks inside current catch block on nested exception.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48335
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 6babdb5508bd2f1b659218483f5df76859898712 by Piotr Caban <piotr@codeweavers.com >
2023-08-19 23:50:52 +03:00
winesync
4df4baa391
[WINESYNC] msvcrt: Pass catch_func_nested_frame struct to call_catch_block.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 48a447c5eb238d673ce5db4eeacf3ba4c1a9da90 by Piotr Caban <piotr@codeweavers.com >
2023-08-19 23:50:52 +03:00
winesync
6c7dc46702
[WINESYNC] msvcrt: Pass catch_func_nested_frame struct to cxx_frame_handler.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id ea20974cdd7457715bf4d758818d03bff664f62b by Piotr Caban <piotr@codeweavers.com >
2023-08-19 23:50:52 +03:00
Timo Kreuzer
994d5e0ad1
[CRT] Make _controlfp_s portable
2023-08-11 19:00:42 +03:00
Justin Miller
f2a58733e8
[FREELDR][SDK] Build UEFI bootloader for ARM32 ( #5196 )
...
CORE-17604
- Disable some functions for ARM32;
- Remove some link options not used on ARM;
- Add get _controlfp() to LIBCNTPR to link properly on ARM;
- Unify Freeldr UI Drawing on ARM;
- Add qemu UART debugging for ARM32/ARM64.
2023-05-03 20:56:06 +02:00
Katayama Hirofumi MZ
fdedc549d0
[MSVCRT] Follow-up of Follow-up of #5032 ( f172503)
...
Fix for system/_wsystem.
Use _set_errno(ENOMEM) for malloc failure.
Rename status variable as exit_code.
2023-03-05 23:28:00 +09:00
Katayama Hirofumi MZ
5a7dbd6064
[MSVCRT] Follow-up of #5032 ( f172503)
...
Use _cwait() instead of WaitForSingleObject and GetExitCodeProcess.
Use malloc/free instead of LocalAlloc/LocalFree.
2023-03-05 23:20:12 +09:00
Katayama Hirofumi MZ
f172503d57
[MSVCRT][CRT_APITEST] Implement _wsystem ( #5032 )
...
Implement _wsystem(), by referring system().
Improve system().
Use WaitForSingleObject in system() and _wsystem().
Check existence of COMSPEC.
Thanks ChatGPT.
2023-03-05 21:01:14 +09:00
Katayama Hirofumi MZ
38c0da9978
[CRT] printf/wprintf: Support %zu ( #5056 )
...
"%zu" is a printf format specifier for type size_t. Some apps assume the implementation of this specifier. CORE-17787
2023-02-14 20:54:53 +09:00
Timo Kreuzer
9d19f8bf65
[WINESYNC] msvcrt: Use memmove to copy memory in memcpy_s.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 055ca5e4d9770d4f14e3c157f1288fa6308b86dd by Jacek Caban <jacek@codeweavers.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
6b8a981010
[WINESYNC] msvcrt: Use memmove to copy memory in wmemcpy_s.
...
Fixes memory corruption in Outlook 2016.
Signed-off-by: Jacek Caban <jacek@codeweavers.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id be56a83fd00cdaf9583a973b1e041f47c5277768 by Jacek Caban <jacek@codeweavers.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
c50fb470b4
[WINESYNC] msvcrt: Add DECLSPEC_HOTPATCH to functions patched by libtcmalloc.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45199
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id b917cc66f4f7b786e7f19f63ab0c0819a5455222 by Alex Henrie <alexhenrie24@gmail.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
3ff17d5d71
[WINESYNC] msvcrt: Don't include MSVC 8.0+ heap 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 >
wine commit id 42ab0af66b74f7572db2f6d0256f49fae7527221 by Alex Henrie <alexhenrie24@gmail.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
8fdc1b0d38
[WINESYNC] msvcrt: Add helper for exception throwing.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 90307e067f985f5963b62829993b320537578333 by Piotr Caban <piotr@codeweavers.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
6360937cd4
[WINESYNC] ucrtbase: Implement _realloc_base.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 8a69c5d81f8deb472df18a8e16e57efef2eb9a9a by Alex Henrie <alexhenrie24@gmail.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
aa77776eb0
[WINESYNC] ucrtbase: Implement _free_base.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id e4b8bc0edc640b36f2a2a26c53e18edea04fa74c by Alex Henrie <alexhenrie24@gmail.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
7757ebfbad
[WINESYNC] ucrtbase: Implement _malloc_base.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 5325b8c95112be75f4fa0e2e2e45bcc88434fb5d by Alex Henrie <alexhenrie24@gmail.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
0dfd5665c0
[WINESYNC] ucrtbase: Implement _calloc_base.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id fdc57d497bb305e90680c3b450fa172042fd79cd by Alex Henrie <alexhenrie24@gmail.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
1d6ec8555d
[WINESYNC] msvcrt: Handle overflow in calloc().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
Signed-off-by: Piotr Caban <piotr@codeweavers.com >
Signed-off-by: Alexandre Julliard <julliard@winehq.org >
wine commit id 50dd4b892825c75db35cd1f378291b51fa782f3e by Nikolay Sivov <nsivov@codeweavers.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
977e236102
[WINESYNC] msvcrt: memmove_s shouldn't zero its output buffer on error.
...
wine commit id 49560458426cf25b6a36bbf9bad35aa75c9f7aa7 by Dan Kegel <dank@kegel.com >
2023-02-02 14:58:08 +01:00
Timo Kreuzer
8fa0886fb9
[CRT] Reduce diff to wine by adjusting white space
2023-02-02 14:58:08 +01:00
Timo Kreuzer
f34e425e1a
[WINESYNC] msvcrt: Don't fail when _aligned_offset_malloc is used with size=0.
...
wine commit id 7771552f247660acc472b4862f32c4f8426be180 by Piotr Caban <piotr@codeweavers.com >
2023-01-24 18:53:13 +01:00
Timo Kreuzer
739c9a1e77
[WINESYNC] msvcrt: Fixed strncpy_s behavior when count equals 0.
...
wine commit id bdf9a9f9bd56354f70a7431a9682183b84353211 by Piotr Caban <piotr@codeweavers.com >
2023-01-24 18:53:13 +01:00
Timo Kreuzer
c36ea58f32
[CRT] Add a number of functions from wine
...
This adds _aligned_msize, _recalloc, wmemmove_s, memcpy_s, wmemcpy_s
2023-01-24 18:53:13 +01:00
Timo Kreuzer
d0a52a6d71
[CRT] Reduce diff
...
- use msvcrt_set_errno
- MSVCRT_CHECK_PMT already sets the error.
- NULL check is already in HeapFree
2023-01-24 18:53:13 +01:00
Timo Kreuzer
c47506a5f4
[CRT] Use the original wine heap functions
2023-01-24 18:53:13 +01:00
Timo Kreuzer
cf40758d76
[CRT] reduce diff to wine of heap code
...
No functional changes intended.
2023-01-24 18:53:13 +01:00
Timo Kreuzer
73ef1c3c8b
[CRT] Get back MSVCRT prefix in wine heap code
2023-01-24 18:53:13 +01:00
Timo Kreuzer
dacbc603b6
[CRT] Add simplistic fallback implementation of sincos to make GCC 11 happy
2022-12-01 15:21:59 +02:00
Timo Kreuzer
28c41b7d22
[CRT] Replace amd64 math functions/stubs with libm
2022-12-01 15:21:59 +02:00
Timo Kreuzer
1ad4106b84
[CRT] Add basic version of handle_error
2022-12-01 15:21:59 +02:00
Timo Kreuzer
3d497ca883
[CRT] Improve _matherr handling
2022-12-01 15:21:59 +02:00
Timo Kreuzer
4d50f81419
[CRT] Implement _set_statfp
2022-12-01 15:21:59 +02:00
Timo Kreuzer
7277e26944
[LIBM] Fix ldexp.c / ldexpf.c
2022-12-01 15:21:59 +02:00
Timo Kreuzer
4f348ee971
[LIBM] Add ldexp.c and ldexpf.c from aocl-libm-ose
2022-12-01 15:21:59 +02:00
Timo Kreuzer
105426b81a
[LIBM] Fix up some asm files
...
This allows to compile them with GAS after translation
2022-12-01 15:21:59 +02:00
Timo Kreuzer
af6d3bb18f
[LIBM] Convert tables from asm to C
2022-12-01 15:21:59 +02:00
Timo Kreuzer
9e8ed3f817
[LIBM] Fix build
2022-12-01 15:21:59 +02:00
Timo Kreuzer
4afb647c78
[LIBM] Import win-libm from AMD
...
Source: https://github.com/amd/win-libm
2022-12-01 15:21:59 +02:00
Timo Kreuzer
3aa3b3af56
[CRT] Implement portable ceil/floor
2022-08-26 00:44:46 +02:00
Timo Kreuzer
76086220fa
[CRT] Fix amd64 floating point control functions
2022-08-22 11:22:08 +02:00
Timo Kreuzer
bc9409daba
[CRT] Add round and roundf and add it to msvcrtex to make clang v14 happy
2022-07-17 17:32:32 +02:00
Timo Kreuzer
b85afdfd25
[CRT] Implement portable + amd64 asm version of fabs/fabsf
...
Note: older versions of ML64 are broken and don't understand the register form of movq.
See https://stackoverflow.com/questions/24789339/move-quadword-between-xmm-and-general-purpose-register-in-ml64
2022-06-26 19:13:47 +02:00
Victor Perevertkin
447ef2aa4a
[CMAKE] Do not use USE_CLANG_CL variable in CMake scripts
2022-05-27 01:37:37 +03:00
Victor Perevertkin
f155b9377f
[CMAKE] Elimitate the use of GCC and CLANG variables
2022-05-27 01:37:34 +03:00