[ros-dev] crt wine sync

Samuel serapion samdwise51 at gmail.com
Sun May 2 12:03:56 CEST 2010


Hey guys,

Recently<http://source.winehq.org/git/wine.git/?a=history;f=dlls/msvcrt;hb=1ac16331611827bdd7c72779b9c9747e85e9c346>wine
has made some improvements to its msvcrt and I've taken the time to
port them to reactos. changes include:

   - implement per thread crt locales and many locale functions.
   - implement/improve support for vc6, vc7, vc8 exceptions.
   - implement/improve language support functions.
   - implement/improve many library functions.
   - implement many secure functions.
   - use spec file for msvcrt.dll
   - fix amd64 linking issues.
   - add msvcirt.dll, msvcr7.dll ,msvc71.dll, msvc80.dll, msvcr90.dll from
   wine (no longer need to install versions of ms runtime for visual c language
   apps)


changes are divided into different parts but building has not been tested
with individual parts.
part 1, 2 and 3 include changes to centralize the definition of several key
macros (see reactos/wine/exception.h, reactos/wine/config.h,
crt/include/internal/wine/cppexcept.h)

also on part 2 in scanf.c wcs.c and possibly other files i didn't know what
libcntpr expected so i was quite severe hacking out functions and only
letting in the minimum necesary to build ntoskrnl and everything else that
uses it.

part3 includes changes to baseaddress.rbuild that should be revised, i
didn't know how to calculate a good base address for the msvcr dlls so i
just used the same one and let ntdll reallocate if necesary...

part5 applies to rostests.

and before you say it... msvcrt_winetest file now crashes with this trace:
dll/win32/kernel32/file/create.c:136 (CreateFileW at 28) <-- arch didn't check
if lpFileName was valid
lib/sdk/crt/stdio/file.c:1485 (_wsopen)
modules/rostests/winetests/msvcrt/file.c:1179 (test_fopen_fclose_fcloseall)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part1.patch
Type: application/octet-stream
Size: 7504 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part2.patch
Type: application/octet-stream
Size: 223569 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part3.patch
Type: application/octet-stream
Size: 2253 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part4.patch
Type: application/octet-stream
Size: 304379 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part5.patch
Type: application/octet-stream
Size: 15271 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part6.patch
Type: application/octet-stream
Size: 1425 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20100502/cf84093f/attachment-0011.obj>


More information about the Ros-dev mailing list