Commit Graph
6638 Commits
Author SHA1 Message Date
Hervé Poussineau 4cf058de4c Use kernel facilities to change debug level at runtime
svn path=/trunk/; revision=31286
2007-12-16 21:00:44 +00:00
Aleksey Bragin f3e67d1114 - Use CmPrepareKey only in cmlib, since it's a cmlib hack.
svn path=/trunk/; revision=31253
2007-12-15 18:25:08 +00:00
Aleksey Bragin 541c17ddaa Filip Navara <xnavara at volny dot cz>
- Remove unused code from HvGetCellSize().
- Fix situation, when a new cell is allocated with a too small size, resulting in an empty free cell (a cell has to be able to store at least one HCELL_INDEX), then the free list code overrides the next cell after the empty one.
- Reenable commented out assert in HvpRemoveFree(), since now it works as expected.

svn path=/trunk/; revision=31221
2007-12-14 23:17:43 +00:00
Aleksey Bragin 61fab841f2 - Add debugging macros support to CmLib (to use, set the CmlibTraceLevel debugging mask in cminit.c).
- Add tracing to hivecell.c.

svn path=/trunk/; revision=31213
2007-12-14 13:02:39 +00:00
Magnus Olsen d684b6f677 update dxguid to match dxsdk 2004 dec
add two guids that does not belong to dxguid for they are need it for ddraw

svn path=/trunk/; revision=31187
2007-12-13 01:49:13 +00:00
Aleksey Bragin 697723f229 - Fix default buffer size for user-mode RtlQueryRegistryValues queries, this removes warnings on debug log about buffer being too small (it was!).
- Remove ARC tree dump since this code has now been proven to work.
- Sync PointerFree with WINE, removing the unhandled data type=warning.

svn path=/trunk/; revision=31172
2007-12-11 21:52:12 +00:00
Aleksey Bragin 6dea234022 - Save hive flags instead of ignoring them (but ignore no lazy flush for now).
- Get rid of CmiKeyObjectListHead and code that was adding/removing entries into it, it wasn't used for anything.
- Change the stupid subkey array (which caused pool fragmentation and slow-downs) with a linked-list version, since we never used the array for random indexing (the point of an array vs a linked list).
- Link key object children to parent key control blocks so that KCBs now own PKEY_OBJECTs (will help with parsing later).
- Get rid of CmiAddKeyToList since this is just an InsertTailList now.
- Remove ReactOS hacks in flush code.
- Do full parallel hive loading code in normal boot too, not just in cd-rom boot: CmpSetFileSize was causing the problem to happen so it's been disabled for now; this allowed removal of multiple ReactOS hacks.
- Use the "Allocate" flag during linking instead of hard-coding FALSE, since this also works now.
- Set HIVE_NOLAZYFLUSH to newly create hives since this is required for later.
- Remove CmiConnectedHiveList since it's not used for anything.

svn path=/trunk/; revision=31030
2007-12-05 22:30:33 +00:00
Aleksey Bragin 98a17200e4 - Finish correct definition of CM_KEY_NODE.
- Fix broken CmpTestRegistryLock functions, they could return FALSE even if the lock was held.
- Enable some extra assertions.
- Update KCB flags as well when updating keynode flags in CmpDoCreate.
- Update KCB Last write time as well when updating keynode lastwritetime in CmpDoCreate.
- Do CmpDoOpen with the registry lock held, and tell CmpCreateKeycontrolBlock to lock the KCB exclusively.
- Enable link-node create code to set the ChildHiveRefernece values. This is used to "escape" the current Hive when a KEY_HIVE_EXIT node is detected (an internal symlink) and required for new parsing semantics.
- Implement CmpHandleExitNode to test how "escaping" from an exit node into a link hive works (it does).
- Plug that function into the new parse routine for testing purposes.
- Enable CmpDoOpen path in the new parse routine, only used for link node creation for now.

svn path=/trunk/; revision=31009
2007-12-04 21:39:15 +00:00
Aleksey Bragin 5b82b54952 - Fix a typo.
svn path=/trunk/; revision=31005
2007-12-04 18:56:25 +00:00
Aleksey Bragin d7eb720f13 Do a full clean rebuild after this commit!
- Begin fixing CM_KEY_NODE.
- More proper use of registry lock in create operations.
- Use ObOpenObjectByName (as a test only, ignore the results) in CmpLinkHiveToMaster.
- Implement routines to acquire/release two KCB locks atomically.
- Implement KCB dereference without lock.
- Fix locking in CmpCreateKeyControlBlock so that it now properly locks KCBs when requested.
- Implement rudimentary new-style parse routine that only walks the registry path until it's time to create the link node (since this is the only scenario where it's called from). Prints out the status of the operation but doesn't actually do anything.

