Commit Graph
7564 Commits
Author SHA1 Message Date
Gregor Schneider 31515fdd20 [RTL] Revert s(w)printf changes of r44970
See issue #5125 for more details.

svn path=/trunk/; revision=46855
2010-04-12 20:45:38 +00:00
Aleksey Bragin 71d61c9c59 [NTOSKRNL/CONFIG]
- Flusher lock fixes: wrong kind of lock,total mess (and the wrong kind of lock). Properly fixed throughout cmapi.c, but still missing in many other places.
- Add support for detecting loading of an already loaded hive.
- Start adding calls to CmpReportNotify to support registry callbacks.
- Do work needed to flush notifications for a deleted node (but CmpFlushNotify not yet implemented).
- Add support for adding each newly loaded hive to the HiveList key in the registry (but CmpAddHiveToFileList not yet implemented).
- Add some ViewLock acquire/releases where needed.
- Load the key in a faster way (Ob vs Zw)
- Add checks everywhere for HvMarkCellDirty success. In future (when log/backup file is enabled), it can return FALSE (e.g. when we are out of space).
- Change logic in CmpDoFlushAll to only flush a hive if it won't shrink (in the future, flushing may lead to hive shrinkage for efficiency).
- Add SEH2 protection to all CmApis that may deal with user-mode data.
- Add HvTrackCellRef/HvReleaseCellRef for tracking cell references in scenarios where we might need many GetCell/ReleaseCell calls. For now stubbed to only work with up to 4 static references.
- Properly unlock/free in some failure paths in some of the CM APIs.
- Add some missing HvReleaseCell in paths where it was missing.
- Try to fix hack in enumerate key.
- Fix wrong usage of KeQuerySystemTime. It was called twice to save it in 2 different places. Instead, there should be only one call, and then duplicate the value across.
- Fix logic in CmpSetValueExistingData/Key.

Tested with winetests and .NET framework 1.1 installation which fully completes.

svn path=/trunk/; revision=46702
2010-04-03 20:22:32 +00:00
Johannes Anderwald 90a11f48e9 [MMIXER]
- Copy device name when initializing WAVEINCAPS / WAVEOUTCAPS
- Fixes display wave device name in cpl / waveInGetDevCaps / waveOutGetDevCaps

svn path=/trunk/; revision=46680
2010-04-02 13:49:10 +00:00
Timo Kreuzer d0747d85c1 fix a typo
svn path=/trunk/; revision=46607
2010-03-30 21:35:52 +00:00
Timo Kreuzer 26109e48de [MINGW]
- add back getopt.c (needed by rosapps)
- add ofmt_stub.c and cx_pure_virtual.c


svn path=/trunk/; revision=46606
2010-03-30 21:28:38 +00:00
Timo Kreuzer ffd48df713 [WINE]
define interlocked_xchg_add to InterlockedExchangeAdd

svn path=/trunk/; revision=46604
2010-03-30 19:59:29 +00:00
Timo Kreuzer 794e740131 Merge from amd64 branch:
46478
[CRT]
- define _CRTBLD
- rename float_t/double_t/long_double_t to float_s/double_s/long_double_s to avoid name conflicts

46511
[FREELDR]
snprintf -> _snprintf

46534
[CRT]
- Set crt="static" in freeldr, rtl, bmfs, ftfd, rtl, mini_hal
- define "CRTDLL" in ntdll, crtdll, msvcrt, msvcrt20, msvcrt40

46535
[CRT HEADERS]
- add _mingw_mac.h from ming-w64 and include it into _mingw.h
- Update _CRTIMP definition
- Fix definition of _wctype
- onexit is not _CRTIMP

46537
[MINGW]
Update mingw library to mingw-w64 trunk (mingw-w64-src_20100325)

46538
Apply MSVC compilation fix.

46539
[MINGW]
Apply MSVC compilation fixes

svn path=/trunk/; revision=46597
2010-03-30 13:30:36 +00:00
Timo Kreuzer 8627f5ae27 Merge from amd64-branch:
44467, 44468, 44470, 44471, 46524
[OLDNAMES]
Update moldname-msvcrt.def
Add a proper oldnames lib, instead of implicitly including it with mingw.

