Commit Graph

1686 Commits

Author SHA1 Message Date
Piotr Caban afec0b00bd msvcrt: Make the first call to fwrite buffered. 2013-10-21 21:06:15 +02:00
Piotr Caban f906be9ef4 msvcrt: Don't validate parameters in _itoa function. 2013-10-15 16:36:25 +02:00
Nikolay Sivov 08422163cf msvcrt: Prevent msvcrt.dll unloading. 2013-10-15 14:28:20 +02:00
Frédéric Delanoy f6677602e3 msvcrt: Use BOOL type where appropriate. 2013-10-11 11:05:59 +02:00
Piotr Caban 0aa72d880a msvcrt: Add support for vtordispex demangling. 2013-10-07 14:44:36 +02:00
Piotr Caban 501d60b020 msvcrt: Add support for vcall thunks demangling. 2013-10-07 14:44:36 +02:00
Piotr Caban d13436e048 msvcrt: Don't try to demangle template after function or variable name. 2013-10-07 14:44:36 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Michael Stefaniuc 9463dba830 tests: Use the explicit LoadLibraryA function. 2013-10-02 11:02:21 +02:00
Piotr Caban 26721c25f6 msvcrt: Don't forward wcsncmp to ntdll. 2013-10-01 13:10:21 +02:00
Piotr Caban 7fb5cca3e4 msvcrt: Don't forward qsort to ntdll. 2013-10-01 13:10:21 +02:00
Piotr Caban 5fce0724ed msvcrt: Don't forward bsearch to ntdll. 2013-10-01 13:10:21 +02:00
Piotr Caban 3868bf06b2 msvcrt: Add _wtoi64_l implementation. 2013-10-01 13:10:21 +02:00
Piotr Caban d99090aff8 msvcrt: Don't forward _itoa to ntdll. 2013-10-01 13:10:21 +02:00
Marcus Meissner e9358909f8 msvcrt: Restore a stack mark on error (Coverity). 2013-09-30 11:49:08 +02:00
Frédéric Delanoy cb7546eaf7 msvcrt: Use BOOL type where appropriate. 2013-09-27 10:44:55 +02:00
Piotr Caban a449b2d57b msvcrt: Call MSVCRT_strtoi64_l in strtoul implementation. 2013-09-25 19:30:32 +02:00
Piotr Caban c3c44544ff msvcrt: Call MSVCRT_strtoi64_l in strtol implementation. 2013-09-25 19:30:30 +02:00
Piotr Caban b01f888129 msvcrt: Fix internal LONG_MAX and ULONG_MAX definitions. 2013-09-25 19:30:23 +02:00
Piotr Caban b50833389e msvcrt: Improve error handling in wcsrtombs function. 2013-09-24 18:54:37 +02:00
Piotr Caban dadb2fdfa9 msvcrt: Add _snwprintf_s_l implementation. 2013-09-19 19:49:11 +02:00
Piotr Caban 1f1624612e msvcrt: Don't use CDECL calling convention in MSVCRT_wcsrtombs_l (internal function). 2013-09-18 13:11:10 +02:00
Piotr Caban bffc240b4e msvcrt: Fix loop condition when printing Inf or NaN. 2013-09-17 16:26:01 +02:00
Piotr Caban 882761f15d msvcrt: Don't forward wcsstr to ntdll. 2013-09-17 16:25:54 +02:00
Piotr Caban a89f726355 msvcrt: Don't forward wcslen to ntdll. 2013-09-17 16:25:48 +02:00
Piotr Caban 300c012372 msvcrt: Don't forward wcschr to ntdll. 2013-09-17 16:25:43 +02:00
Piotr Caban 019c34ca1e msvcrt: Don't forward strstr to ntdll. 2013-09-17 16:25:28 +02:00
Piotr Caban 138df7da33 msvcrt: Don't forward strrchr to ntdll. 2013-09-17 16:25:23 +02:00
Piotr Caban 31d92b926e msvcrt: Don't forward strncat to ntdll. 2013-09-17 16:25:04 +02:00
Piotr Caban f0ec9b134a msvcrt: Don't forward strlen to ntdll. 2013-09-17 16:24:58 +02:00
Piotr Caban 1803016c08 msvcrt: Don't forward strcmp to ntdll. 2013-09-17 16:24:53 +02:00
Piotr Caban 5b1f7f8549 msvcrt: Don't forward memmove to ntdll. 2013-09-17 16:24:46 +02:00
Piotr Caban 4fbf246298 msvcrt: Don't forward memcmp to ntdll. 2013-09-17 16:24:39 +02:00
André Hentschel 0e867236dc msvcrt/tests: Load the correct function on ARM. 2013-09-17 12:27:00 +02:00
Piotr Caban 6594212dd6 msvcrt: Fix Inf and NaN handling in printf function. 2013-09-16 19:51:04 +02:00
Piotr Caban 0df84ecf11 msvcrt: Add support for vtordisp functions demangling. 2013-09-12 12:59:14 +02:00
Piotr Caban 2734ae0786 msvcrt: Don't forward _wcsnicmp to ntdll. 2013-09-12 12:59:02 +02:00
Piotr Caban d548877f6e msvcr110: Add forwards to type_info::before function. 2013-09-11 16:08:42 +02:00
André Hentschel 8fab2422a8 msvcrt: Export fabsf on ARM and x86_64. 2013-09-04 14:43:45 +02:00
Piotr Caban 33d697c001 msvcrt: Add _wsetlocale implementation. 2013-08-29 19:56:17 +02:00
Piotr Caban 024ece50e8 msvcrt: Fix parameter validation in _stat64 function. 2013-08-26 15:01:37 +02:00
Vincent Povirk 5f2e48f737 msvcrt: _[w]access_s returns an error code. 2013-08-22 10:27:54 +02:00
Piotr Caban 089cc78182 msvcrt: Fix lookahead buffer usage on pipes. 2013-08-21 19:52:51 +02:00
Piotr Caban f42c631d6e msvcrt: Improve setting standard handles flags. 2013-08-21 19:52:37 +02:00
Álvaro Nieto e3e1284557 msvrct: Fix strncpy to fill the buffer. 2013-08-16 20:49:36 +02:00
André Hentschel 3d6ebecedb msvcrt/tests: Fix dynamically loaded functions for ARM. 2013-08-16 11:55:23 +02:00
Daniel Lehman a0d8d1e223 msvcrt: Invoke invalid_handler in _wcscpy_s. 2013-08-16 11:55:23 +02:00
Piotr Caban a51ffcd442 msvcrt: Added _swprintf_s_l implementation. 2013-08-01 16:28:39 +02:00
Piotr Caban 679542419a msvcrt: Add _wcstol_l implementation. 2013-07-29 15:00:26 +02:00
Piotr Caban 6457163bb2 msvcrt: Add _wctomb_s_l implementation. 2013-07-27 11:50:56 -05:00
Piotr Caban b6fc57ec84 msvcrt: Add _wmktemp_s implementation. 2013-07-24 14:35:12 -05:00
Piotr Caban 7d41f9b3e9 msvcrt: Add _mktemp_s implementation. 2013-07-24 14:35:11 -05:00
Piotr Caban ce9d4b807e msvcrt: Fix _mktemp implementation. 2013-07-24 14:35:11 -05:00
Qian Hong ff7746a0c8 msvcrt/tests: Added setlocale test for Chinese_China.936. 2013-07-22 17:16:04 +02:00
Alexandre Julliard 4be0f88e8d libwine: Use the best fit data for codepage 1361. 2013-07-22 17:16:00 +02:00
André Hentschel e931b5d17e msvcrt: Remove superfluous casts. 2013-07-03 10:28:22 +02:00
Piotr Caban c66d94bfd9 msvcrt: Added _wcsicmp_l implementation. 2013-06-25 18:12:12 +02:00
Piotr Caban bba1db0905 msvcrt: Don't forward memchr to ntdll. 2013-06-21 16:23:35 +02:00
Piotr Caban eb13a49de9 msvcrt: Add some _mbstok tests. 2013-06-21 16:23:35 +02:00
Piotr Caban 779c1f8049 msvcrt: Don't call invalid parameter handler when string to be tokenized and context are not set in mbstok. 2013-06-21 16:23:35 +02:00
Piotr Caban f3eb64ec73 msvcrt: Don't detect overflow in atoi implementation. 2013-06-04 21:01:13 +02:00
Piotr Caban 598ff4dd5a msvcrt: Reuse FILE object in wfreopen function. 2013-06-04 14:59:20 +02:00
Austin English d42ed7595c msvcrt: Remove warning hack. 2013-05-31 11:57:29 +02:00
Alexandre Julliard 66a5468676 msvcrt: Don't bother to clean up at process exit. 2013-05-20 12:28:38 +02:00
Max Kellermann cee65e9409 msvcrt: Fix character/byte confusion in buffer overflow branch. 2013-05-07 11:16:08 +02:00
Piotr Caban f99742a539 msvcrt: Move _fstat32 and _fstat64i32 functions to msvcrt. 2013-04-30 18:44:46 +02:00
Piotr Caban ff7388ca3f msvcrt: Added _mbstok_s_l implementation. 2013-04-30 18:44:46 +02:00
Jactry Zeng 7cd91b6452 msvcrt: Fixed typo of _strncoll and _strncoll_l. 2013-04-29 20:30:55 +02:00
Jactry Zeng 60faef8e3c msvcrt: Added _wfindfirst32 implementation. 2013-04-19 19:17:08 +02:00
Alexandre Julliard d95857d669 msvcrt: Constify the arguments of execv functions. 2013-04-09 13:45:57 +02:00
Piotr Caban 4716cd37ee msvcrt: Fixed debug message in strncpy_s. 2013-04-05 20:39:07 +02:00
Victor Martinez Calvo f2b78d1fd0 msvcrt: Fix copy-pasta typos LOCALE_SSHORTDATE->LOCALE_SLONGDATE in _create_locale. 2013-04-04 13:28:46 +02:00
André Hentschel b815548cf0 kernel32/tests: Don't test function directly when reporting GetLastError(). 2013-04-03 18:05:35 +02:00
Jactry Zeng 5af20ef180 msvcrt: Added _wcsnicoll_l implementation. 2013-04-01 14:41:03 +02:00
Jactry Zeng d2763e43d1 msvcrt: Added _wcsicoll_l implementation. 2013-04-01 14:40:49 +02:00
Jactry Zeng dafa7611e9 msvcrt: Added _wcscoll_l implementation. 2013-04-01 14:40:21 +02:00
Jactry Zeng 2f425fb832 msvcrt: Added _wcsncoll and _wcsncoll_l implementation. 2013-03-29 17:52:19 +01:00
Piotr Caban 280f8237b5 msvcrt: Move fread_s function to msvcrt. 2013-03-28 18:54:42 +01:00
Piotr Caban 12b8c9671e msvcrt: Update spec file with functions added in newer version of the dll. 2013-03-28 18:54:26 +01:00
Piotr Caban db58873868 msvcrt: Don't forward _getpid to kernel32. 2013-03-27 20:12:29 +01:00
Piotr Caban 8f9b0abf72 msvcrt: Added _wcstoul_l implementation. 2013-03-27 20:12:29 +01:00
Piotr Caban 9e32259457 msvcrt: Don't forward wcsncpy to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 975801cceb msvcrt: Don't forward towupper and towlower to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban b626556272 msvcrt: Don't forward strncpy to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban e66e950459 msvcrt: Don't forward strncmp to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban bf237452ef msvcrt: Don't forward strchr to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 1278080901 msvcrt: Don't forward memset to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 15b40e7b9c msvcrt: Don't forward atoi to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 06c6773844 msvcrt: Added _wtol_l implementation. 2013-03-27 20:12:29 +01:00
Piotr Caban 5c03a35f7a msvcrt: Don't forward _wtoi to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 0ffc970aa4 msvcrt: Don't forward _wcsicmp to ntdll. 2013-03-27 20:12:29 +01:00
Akihiro Sagawa cf2ce8c64b msvcrt/tests: Add unicode fgetwc tests. 2013-03-27 20:12:28 +01:00
Akihiro Sagawa c2ce2fa06e msvcrt/tests: Add locale dependent fgetwc tests. 2013-03-27 20:12:28 +01:00
Akihiro Sagawa 23b8c4df19 msvcrt: Fix mbtowc_l in C locale. 2013-03-27 20:12:28 +01:00
Piotr Caban 343122a494 msvcrt: Added _set_output_format tests. 2013-03-27 12:13:23 +01:00
Piotr Caban 9c4be83a78 msvcrt: Added _set_output_format implementation. 2013-03-27 12:13:20 +01:00
Piotr Caban 737bb1bb18 msvcrt: Fixed copied buffer size in _ui64tow_s. 2013-03-25 16:28:07 +01:00
Piotr Caban 6eeb000c90 msvcrt: Fixed fgetwc behavior on multibyte characters and Unicode files. 2013-03-25 16:24:13 +01:00
Piotr Caban cde73251d8 msvcrt: Remove incorrect cast in fgetws function. 2013-03-25 16:24:01 +01:00
Piotr Caban 027d985210 msvcrt: Limit access to out buffer in fread function.
DVDFab HD Decrypter expects that unused part of output buffer is not
modified.
2013-03-14 14:56:10 +01:00
Alexandre Julliard 866034c1ef msvcrt: Use -arch=i386 everywhere for consistency. 2013-03-14 13:20:18 +01:00
Alexandre Julliard 599d080220 msvcrt: Export the float math functions on ARM. 2013-03-14 13:20:13 +01:00
Alexandre Julliard 5c4bce668c msvcrt: Export the ARM version of some mangled names. 2013-03-14 13:19:48 +01:00
André Hentschel b29e56f205 msvcrt: Add setjmp for ARM in spec file. 2013-03-14 12:13:12 +01:00
Akihiro Sagawa 0010ee021a msvcrt: Fix incorrect casts in _wcstoi64_l and _wcstoui64_l. 2013-03-11 10:41:09 +01:00
Akihiro Sagawa 564b682447 msvcrt/tests: Add _wcstoi64/_wcstoui64 tests. 2013-03-11 10:41:07 +01:00
Francois Gouget c3913adb9b msvcrt: Remove WINAPI on static functions where not needed. 2013-03-06 15:10:57 +01:00
Piotr Caban d989e92c3e msvcrt: Added __pxcptinfoptrs tests. 2013-03-05 12:44:36 +01:00
Piotr Caban 14a81773c7 msvcrt: Added __pxcptinfoptrs implementation. 2013-03-05 12:44:30 +01:00
Piotr Caban 62e00e527f msvcrt: Don't set unhandled exception filter, XcptFilter is responsible for handling signals. 2013-03-05 12:44:02 +01:00
Piotr Caban 8e5bebe262 msvcrt: Rename msvcrt_alloc_fd_from to msvcrt_set_fd. 2013-03-05 12:43:36 +01:00
Piotr Caban cd7b71d3f4 msvcrt: Added stdin close/open tests. 2013-03-04 11:14:47 +01:00
Piotr Caban db92137f83 msvcrt: Reuse standard file descriptors after closing them. 2013-03-04 11:14:45 +01:00
Piotr Caban f565e4a315 msvcrt: Don't duplicate standard handles during initialization. 2013-03-04 11:14:41 +01:00
Piotr Caban d622ffcba0 msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv. 2013-03-01 18:03:31 +01:00
André Hentschel a5c86d35e3 msvcrt: Fix DISPATCHER_CONTEXT on ARM. 2013-02-28 21:00:36 +01:00
André Hentschel 43bdfce436 msvcrt/tests: Mark win8 behaviour as broken. 2013-02-28 21:00:31 +01:00
André Hentschel 874d077ca6 msvcrt: Add a new file for the ARM exception handling. 2013-02-27 19:23:45 +01:00
Nikolay Sivov eab914b968 msvcrt: Move demangler flags to a header and use them. 2013-02-25 10:40:36 +01:00
Piotr Caban 61f82d6d02 msvcrt: Mark gmtime32 tests with negative argument as broken on win8. 2013-02-20 16:28:30 +01:00
Andrew Talbot d8efcc9cb3 msvcrt: Avoid signed-unsigned integer comparisons. 2013-02-20 10:33:38 +01:00
Piotr Caban a8df9b14ad msvcrt: Use temporary buffers to speed up operations on stdout and stderr. 2013-01-30 13:05:29 +01:00
Piotr Caban 2ee5323a91 msvcrt: Don't make stdout and stderr bufferred when writing to console. 2013-01-30 13:05:29 +01:00
Francois Gouget a5ff4b8088 Assorted spelling fixes. 2013-01-29 12:13:04 +01:00
Piotr Caban 6382bc5219 msvcrt: Don't call invalid parameter handler in str{n,i}cmp functions. 2013-01-28 14:06:09 +01:00
Piotr Caban 9778248441 msvcrt: Fixed _Gettnames test on Win8. 2013-01-25 17:30:57 +01:00
Piotr Caban 8304bf4dfc msvcrt: Fixed setlocale tests on Win8. 2013-01-25 17:30:51 +01:00
Piotr Caban 7654d95462 msvcrt: Added N flag support to fopen. 2013-01-25 17:30:18 +01:00
Piotr Caban ab4b4d34c3 msvcrt: Ignore S and R flags in fopen. 2013-01-25 17:30:10 +01:00
Michael Stefaniuc a8b63acc03 msvcrt/tests: Use assignment instead of memcpy to copy structs. 2013-01-24 15:38:50 +01:00
Marcus Meissner a8b076d67f msvcrt: read_utf8: free readbuf on return (Coverity). 2013-01-21 12:51:15 +01:00
Piotr Caban 0d0f705048 msvcrt: Added basic _popen tests. 2013-01-18 13:28:59 +01:00
Piotr Caban a968a1ad6d msvcrt: Return child exit code in _pclose function.
Based on a patch by Borut Ražem.
2013-01-18 13:28:59 +01:00
Piotr Caban 7f4e1c65b1 msvcrt: Added support for commit flag in fopen. 2013-01-18 13:28:58 +01:00
Alexandre Julliard afee133b65 msvcrt: Fix incorrect use of the system wctomb function. 2013-01-14 13:47:00 +01:00
Piotr Caban 5515170d13 msvcrt: Be less strict while parsing file open mode in fopen function. 2013-01-14 11:04:19 +01:00
Piotr Caban 8401224731 msvcrt: Added fwprintf tests. 2013-01-11 12:04:43 +01:00
Piotr Caban c1792e1a8a msvcrt: Fixed ftell behaviour when file is opened for writing in text mode. 2013-01-11 12:04:36 +01:00
Piotr Caban 1fae72e759 msvcrt: Don't add '\r' character in fputws function.
write is responsible for adding '\r' characters, don't do it twice.
2013-01-11 12:04:29 +01:00
Piotr Caban a8c2ae1751 msvcrt: Use fputwc to output characters to file in fprintf functions. 2013-01-11 12:04:18 +01:00
Piotr Caban 77f3ce0b10 msvcrt: Added fputwc tests. 2013-01-11 12:04:12 +01:00
Piotr Caban ebfa653618 msvcrt: Make fputwc encoding aware. 2013-01-11 12:04:08 +01:00
Piotr Caban 777f349829 msvcrt: Added read tests on unicode files. 2013-01-10 12:29:33 +01:00
Piotr Caban d88aa37e59 msvcrt: Added UTF8 support to read function. 2013-01-10 12:29:13 +01:00
Piotr Caban ac3cdc7ffa msvcrt: Added UTF16 support to read function. 2013-01-10 12:29:07 +01:00
Piotr Caban 62bd615452 msvcrt: Added more read tests. 2013-01-10 12:29:02 +01:00
Piotr Caban f93259b305 msvcrt: Added _setmode tests. 2013-01-10 12:28:57 +01:00
Piotr Caban a0ef884542 msvcrt: Added unicode modes support _setmode function. 2013-01-10 12:28:53 +01:00
Piotr Caban eeb7d0a649 msvcrt: Improved ftell implementation. 2013-01-10 12:28:47 +01:00
Piotr Caban 4ffa9364eb msvcrt: Simplify fseek implementation. 2013-01-10 12:28:39 +01:00