svn path=/trunk/; revision=31004
2007-12-04 18:44:51 +00:00
Hervé Poussineau 0dd126df47 Add a few more GUIDs to uuid library
svn path=/trunk/; revision=30854
2007-11-29 09:33:35 +00:00
Hervé Poussineau 407c506421 Support real deletion of directories from the recycle bin
svn path=/trunk/; revision=30835
2007-11-28 09:32:14 +00:00
Hervé Poussineau 5220fd6970 Better compatibility with MS Windows recycle bin
Add traces

svn path=/trunk/; revision=30811
2007-11-27 08:22:16 +00:00
Marc Piulachs 1a755132e9 rename scrnsavelib to scrnsave as it's the name for this library on MS's psdk
svn path=/trunk/; revision=30752
2007-11-25 20:05:51 +00:00
Aleksey Bragin 6a5dc65df6 - Use PISECURITY_DESCRIPTOR instead of an opaque PSECURITY_DESCRIPTOR.
svn path=/trunk/; revision=30746
2007-11-25 17:14:50 +00:00
Magnus Olsen fb7fa3afaf add directdraw3 guid to dxguid
svn path=/trunk/; revision=30737
2007-11-25 14:43:36 +00:00
Aleksey Bragin 0b0fb5b032 - Guard MSVC's intrinsics with #ifdefs. Proper solution is to move those functions to intrin.h once host tools including target headers problem is solved. libcntpr now builds with MSVC8.
svn path=/trunk/; revision=30728
2007-11-24 21:28:11 +00:00
Aleksey Bragin db2556cb04 - MS's crt headers define this as 'const'. Fixes an error with MSVC compilation.
svn path=/trunk/; revision=30723
2007-11-24 16:51:05 +00:00
Art Yerkes 06220aab9e tcpip:
Factor out common datagram receive code.
Actually implement datagram cancellation.

afd:
Reorganize IRP cancellation and simplify socket shutdown.
Fix datagram recv with no address differently (and better).

Overall: fix hang after ping.

svn path=/trunk/; revision=30693
2007-11-23 13:52:56 +00:00
Aleksey Bragin 787a5cdaa4 - Add a check for an incorrect virtual size. Currently ReactOS's floppy.sys has such an incorrect section.
svn path=/trunk/; revision=30691
2007-11-23 13:39:31 +00:00
Christoph von Wittich 17e098c5bf fix msvc build
svn path=/trunk/; revision=30673
2007-11-22 14:28:21 +00:00
Christoph von Wittich fd1d7e0437 don't return a value in a void function
svn path=/trunk/; revision=30666
2007-11-22 11:12:39 +00:00
Aleksey Bragin 7de35ea613 - Load symbols for NTOSKRNL and HAL as 1st and 2nd entries in LoadOrderList in LPB.
- Remove now unused symbol-loading function, silence an error message in rossym/frommem.c, since it's a normal situation now (if it's not in memory, then it's on disk and needs to be loaded).

svn path=/trunk/; revision=30590
2007-11-20 10:17:34 +00:00
Christoph von Wittich 17095a0c94 don't crash when Buffer is NULL
svn path=/trunk/; revision=30577
2007-11-19 12:14:54 +00:00
Marc Piulachs 57993ed6d3 add scrnsave to build
svn path=/trunk/; revision=30569
2007-11-19 00:44:52 +00:00
Marc Piulachs d155e9ddf8 Move scrnsave to a more correct location as it's a static library part of MS DDK
svn path=/trunk/; revision=30568
2007-11-19 00:35:39 +00:00
Hervé Poussineau 8e6023d4bd Try to be more consistent in unimplemented messages
svn path=/trunk/; revision=30443
2007-11-14 13:14:46 +00:00
Hervé Poussineau 7eb7ac5e3c Use Wine debug channel infrastructure. I modified it a bit to match our debug message format
To test it, set DEBUGCHANNEL environment variable to what you want to see, and run your program.
Syntax: set DEBUGCHANNEL = [[fixme|err|warn|trace]+|-{channel}|all]*

svn path=/trunk/; revision=30438
2007-11-14 12:18:37 +00:00
Hervé Poussineau c7a1e0107c No need for <library> tags static libraries (which are never linked)
svn path=/trunk/; revision=30380
2007-11-12 10:12:01 +00:00
Aleksey Bragin 5b21408b33 - Winesync cppexcept.c. This fixes try/catch C++ exception handling in various apps (like MFC based apps).
svn path=/trunk/; revision=30363
2007-11-11 20:40:21 +00:00
Aleksey Bragin 04be216fbb - Update MSVCRT_thread_data
- Winesync cpp.c.