46526
[FTP/DHCP]
- remove the oldnames hack, as we now have a proper oldnames lib (included in mingw_common)
- protect struct timezone from redefinition

svn path=/trunk/; revision=46592
2010-03-30 11:09:21 +00:00
Cameron Gutman c0add4aee8 [RTL]
- Fall back to the default user key if RtlFormatCurrentUserKeyPath fails (perhaps we are in a system process)

svn path=/trunk/; revision=46578
2010-03-30 03:26:35 +00:00
Timo Kreuzer 8236cf6a81 [MINGW]
Update mingw library to mingw-w64 trunk (mingw-w64-src_20100325)

svn path=/branches/ros-amd64-bringup/; revision=46537
2010-03-28 23:27:01 +00:00
Timo Kreuzer b8a5d2b45c [CRT]
- Implement x86 ceilf, floorf, fmodf (taken from mingw-w64)
- Implement cosf, sinf, sqrtf (simply wrappers)
- Fix missing definitions

svn path=/branches/ros-amd64-bringup/; revision=46536
2010-03-28 23:18:31 +00:00
Timo Kreuzer 173013b4d4 [CRT]
- Set crt="static" in freeldr, rtl, bmfs, ftfd, rtl, mini_hal
- define "CRTDLL" in ntdll, crtdll, msvcrt, msvcrt20, msvcrt40

svn path=/branches/ros-amd64-bringup/; revision=46534
2010-03-28 23:06:36 +00:00
Timo Kreuzer 0e76e9857c [LIBOLDNAMES]
- add snprintf

svn path=/branches/ros-amd64-bringup/; revision=46524
2010-03-28 20:11:55 +00:00
Timo Kreuzer 9b445221d8 Fix 32bit RtlInitializeSListHead
svn path=/branches/ros-amd64-bringup/; revision=46522
2010-03-28 19:46:29 +00:00
Timo Kreuzer 63cf51be08 [FREETYPE]
- Don't include setjmp/longjmp, we have our own

svn path=/branches/ros-amd64-bringup/; revision=46512
2010-03-28 05:20:27 +00:00
Timo Kreuzer a26b8712a8 Merge from amd64-branch:
46483 (tkreuzer)
[CRT]
- add _wctype table, it's not identical to _ctype as assumed before
- point _pwctype to _wctype instead of _ctype
- implement __pctype_func and __pwctype_func

46502 (tkreuzer)
[MSVCRT]
- enable exports for __pctype_func, __pwctype_func, _wctype

svn path=/trunk/; revision=46504
2010-03-27 23:01:05 +00:00
Timo Kreuzer d134d80d0b [CRT]
- add _wctype table, it's not identical to _ctype as assumed before
- point _pwctype to _wctype instead of _ctype
- implement __pctype_func and __pwctype_func

svn path=/branches/ros-amd64-bringup/; revision=46483
2010-03-27 01:14:24 +00:00
Timo Kreuzer c57a8df416 [CRT]
- define _CRTBLD
- rename float_t/double_t/long_double_t to float_s/double_s/long_double_s to avoid name conflicts

svn path=/branches/ros-amd64-bringup/; revision=46478
2010-03-26 23:41:53 +00:00
Timo Kreuzer f8b4d53d3c revert r39331
svn path=/branches/ros-amd64-bringup/; revision=46477
2010-03-26 23:39:12 +00:00
Timo Kreuzer cb29f7174b Looks like ld doesn't like specifying "-fno-leading-underscore" for anything else then shared modules (aka dlls). Therefore specify "-shared" for apps, too (Should hopefully not make a difference), making them link again.
Since we have switched to non-prefixed symbols, we need to deal with 2 kinds of symbols that the compiler doesn't handle for us. 1.) __image_base__ is still defined the same way by ld, but since gcc doesn't give us an underscore anymore, we need to specify it on our own. 2.) __MINGW_IMP_SYMBOL, which is a hacky way of declaring a symbol dllimport, by prefixing it with __imp_ also needs special treatment. Fix these issues by adding appropriate macros to _mingw.h and removing the broken and duplicate definitions from multiple .c files.

