Commit Graph

80 Commits

Author SHA1 Message Date
Piotr Caban f67f1ce79e msvcrt: Remove non-needed defines from msvcrt.h.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:41:16 +01:00
Piotr Caban 6ad42ee7f4 msvcrt: Remove MSVCRT_ prefix from wcs.c functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 21:00:22 +01:00
Piotr Caban 1514c54ce5 msvcrt: Remove MSVCRT_ prefix from string.c functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 15:38:24 +01:00
Piotr Caban 495f24ebb8 msvcrt: Remove MSVCRT_ prefix from data.c functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-01 14:03:07 +01:00
Piotr Caban d784dbb899 msvcrt: Remove MSVCRT_ prefix from heap.c functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-01 14:00:31 +01:00
Piotr Caban 1317b935ef msvcrt: Use errno values from public header.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-30 21:36:12 +01:00
Piotr Caban c302397c73 msvcrt: Remove MSVCRT_wchar_t type.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:39 +01:00
Alexandre Julliard 191bdeaff3 msvcrt: Build with msvcrt headers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-19 21:23:22 +01:00
Piotr Caban 536be09b84 msvcrt: Don't use wine/unicode.h header.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-21 15:17:51 +02:00
Alexandre Julliard e9d2b31c87 msvcrt: Rebuild the argv array instead of getting it from libwine.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-08 21:01:18 +02:00
Jacek Caban 72633d509d msvcrt: Silence wide environment initialization debug messages.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-02 20:29:26 +01:00
Alexandre Julliard 94a3d4adad msvcrt: Create the Ansi argv from the Unicode one.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 15:30:03 +01:00
Alexandre Julliard 1f7489d493 crtdll: Share source with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-29 21:13:43 +01:00
Piotr Caban 35e570eb09 msvcrt: Change __getmainargs signature.
It was changed in newer versions of msvcrt/msvcrXX dlls.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-15 15:07:03 +01:00
Alexandre Julliard dd016c031a msvcrt: Add some more MSVCRT prefixes to avoid conflicts with recent Mingw.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-14 18:24:46 +01:00
Alexandre Julliard e4d34098a6 msvcrt: Fix __p__fmode() prototype.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-14 18:24:46 +01:00
Jason Edmeades 0dcfc97fcb msvcrt: Do not put cmd.exe special environment variables into the environ.
All the special environment variables from the command shell which
track directory use are stripped out from the C runtime
environ/wenviron.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45320
Signed-off-by: Jason Edmeades <us@edmeades.me.uk>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-25 12:58:19 +02:00
Alex Henrie 00fe56a736 msvcrt: Don't include MSVC 8.0+ environment 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-03 19:14:06 +01:00
Piotr Caban 45c4fc7c6c msvcrt: Remove unused variables.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 11:19:01 +01:00
Gijs Vermeulen 43034dee45 msvcrt: Add _get_[winmajor|winminor|osver].
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-27 16:46:08 +01:00
Nikolay Sivov 1411d800ee ucrtbase: Implement _get_narrow_winmain_command_line/_get_wide_winmain_command_line.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:10 +09:00
Daniel Lehman 2841a05025 ucrtbase: Return initial env snapshot in _get_initial_narrow_environment.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-06 20:07:32 +09:00
Daniel Lehman 46000add48 ucrtbase: Add _get_initial_wide_environment.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-06 20:07:27 +09:00
Daniel Lehman 2ea84373cf ucrtbase: Add some wide functions called on startup.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 12:51:09 +09:00
Martin Storsjo a4d5bf99d4 ucrtbase: Add stub functions for narrow environment. 2015-08-28 13:15:06 +09:00
Piotr Caban e70bf5f8c6 msvcrt: Fix compilation errors on Mingw. 2014-04-16 18:00:01 +02:00
Piotr Caban d622ffcba0 msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv. 2013-03-01 18:03:31 +01:00
Piotr Caban 6e485f13c0 msvcrt: NULL terminate program arguments list in __getmainargs. 2012-12-26 18:23:05 +01:00
Piotr Caban dfca87db71 msvcrt: Added _set_fmode and _get_fmode implementation. 2012-12-21 14:14:53 +01:00
Piotr Caban 678abf4064 msvcrt: Support expand_wildcards parameter in __wgetmainargs function. 2012-12-14 11:54:20 +01:00
Piotr Caban 7c39023f60 msvcrt: Fixed wildcard expanding when path is specified in __getmainargs. 2012-12-14 11:54:14 +01:00
Piotr Caban c34769cfa1 msvcrt: Support expand_wildcards parameter in __getmainargs function. 2012-12-13 18:24:17 +01:00
Alexandre Julliard 06989a0483 msvcrt: Make sure that errno is always set when calling the invalid parameter handler. 2012-07-26 11:05:32 +02:00
Daniel Verkamp 1357589eca msvcrt: Add _get_pgmptr and _get_wpgmptr. 2011-07-04 13:39:58 +02:00
Piotr Caban f9de4eef75 msvcrt: Fix mingw compilation issues. 2011-06-03 17:44:06 +02:00
Piotr Caban 2770155532 msvcrt: Move _initterm_e implementation (from msvcr90). 2010-11-18 12:37:04 +01:00
Eric Pouech 4b94890741 msvcrt: Moved _get_osplatform to the new macros for parameters validation. 2010-11-01 12:31:58 +01:00
Andrew Nguyen 285e6d249f msvcrt: Initialize environ on DLL load. 2010-09-30 17:51:16 +02:00
Piotr Caban 3f4eded5d4 msvcrt: Added _get_osplatform implementation. 2010-05-05 15:26:45 +02:00
Alexandre Julliard 7c15ae127c msvcrt: Add an MSVCRT prefix to _wenviron. 2009-10-05 14:55:09 +02:00
Michael Stefaniuc 109f83614f msvcrt: Avoid using size_t when not neededed. 2009-05-27 15:40:18 +02:00
Rein Klazes ed20ac877c msvcrt: Do not set the windows version to 0.5. 2009-04-20 17:29:26 +02:00
Maarten Lankhorst 83045e5cc8 msvcrt: Add CDECL to all cdecl functions. 2008-11-25 12:33:39 +01:00
Alexandre Julliard 9c29dbd987 Avoid exporting common symbols since that's broken on Mac OS X. 2008-07-21 14:47:55 +02:00
Jon Griffiths a4037eb463 msvcrt: Implement ___setlc_active_func/___unguarded_readlc_active_add_func. 2008-07-08 12:27:54 +02:00
Hans Leidekker 3debf28215 msvcrt: Implement _wsystem and forward system to it. Respect COMSPEC environment variable. 2008-01-08 13:34:09 +01:00
Dmitry Timoshkov a88f03e22f msvcrt: Rename _environ to avoid a conflict on Solaris. 2008-01-08 12:54:40 +01:00
Alexandre Julliard 8f097d8c9d msvcrt: _initterm doesn't return anything. 2007-03-14 12:26:43 +01:00
Andrew Ziem 2132eb5490 msvcrt: Fix _initterm, with tests. 2006-06-21 13:40:33 +02:00
Alexandre Julliard 24beabfd4e msvcrt: Explicitly specify CDECL calling convention on exported functions. 2006-06-13 11:40:23 +02:00