svn path=/trunk/; revision=30361
2007-11-11 17:03:20 +00:00
Aleksey Bragin 2db7ea2321 - After bugfixing, more complete except_nt exception handling implementation could be used, so get rid of the old one and thus code duplication.
- Move cpp/cppexcept.c to /except directory, and add a specific note in README.WINE that those files are shared with Wine.
- I moved PowerPC stubs too, but it will most probably break anyway, due to more missing stubs, my apologize.
See issue #2371 for more details.

svn path=/trunk/; revision=30359
2007-11-11 15:47:21 +00:00
Art Yerkes 9c612e5515 Debug devtree.
Add generation of simple device tree in freeldr.

svn path=/trunk/; revision=30354
2007-11-11 11:14:52 +00:00
Aleksey Bragin 0ad062c8a2 - Fix two more typos, now exception handling doesn't lead to an infinite loop resulting in a stack overflow and thus unhandled exception being caught by ntoskrnl.
svn path=/trunk/; revision=30353
2007-11-11 10:03:12 +00:00
Art Yerkes fcfccd503e Simple way to encode a device tree for early boot operations.
svn path=/trunk/; revision=30351
2007-11-11 09:23:05 +00:00
Art Yerkes e5be8f87ce Doh. Fix bad vsid assignment.
svn path=/trunk/; revision=30349
2007-11-11 03:41:31 +00:00
Art Yerkes 0eb32850f0 - Don't touch real segments until after booting.
- Hang function isn't too useful.

svn path=/trunk/; revision=30348
2007-11-11 03:19:17 +00:00
Aleksey Bragin bd25193c35 - Fix a bug (wrong push ... pop order).
svn path=/trunk/; revision=30339
2007-11-10 20:36:11 +00:00
Aleksey Bragin ce4c1b6f78 - Fix a bug.
( jz -> js, a typo)

svn path=/trunk/; revision=30323
2007-11-10 13:02:04 +00:00
Aleksey Bragin 25c3bd5a53 - This one is not needed anymore (_LIBCNT_ is defined in libcntpr.rbuild, PCH is precomp.h).
svn path=/trunk/; revision=30292
2007-11-09 12:25:10 +00:00
Aleksey Bragin 1402877204 - Build crt and libcntpr from one source tree (using conditional code and/or different source files where code is not shared).
svn path=/trunk/; revision=30291
2007-11-09 12:20:16 +00:00
Aleksey Bragin d63772135f - Copy except and memccpy.c from libcntpr.
svn path=/trunk/; revision=30288
2007-11-09 11:22:29 +00:00
Aleksey Bragin 375959c206 - Sync some changes in strings from libcntpr.
- Move string implementation (in "header" files) into /string dir.
- Copy over libcntpr-specific implementations into _nt.c files (for now, later they could do with a define).
- libcntpr's is now almost fully syncronized and could be merged into the tree except for "except" directory.

svn path=/trunk/; revision=30283
2007-11-08 21:06:20 +00:00
Aleksey Bragin 75b952dde1 - Move ctype into strings.
- Separate msvcrt-specific exception handling routine into prolog.s file.
- Move bsearch to the search directory.

svn path=/trunk/; revision=30267
2007-11-08 12:15:39 +00:00
Aleksey Bragin 6b0e42017a - Rearrange source files location, so that string/math/etc routines aren't spread throughout the CRT tree.
svn path=/trunk/; revision=30266
2007-11-08 10:54:42 +00:00
Aleksey Bragin f5ccdfc8e8 - Don't include <windows.h> if it's not needed.
- Fix strange usage of TABs.

svn path=/trunk/; revision=30247
2007-11-07 22:34:05 +00:00
Hervé Poussineau 6e000cec2a No need to create dependency files for zlib host library
svn path=/trunk/; revision=30219
2007-11-06 13:08:48 +00:00
Art Yerkes 66aabe3049 Do this properly now that I understand exception chaining a bit better.
The exception chain on x86 is at fs:0.  We use r13 to simulate the same, so
we chain exceptions at 0(13)

svn path=/trunk/; revision=30105
2007-11-04 11:57:37 +00:00
Hervé Poussineau 7af600178a Add traces
Fix typo in EnumerateRecycleBinW

svn path=/trunk/; revision=30009
2007-10-31 13:04:47 +00:00
Hervé Poussineau e6a393c3ad Replace drive letter by a root path
svn path=/trunk/; revision=30001
2007-10-31 09:10:20 +00:00