svn path=/branches/ros-amd64-bringup/; revision=46460
2010-03-26 08:58:45 +00:00
Timo Kreuzer b6fae9f55b [RTL]
Fix RtlInitializeSListHead and RtlQueryDepthSList


svn path=/branches/ros-amd64-bringup/; revision=46405
2010-03-24 21:56:24 +00:00
Timo Kreuzer 9df4519b79 Merge trunk HEAD (r46369)
(part 6/6)

svn path=/branches/ros-amd64-bringup/; revision=46380
2010-03-24 00:03:54 +00:00
Timo Kreuzer b751e1e10b [CRT]
Import x87 asm version of pow() from glibc. Replaces our broken implementation, fixing a bunch of winetests (oleaut32 vartest)

svn path=/trunk/; revision=46283
2010-03-20 00:49:30 +00:00
Kamil Hornicek b6e52b15e3 [WIN32K]
When adding new glyph cache entry convert the glyph bitmap with proper alignment to comply with the new code in EngCreateBitmap and remove the corresponding hack from SURFMEM_bCreateDib.

[FREETYPE]
When doing 1BPP -> 8BPP conversion set all 8 bits not only the LSB. (Freetype devs were notified of this issue)
See issue #5244 for more details.

svn path=/trunk/; revision=46246
2010-03-17 12:11:55 +00:00
Timo Kreuzer cbdf28bb6a [HEADERS]
Reintegrate header-work branch. Thanks to hours of boring work on the ddk headers (Most of it done by Amine Khaldi), we have now a decent set, which is still incomplete but already relatively close to latest WDK. A clean rebuild is recommended.

svn path=/trunk/; revision=46155
2010-03-12 23:16:29 +00:00
Hervé Poussineau 37d9cf31a4 Fix include directories
svn path=/trunk/; revision=46015
2010-03-08 21:40:29 +00:00
Sir Richard c14fc3dc56 [CMLIB]: Just use UNIMPLEMENTED.
svn path=/trunk/; revision=46003
2010-03-08 20:46:53 +00:00
Christoph von Wittich c666e0e3e7 [MSCTF]
sync msctf to wine 1.1.40

svn path=/trunk/; revision=45982
2010-03-07 09:48:42 +00:00
Christoph von Wittich 9f04416452 sync RtlCreateActivationContext with wine 1.1.40
svn path=/trunk/; revision=45956
2010-03-06 16:19:07 +00:00
Christoph von Wittich 2097d927f1 [CRT]
sync fseek with wine 1.1.40 (all msvcrt file tests pass now)

svn path=/trunk/; revision=45952
2010-03-06 15:51:12 +00:00
Christoph von Wittich dd3fc3f8e7 [CRT]
sync read_i with wine 1.1.40

svn path=/trunk/; revision=45948
2010-03-06 14:53:55 +00:00
Christoph von Wittich 7632ce84a0 [CRT]
add TrailBytes-info for codepage 1361
<david dot hedberg at gmail dot com>

svn path=/trunk/; revision=45946
2010-03-06 14:40:19 +00:00
Christoph von Wittich 8592512f2f [RTL]
sync find_query_actctx with wine 1.1.40

svn path=/trunk/; revision=45945
2010-03-06 14:29:56 +00:00
Aleksey Bragin 69f20a953b [RTL]
- Fix Samuel's mistake of assuming that xmlstrs are zero-terminated by adding a xmlstr2unicode function, which returns a UNICODE_STRING representation of xmlstr suitable for printing. No debug log garbage now (disadvantage: more code changes compared to the original code).

svn path=/trunk/; revision=45845
2010-03-04 22:05:34 +00:00
Johannes Anderwald 86a010102c [MMIXER]
- Silence warning for Christoph

svn path=/trunk/; revision=45740
2010-03-01 12:08:36 +00:00
Sylvain Petreolle 141b8fafca [RTL]
Use %S for unicode traces.

svn path=/trunk/; revision=45729
2010-02-28 13:18:23 +00:00
Michael Martin f22ab97f8e [lib/rtl]
- Replace commented out try block with SEH2. Patch by Samuel Serapion.

