Commit Graph

297 Commits

Author SHA1 Message Date
Grazvydas Ignotas 40067dd011 msvcrt: Change internal buffer size to 4k. 2014-06-17 12:35:48 +02:00
Grazvydas Ignotas 9614283996 msvcrt: Free old buffer properly in setvbuf. 2014-06-17 12:35:22 +02:00
Piotr Caban b0424313fd msvcrt: Handle negative file->_cnt value in fwrite. 2014-06-11 19:15:26 +02:00
Piotr Caban 42e800fe79 msvcrt: Fix ioinfo structure size. 2014-05-07 10:27:46 +02:00
Victor Martinez Calvo f6bb1a51a9 msvcrt: Avoid null dereference in TRACE in MSVCRT__wfreopen. 2014-04-30 18:33:00 +02:00
Alexandre Julliard 0c496f0280 msvcrt: Update comments for non-exported functions. 2014-04-21 14:32:40 +02:00
Piotr Caban beeea28a53 msvcr100: Move functions implementation to msvcrt. 2014-04-16 18:00:15 +02:00
Piotr Caban e70bf5f8c6 msvcrt: Fix compilation errors on Mingw. 2014-04-16 18:00:01 +02:00
Piotr Caban 6ad441cd6b msvcrt: Return error on invalid handle in _open_osfhandle. 2014-02-12 19:15:28 +01:00
Piotr Caban 5e3cadf834 msvcrt: Don't close handles returned by GetStdHandle function. 2014-01-28 10:53:21 +01:00
Piotr Caban 6f4a181709 msvcrt: Flush standard streams in flushall function. 2014-01-28 10:53:09 +01:00
Piotr Caban e16059113c msvcrt: Support _IOSTRG flag in _filbuf function. 2014-01-28 10:52:35 +01:00
Piotr Caban ed2d53a36a msvcrt: Don't write to buffer in ungetc if _IOSTRG flag is specified. 2013-12-30 19:44:08 +01:00
Piotr Caban 6122c2ba37 msvcrt: Convert data to multibyte encoding in ungetwc if needed. 2013-12-30 19:44:02 +01:00
Andrey Zhezherun 3bb2c11757 msvcrt: Implemented _chsize_s. 2013-11-05 20:38:20 +01:00
Piotr Caban 647817b018 msvcrt: Don't call invalid parameter handler on invalid mode flag. 2013-11-01 14:17:31 +01:00
Piotr Caban afec0b00bd msvcrt: Make the first call to fwrite buffered. 2013-10-21 21:06:15 +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
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
Piotr Caban 598ff4dd5a msvcrt: Reuse FILE object in wfreopen function. 2013-06-04 14:59:20 +02:00
Piotr Caban f99742a539 msvcrt: Move _fstat32 and _fstat64i32 functions to msvcrt. 2013-04-30 18:44:46 +02:00
Piotr Caban 280f8237b5 msvcrt: Move fread_s function to msvcrt. 2013-03-28 18:54:42 +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
Piotr Caban 8e5bebe262 msvcrt: Rename msvcrt_alloc_fd_from to msvcrt_set_fd. 2013-03-05 12:43:36 +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
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 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
Marcus Meissner a8b076d67f msvcrt: read_utf8: free readbuf on return (Coverity). 2013-01-21 12:51:15 +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 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 ebfa653618 msvcrt: Make fputwc encoding aware. 2013-01-11 12:04:08 +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 a0ef884542 msvcrt: Added unicode modes support _setmode function. 2013-01-10 12:28:53 +01:00