A free Windows-compatible Operating System - mirrored from GitHub
Go to file
Bișoc George 8266f62ff6
[CRT][STDLIB] Wine-sync _mbtowc_l function code
The current _mbtowc_l code directly passes the string count size argument to cbMultiByte argument parameter to MultiByteToWideChar(). As the size of lpMultiByteStr expressed in bytes by cbMultiByte is dependent of the actual given string, the size of lpWideCharStr expressed in characters by cchWideChar is always 1.

The resulting parameters to MultiByteToWideChar() will lead to a failure as lpWideCharStr cannot accommodate the converted string if the size pointed by lpMultiByteStr is larger than the buffer wide string to receive the converted output, a Win32 error code of ERROR_INSUFFICIENT_BUFFER in other words. The fact that _mbtowc_l never fails without WINE Gecko package installed is because the codepage pointed by lc_codepage is CP_ACP and the converted output is directly given to the destination wide string parameter thus never calling MultiByteToWideChar(). Installing WINE Gecko merely unhides this problem.

As _mbtowc_l is imported from WINE and that they have updated their code (which at the same time this fixes the aforementioned problem), the following commit syncs the updated code from WINE.

CORE-16885
2020-04-28 22:41:57 +02:00
.github [REACTOS] Update some external URLs 2020-04-24 02:32:05 +03:00
.theia [GITPOD]Add gitpod config 2020-04-02 18:03:18 +02:00
base [LABEL] Update Polish translation (#2678) 2020-04-27 22:49:33 +03:00
boot [BOOTDATA] CORE-16976 Strip netkvm from optional files 2020-04-28 21:33:26 +02:00
dll [SHIMGVW] Correctly draw display border (#2687) 2020-04-28 20:56:18 +09:00
drivers [MEDIA][CMAKE] Create add_driver_inf cmake function 2020-04-26 20:28:04 +03:00
hal [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
media [MEDIA][CMAKE] Create add_driver_inf cmake function 2020-04-26 20:28:04 +03:00
modules [NTDLL_APITEST] Add a test for RtlGetUnloadEventTrace 2020-04-26 14:35:51 +02:00
ntoskrnl [NTOS:KE] KiTrap0DHandler(): Fix a copypasta 2020-04-26 17:32:40 +02:00
sdk [CRT][STDLIB] Wine-sync _mbtowc_l function code 2020-04-28 22:41:57 +02:00
subsystems [CSRSRV] Addendum to e3a70662: Fix build. 2020-04-15 15:59:08 +02:00
win32ss [WINSPOOL] EnumPrintersA: Refactor failure handling (#2304) 2020-04-27 22:10:22 +02:00
.clang-format
.editorconfig Remove the 'end_of_line' value. Addendum to 32db19f6 - PR #2528 2020-04-11 17:56:23 +02:00
.gitattributes
.gitignore [GITIGNORE] Remove "build" folder, which discards some commited files 2020-04-24 12:44:05 +03:00
.gitmessage
.gitpod.Dockerfile [GITPOD]Add gitpod config 2020-04-02 18:03:18 +02:00
.gitpod.yml [GITPOD]Add gitpod config 2020-04-02 18:03:18 +02:00
.travis.yml [REACTOS] Update some external URLs 2020-04-24 02:32:05 +03:00
apistatus.lst
appveyor.yml
CMakeLists.txt [CMAKE] Fix build with CMake 3.17.1-ReactOS (RosBE 2.2) 2020-04-27 03:40:48 +03:00
CODE_OF_CONDUCT.md
CODEOWNERS [CODEOWNERS ] Clarify the use of teams 2020-04-26 20:39:09 +02:00
configure.cmd [CMAKE][CONFIGURE] Enable runtime checks on MSVC by default. 2020-04-11 02:48:12 +03:00
configure.sh
CONTRIBUTING.md [REACTOS] Remove some ending spaces 2020-04-24 02:32:05 +03:00
COPYING
COPYING.ARM
COPYING.LIB
COPYING3
COPYING3.LIB
CREDITS [REACTOS] Remove some ending spaces 2020-04-24 02:32:05 +03:00
Doxyfile
INSTALL [REACTOS] Remove some ending spaces 2020-04-24 02:32:05 +03:00
overrides-gcc.cmake
overrides-msvc.cmake
PreLoad.cmake
PULL_REQUEST_MANAGEMENT.md
README.md [REACTOS] Remove some ending spaces 2020-04-24 02:32:05 +03:00
toolchain-clang.cmake
toolchain-gcc.cmake
toolchain-msvc.cmake

ReactOS


ReactOS 0.4.13 Release Download ReactOS SourceForge Download License Donate Follow on Twitter

WebsiteOfficial chatWikiForumJIRA Bug TrackerReactOS Git mirrorTestman

What is ReactOS?

ReactOS™ is an Open Source effort to develop a quality operating system that is compatible with applications and drivers written for the Microsoft® Windows™ NT family of operating systems (NT4, 2000, XP, 2003, Vista, Seven).

The ReactOS project, although currently focused on Windows Server 2003 compatibility, is always keeping an eye toward compatibility with Windows Vista and future Windows NT releases.

The code of ReactOS is licensed under GNU GPL 2.0.

ReactOS is currently an Alpha quality operating system. This means that ReactOS is under heavy development, things may not work well and it can corrupt the data present on your hard disk. It is recommended to test ReactOS on a virtual machine or on a computer with no sensitive or critical data!

Building

appveyor.badge travis.badge rosbewin.badge rosbeunix.badge coverity.badge

To build the system it is strongly advised to use the ReactOS Build Environment (RosBE). Up-to-date versions for Windows and for Unix/GNU-Linux are available from our download page at: "Build Environment".

Alternatively one can use Microsoft Visual C++ (MSVC) version 2010+. Building with MSVC is covered here: "Visual Studio or Microsoft Visual C++".

Binaries

To build ReactOS you must run the configure script in the directory you want to have your build files. Choose configure.cmd or configure.sh depending on your system. Then run ninja <modulename> to build a module you want or just ninja to build all modules.

Bootable images

To build a bootable CD image run ninja bootcd from the build directory. This will create a CD image with a filename bootcd.iso.

See "Building ReactOS" for more details.

You can always download fresh binary builds of bootable images from the "Daily builds" page.

Installing

By default, ReactOS currently can only be installed on a machine that has a FAT16 or FAT32 partition as the active (bootable) partition. The partition on which ReactOS is to be installed (which may or may not be the bootable partition) must also be formatted as FAT16 or FAT32. ReactOS Setup can format the partitions if needed.

Starting 0.4.10, ReactOS can be installed using the BtrFS file system. But consider this as an experimental feature and thus regressions not triggered on FAT setup may be observed.

To install ReactOS from the bootable CD distribution, extract the archive contents. Then burn the CD image, boot from it, and follow the instructions.

See "Installing ReactOS" Wiki page or INSTALL for more details.

Testing

If you discover a bug in ReactOS search on JIRA first - it might be reported already. If not report the bug providing logs and as much information as possible.

See "File Bugs" for a guide.

NOTE: The bug tracker is not for discussions. Please use our official chat or our forum.

Contributing prwelcome.badge

We are always looking for developers! Check how to contribute if you are willing to participate.

Try out cloud-based ReactOS development using Gitpod and Docker:

Open in Gitpod

You can also support ReactOS by donating! We rely on our backers to maintain our servers and accelerate development by hiring full-time devs.

More information

ReactOS is a Free and Open Source operating system based on the Windows architecture, providing support for existing applications and drivers, and an alternative to the current dominant consumer operating system.

It is not another wrapper built on Linux, like WINE. It does not attempt or plan to compete with WINE; in fact, the user-mode part of ReactOS is almost entirely WINE-based and our two teams have cooperated closely in the past.

ReactOS is also not "yet another OS". It does not attempt to be a third player like any other alternative OS out there. People are not meant to uninstall Linux and use ReactOS instead; ReactOS is a replacement for Windows users who want a Windows replacement that behaves just like Windows.

More information is available at: reactos.org.

Also see the media/doc subdirectory for some sparse notes.

Who is responsible

Active devs are listed as members of GitHub organization. See also the CREDITS file for others.

Code mirrors

The main development is done on GitHub. We have an alternative mirror in case GitHub is down.

There is also an obsolete SVN archive repository that is kept for historical purposes.