svn path=/trunk/; revision=45717
2010-02-28 00:53:59 +00:00
Timo Kreuzer 9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
Colin Finck aaaa6b759a We don't need "csq.h" twice in our tree.
This ancient version didn't even receive the GCC 4.1 compatibility update from years ago, so it's safe to remove it.

svn path=/trunk/; revision=45686
2010-02-26 15:22:39 +00:00
Ged Murphy c5b25b8e9b - Move from using include guards to pragma once.
- Whilst this is non-standard and potentially makes the code less portable, it's supported by both gcc and msvc and should bringg increased compilation speed due to its optimized behaviour (doesn't need to invoke the preprocessor)
- Patch by Amine Khaldi [[email protected]]

svn path=/trunk/; revision=45685
2010-02-26 11:43:19 +00:00
Daniel Reimer 90ce7d8b37 XML Compliance Patch for the RBUILD Files. By Samuel Serapion
svn path=/trunk/; revision=45631
2010-02-20 12:41:24 +00:00
Johannes Anderwald dd15553124 [MMIXER, WDMAUD_KERNEL]
- Implement retrieving device path

svn path=/trunk/; revision=45582
2010-02-12 06:18:31 +00:00
Johannes Anderwald a19cbab2fc [WDMAUD_KERNEL]
- Replace mixer / wave support code by mmixer library
[MMIXER]
- Compare device name from 2 character onwards as there are difference in paths in user mode / kernel mode
- Invoke create pin callback if the caller provides it
[WDMAUD.DRV]
- Apply changes from mmixer library

-- Tested in Vbox with Winamp / ReactOS mplay32

svn path=/trunk/; revision=45579
2010-02-11 21:04:57 +00:00
Cameron Gutman f11ee9cfaf - Merge r45531 and r45545 from aicom-network-branch
svn path=/trunk/; revision=45546
2010-02-10 00:55:58 +00:00
Colin Finck 75538f4c0a The big RosBE 1.5 compatibility patch. You will need RosBE 1.5 from this point!
- Set the minimum GCC version to 4.4.0 and minimum Binutils version to 20091016.
- Remove the -fno-unit-at-a-time hacks.
- Remove dgorbachev's temporary hacks for user-mode C++ applications.
- Merge ntoskrnl's "precomp.h" and "ntoskrnl.h" again, the PCH issues have been fixed.
- Use our "ofmt_stub.a" to be compatible with newer MinGW Runtime versions.
- Use LD's new -exclude-all-symbols option to not auto-export all symbols in case no DEF file or __declspec(dllexport) was specified.
  We used to patch our LD version to work around this problem.
- Use LD's --start-group and --end-group parameters to allow a more flexible linking order.
- Use GCC's -fno-set-stack-executable for amd64 and i386 targets to disable adding the __enable_execute_stack code.
- Change the makefile's name to "makefile-$(ARCH).auto" for all architectures.
- Remove some -Wno-error flags.

See issue #4810 for more details.

svn path=/trunk/; revision=45535
2010-02-09 18:14:58 +00:00
Timo Kreuzer 2e97a01a5d add setjmp/longjmp to libcntpr, just like in ms sdks
svn path=/trunk/; revision=45522
2010-02-09 02:34:42 +00:00
Timo Kreuzer eb35955f30 Merge trunk head (r45466)
svn path=/branches/ros-amd64-bringup/; revision=45467
2010-02-06 20:36:45 +00:00
Timo Kreuzer 077f4e3c79 Add x86emu to build
svn path=/branches/ros-amd64-bringup/; revision=45465
2010-02-06 19:14:12 +00:00
Timo Kreuzer b63bed2d38 [X86EMU]
Beginning of a real mode x86 emulator for BIOS calls.

svn path=/branches/ros-amd64-bringup/; revision=45464
2010-02-06 19:13:54 +00:00
Timo Kreuzer 6bfc56886a [RTL]
Prevent RtlLargeInteger functions to be "occupied" by inline functions.

svn path=/branches/ros-amd64-bringup/; revision=45463
2010-02-06 19:12:02 +00:00