Eric Kohl [Thu, 14 Oct 2010 19:41:03 +0000 (19:41 +0000)]
[RPCRT4]
Add a missing format type to unmarshall_discriminant().
svn path=/trunk/; revision=49146
Giannis Adamopoulos [Thu, 14 Oct 2010 18:53:12 +0000 (18:53 +0000)]
[win32k]
- When we try to call a hook with null hook proc will cause a crash in user32. Add an assertion in win32k in order to catch the problem a bit earlier
svn path=/trunk/; revision=49145
Giannis Adamopoulos [Thu, 14 Oct 2010 18:36:33 +0000 (18:36 +0000)]
[win32k]
- Disable checking if a hook is active. It is safe to disable it for now because it is just an optimization. If we try to call a hook when it is not active, it will fail anyway when it tries to find the hook. Fixes calling low level hooks
svn path=/trunk/; revision=49144
Daniel Reimer [Wed, 13 Oct 2010 21:23:48 +0000 (21:23 +0000)]
Another dll addition to cmake, another rc file fix.
svn path=/trunk/; revision=49139
Amine Khaldi [Wed, 13 Oct 2010 14:54:37 +0000 (14:54 +0000)]
[AUTHZ]
- Missed these.
svn path=/trunk/; revision=49137
Amine Khaldi [Wed, 13 Oct 2010 14:30:49 +0000 (14:30 +0000)]
[AUTHZ]
- Fix AuthzReportSecurityEvent, AuthzInitializeObjectAccessAuditEvent and AuthzInitializeObjectAccessAuditEvent2 prototypes.
svn path=/trunk/; revision=49136
Amine Khaldi [Wed, 13 Oct 2010 10:53:01 +0000 (10:53 +0000)]
[DDK]
- Fix RtlStringCbPrintf prototypes.
svn path=/trunk/; revision=49134
Sir Richard [Tue, 12 Oct 2010 21:17:58 +0000 (21:17 +0000)]
[SMSS]: Remove the ROS_DOESNT_SUCK hack, and correctly started subsystem processes with the first MB reserved.
[CSRSRV]: CSRSS was started with a free address space, and was able to map 0xA0000 into it by luck, because the ReactOS Mm allocator picks address ranges randomly, and it somehow managed to avoid the low 1MB addresses. Were this algorithm to change, or perhaps, were we to implement VADs for VM allocations, the 0xA0000 region might already be allocated (by an early-process-initialization allocation, such as the heap). This is what the flag referenced above was designed for, but it was not used. Using this flag, on the other hand, now makes CSRSS fail, because it attempts to map the RAM into 0xA0000, which fails since you can map a section on top of reserved memory. To work around this Brobdingnagian annoyance, CSRSS simply releases the first MB of memory that SMSS has nicely reserved for it, and then proceeds with the mapping. This fixes the issue of getting 0xA0000 by luck and now guarantees it can be mapped.
svn path=/trunk/; revision=49133
Eric Kohl [Tue, 12 Oct 2010 20:51:07 +0000 (20:51 +0000)]
[WIDL]
Update widl to version 1.3.4.
svn path=/trunk/; revision=49132
Pierre Schweitzer [Tue, 12 Oct 2010 20:29:50 +0000 (20:29 +0000)]
[NTOSKRNL]
Implemented IopFetchConfigurationInformation(), IopCreateArcNamesCd(), IopCreateArcNamesDisk(), IopVerifyDiskSignature()
Removed IopApplyRosCdromArcHack(), IopGetDiskInformation(), IopAssignArcNamesToCdrom()
Finally, rewritten IopCreateArcNames()
To make it short, this is the rewrite of ARC names handling in the kernel.
This brings our kernel to a higher state of existence. Indeed, it's leaving NT4 design for a proper NT5.2 design, with less hacks, less ROS specific stuff and such.
This code handles the mount manager we don't have yet.
svn path=/trunk/; revision=49131
Pierre Schweitzer [Tue, 12 Oct 2010 20:22:29 +0000 (20:22 +0000)]
[NTOSKRNL]
Implemented FstubAllocateDiskInformation(), FstubDbgGuidToString(), FstubDbgPrintDriveLayoutEx(), FstubDbgPrintPartitionEx(), FstubDetectPartitionStyle(), FstubFreeDiskInformation(), FstubGetDiskGeometry(), FstubReadPartitionTableMBR(), FstubReadSector()
Stubbed FstubReadPartitionTableEFI()
This leads to a correct & working implementation of IoReadPartitionTableEx(). As this state, it only handles MBR partition tables as EFI/GPT as been stubbed out.
EFI/GPT support will come later.
svn path=/trunk/; revision=49130
Pierre Schweitzer [Tue, 12 Oct 2010 20:17:55 +0000 (20:17 +0000)]
[CLASS2]
Switch use from DISK_GEOMETRY to DISK_GEOMETRY_EX. It's needed to handle some Windows 2003's kernel routines.
[CDROM]
Reflect changes in Class2.
[DISK]
Reflect changes in Class2.
Also added support for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX.
svn path=/trunk/; revision=49129
Eric Kohl [Tue, 12 Oct 2010 20:07:58 +0000 (20:07 +0000)]
[D3D]
Preparations for update to widl 1.3.4.
svn path=/trunk/; revision=49128
Cameron Gutman [Tue, 12 Oct 2010 20:02:15 +0000 (20:02 +0000)]
[HAL]
- Check that the interrupt line is not 255
- Check that the interrupt pin is not 0
- Fixes a failed assertion that Caemyr experienced with an ATI Rage graphics card
svn path=/trunk/; revision=49127
Aleksey Bragin [Tue, 12 Oct 2010 18:34:48 +0000 (18:34 +0000)]
[HEAP]
- Implement heap validation support.
svn path=/trunk/; revision=49126
Amine Khaldi [Tue, 12 Oct 2010 16:39:38 +0000 (16:39 +0000)]
[DDK]
- Fix ClassDebugPrint prototype.
svn path=/trunk/; revision=49125
Kamil Hornicek [Tue, 12 Oct 2010 15:02:31 +0000 (15:02 +0000)]
Attempt nr. 2: link wined3d to crt on amd64 build.
svn path=/trunk/; revision=49124
Kamil Hornicek [Tue, 12 Oct 2010 14:24:58 +0000 (14:24 +0000)]
Fix amd64 build.
svn path=/trunk/; revision=49123
Aleksey Bragin [Tue, 12 Oct 2010 09:03:39 +0000 (09:03 +0000)]
[NTDLL]
- Don't access unitialized memory. Caught thanks to a new heap manager, and this fixes all weird actctx exceptions in kernel32_winetest heap.
svn path=/trunk/; revision=49122
James Tabor [Mon, 11 Oct 2010 15:12:47 +0000 (15:12 +0000)]
[Wine Tests]
- Update the only two tests that I tested and know that does not have RTL support. The Right To Left support will be another comprehensive change that can be done in a non intrusive way as long no one uses it.
svn path=/trunk/; revision=49117
Kamil Hornicek [Mon, 11 Oct 2010 13:56:39 +0000 (13:56 +0000)]
[WINED3D]
Update wined3d, ddraw, d3d8 and d3d9 to Wine 1.3.4.
svn path=/trunk/; revision=49116
Giannis Adamopoulos [Mon, 11 Oct 2010 13:01:46 +0000 (13:01 +0000)]
[win32k]
- Remove the FreeLParam 'feature' from win32k. This hack allowed us to post messages that contain pointers. However we don't do it anymore so we can also remove this as well
- Add keyboard messages to the list with Hardware messages and not in the list with post messages
svn path=/trunk/; revision=49115
Giannis Adamopoulos [Mon, 11 Oct 2010 10:58:33 +0000 (10:58 +0000)]
[win32k]
-Move checks for active hooks in co_HOOK_CallHooks
svn path=/trunk/; revision=49114
Aleksey Bragin [Mon, 11 Oct 2010 10:29:41 +0000 (10:29 +0000)]
[HEAP]
- Fix DWORD -> ULONG in function definitions too.
svn path=/trunk/; revision=49113
Pierre Schweitzer [Mon, 11 Oct 2010 10:20:40 +0000 (10:20 +0000)]
[NDK]
Fixed build
svn path=/trunk/; revision=49112
Aleksey Bragin [Mon, 11 Oct 2010 08:39:04 +0000 (08:39 +0000)]
[HEAP]
- Fix RtlQuery/SetHeapInformation prototypes, move them to an appropriate place.
- Implement RtlQuery/SetHeapInformation.
- Implement in-place block growing.
- Amount of winetest heap failures is down to 6 (3 exceptions still happen).
svn path=/trunk/; revision=49111
Aleksey Bragin [Mon, 11 Oct 2010 07:47:52 +0000 (07:47 +0000)]
[ADVAPI32]
- Katayama Hirofumi: Use DataLength field in RegEnumValueW instead of DataOffset.
- Roel Messiant: Test behaviour in Vista and apply same fix to RegEnumValueA.
See issue #2492 for more details.
svn path=/trunk/; revision=49110
James Tabor [Mon, 11 Oct 2010 03:41:41 +0000 (03:41 +0000)]
[Win32k|User32]
- Move to the new window structure. Window Object served us well.
svn path=/trunk/; revision=49109
Daniel Reimer [Sun, 10 Oct 2010 23:29:32 +0000 (23:29 +0000)]
RC file fixes for inconsistences shown up by the recent dll work in r49105.
svn path=/trunk/; revision=49107
Daniel Reimer [Sun, 10 Oct 2010 22:36:35 +0000 (22:36 +0000)]
More resource fixes making warnings vanish when built with cmake.
svn path=/trunk/; revision=49103
Aleksey Bragin [Sun, 10 Oct 2010 21:52:48 +0000 (21:52 +0000)]
[HEAP]
- Properly set HEAP_GROWABLE flag if dwMaximumSize is 0 in HeapCreate. Also check for dwMaximumSize validity. Fixes out-of-memory problems when running "heavy" applications like Office 2003 setup with a new heap manager (which actually respects HEAP_GROWABLE flag).
svn path=/trunk/; revision=49102
Daniel Reimer [Sun, 10 Oct 2010 14:45:03 +0000 (14:45 +0000)]
Replace \" with "" in resource files. This makes CMAKE build way more silent. Needs to be merged.
TBD find a way to silent warnings happening due to \n in strings.
svn path=/trunk/; revision=49096
Eric Kohl [Sun, 10 Oct 2010 11:31:51 +0000 (11:31 +0000)]
[NTOSKRNL]
Implement SeImpersonateClientEx() and simplify SeImpersonateClient().
svn path=/trunk/; revision=49091
Aleksey Bragin [Sun, 10 Oct 2010 11:16:55 +0000 (11:16 +0000)]
[HEAP]
- Add 64 bit compatibility.
svn path=/trunk/; revision=49090
Benedikt Freisen [Sun, 10 Oct 2010 09:57:44 +0000 (09:57 +0000)]
[PAINT]
- apply patch by Black_Fox (see bug 5434)
- fix minor bugs introduced by it
- generalize changes related to mirroring rectangular selections to free form selections
- solve problem regarding selection contents update
svn path=/trunk/; revision=49089
Eric Kohl [Sat, 9 Oct 2010 23:13:57 +0000 (23:13 +0000)]
[WIDL]
- Revert r49085 and r49086.
svn path=/trunk/; revision=49087
Eric Kohl [Sat, 9 Oct 2010 22:54:37 +0000 (22:54 +0000)]
[WIDL]
Fix Unix build.
svn path=/trunk/; revision=49086
Eric Kohl [Sat, 9 Oct 2010 22:41:05 +0000 (22:41 +0000)]
[WIDL]
- Sync to Wine-1.3.4
- Bugfix: The switchtype attribute of non-encapsulated unions was not propagated to a type but only to its aliases.
svn path=/trunk/; revision=49085
Daniel Reimer [Sat, 9 Oct 2010 22:36:58 +0000 (22:36 +0000)]
Update rapps database
svn path=/trunk/; revision=49084
Cameron Gutman [Sat, 9 Oct 2010 21:52:25 +0000 (21:52 +0000)]
[URLMON]
- Sync to WINE 1.3.4
[WININET]
- Add a forgotten change to the diff
[WINHTTP]
- Sync to WINE 1.3.4
- Sync the inet_ntop.c change from wininet
- Update the diff
svn path=/trunk/; revision=49083
Cameron Gutman [Sat, 9 Oct 2010 21:10:39 +0000 (21:10 +0000)]
[PSDK]
- Add INET_E_USE_DEFAULT_SETTING definition
[WINE]
- Add iscntrlW() definition
svn path=/trunk/; revision=49082
Cameron Gutman [Sat, 9 Oct 2010 20:08:18 +0000 (20:08 +0000)]
[WININET]
- Sync wininet to WINE 1.3.4
- Regenerate wininet_ros.diff so that it actually applies against current WINE head
svn path=/trunk/; revision=49081
Cameron Gutman [Sat, 9 Oct 2010 18:40:16 +0000 (18:40 +0000)]
[WININET]
- Add a ROS-specific change that was missed during the last winesync to fix winsock error handling
- Remove the CP_UNIXCP definition
- Use WSASetLastError instead of errno in inet_ntop.c
- Thanks to IRC:igorko for pointing out the bug
svn path=/trunk/; revision=49078
Aleksey Bragin [Sat, 9 Oct 2010 13:02:34 +0000 (13:02 +0000)]
[HEAP]
- Move (and cleanup) private heap definitions and structure to a standalone header file heap.h. It's explicitly included in heap_rewrite.c and heapdbg.c to prevent conflicts with the existing heap manager in heap.c.
svn path=/trunk/; revision=49071
Aleksey Bragin [Sat, 9 Oct 2010 12:49:30 +0000 (12:49 +0000)]
[HEAP]
- Implement setting/getting heap user values and flags (very easy provided heap design is now proper). Amount of winetest failures is down to 12 (but 3 crashes in child processes).
svn path=/trunk/; revision=49069
Amine Khaldi [Sat, 9 Oct 2010 10:35:35 +0000 (10:35 +0000)]
[RAPPS]
Igor Paliychuk:
- Update some broken links.
- Changed the cyrillic "P" to a latin "P" in the beginning of the VBox driver's russian and ukrainian descriptions (rapps doesn't display it when it's cyrillic).
svn path=/trunk/; revision=49067
Pierre Schweitzer [Sat, 9 Oct 2010 10:01:37 +0000 (10:01 +0000)]
[NTDLL]
Fixed build
svn path=/trunk/; revision=49065
Aleksey Bragin [Sat, 9 Oct 2010 09:19:33 +0000 (09:19 +0000)]
[RTL]
- Fix RtlSetUserFlagsHeap declaration and definition.
svn path=/trunk/; revision=49064
Aleksey Bragin [Sat, 9 Oct 2010 09:15:50 +0000 (09:15 +0000)]
[KERNEL32]
- Revert incorrect changes from 34404 and 40910: RtlSetUserFlagsHeap() doesn't set usual heap flags, it sets special user-settable heap entry flags. With the new heap manager such usage corrupts heap integrity (not to say prototype of this function is incorrect).
- RtlReAllocateHeap() is supposed to copy user values and flags so there is no need to set them afterwise again.
- Fix a typo in comments.
svn path=/trunk/; revision=49063
Aleksey Bragin [Fri, 8 Oct 2010 20:17:39 +0000 (20:17 +0000)]
[HEAP]
- Roel Messiant: Fix infinite loop in RtlDestroyHeap if heap contained big blocks.
svn path=/trunk/; revision=49058
Aleksey Bragin [Fri, 8 Oct 2010 19:30:23 +0000 (19:30 +0000)]
[HEAP]
- Set proper heap flags (tail and free checking) in case heap validation is enabled. Fixes another bunch of winetests.
svn path=/trunk/; revision=49057
Eric Kohl [Fri, 8 Oct 2010 18:48:54 +0000 (18:48 +0000)]
[EVENTLOG]
Rename the EVENTSOURCE struct to LOGHANDLE because it is currently used like a handle object. The EVENTSOURCE struct will be added again in one of the next commits.
svn path=/trunk/; revision=49055
Aleksey Bragin [Fri, 8 Oct 2010 09:47:48 +0000 (09:47 +0000)]
[HEAP]
- Roel Messiant: Remove old-style Peb->ProcessHeaps assignment from RTL, it's already done by MM.
- Roel Messiant: Fix a typo (missing else) between two if branches, which fixes commit routine support.
- Properly save requested size if 0 was given (1 should be allocated, but 0 saved as a requested amount). Fixes winetests.
- Remove unnecessary dprints.
svn path=/trunk/; revision=49048
Aleksey Bragin [Thu, 7 Oct 2010 21:12:10 +0000 (21:12 +0000)]
[NTDLL]
- Load image execution options before creating process heap (so that GlobalFlag overrides can be taken into account).
- Make LdrQueryImageFileExecutionOptions avoid heap usage when possible (and when it's not possible, fail with out of memory status).
- Fixes a dramatic count of ~100 failures in "kernel32_winetest heap".
svn path=/trunk/; revision=49045
Pierre Schweitzer [Thu, 7 Oct 2010 20:20:10 +0000 (20:20 +0000)]
[NTOSKRNL]
On boot, while loading drivers, make starting Loader Block available to the whole kernel to let drivers calling on-boot functions that may need it.
One of them will be implemented later.
svn path=/trunk/; revision=49044
Pierre Schweitzer [Thu, 7 Oct 2010 20:08:24 +0000 (20:08 +0000)]
[NTOSKRNL]
Fixed a FIXME in ARC names by implementing IopStoreSystemPartitionInformation(). This make ReactOS writing boot paths to registry.
svn path=/trunk/; revision=49043
Pierre Schweitzer [Thu, 7 Oct 2010 19:58:22 +0000 (19:58 +0000)]
[NTOSKRNL]
Don't ignore IopCreateArcNames() return while booting.
At the moment, it's just returning STATUS_SUCCES but it will be changed later.
svn path=/trunk/; revision=49042
Eric Kohl [Thu, 7 Oct 2010 19:58:04 +0000 (19:58 +0000)]
Fix indentation. No code changes.
svn path=/trunk/; revision=49041
Pierre Schweitzer [Thu, 7 Oct 2010 19:16:09 +0000 (19:16 +0000)]
[FREELDR]
Fix CDs checksum computation
[NTOSKRNL]
Fix ARC names accordingly
svn path=/trunk/; revision=49040
Giannis Adamopoulos [Thu, 7 Oct 2010 19:14:49 +0000 (19:14 +0000)]
[win32k]
- Fix an ancient FIXME in PATH_PathToRegion
svn path=/trunk/; revision=49039
Sir Richard [Thu, 7 Oct 2010 17:41:20 +0000 (17:41 +0000)]
[NTOS]: Fix copy/paste error.
svn path=/trunk/; revision=49037
Sir Richard [Thu, 7 Oct 2010 17:35:25 +0000 (17:35 +0000)]
[NTOS]: Hackfix a hack. Should get rid of the recent VAD assert in user32/bpp changes.
svn path=/trunk/; revision=49036
Sir Richard [Thu, 7 Oct 2010 17:27:23 +0000 (17:27 +0000)]
[NTOS]: Add support for user-mode VAD faults on page tables (just a couple lines of extra code).
[NTOS]: Add support for user-mode VAD demand zero faults.
[NTOS]: Remove broken ASSERT.
svn path=/trunk/; revision=49035
Aleksey Bragin [Thu, 7 Oct 2010 17:05:29 +0000 (17:05 +0000)]
[HEAP]
- Fix allocated/free memory fillers to match those Windows uses (winetests)
- Add missing coalesce-on-free flag check in RtlCreateHeap
- Turn on tail check/pattern filling in RtlAllocateHeap.
- Add extra stuff storage support in RtlAllocateHeap and its helpers.
- Set win32 statuses where necessary.
- Return success in RtlValidateHeap to reduce spam when running winetest.
svn path=/trunk/; revision=49034
Aleksey Bragin [Thu, 7 Oct 2010 16:51:19 +0000 (16:51 +0000)]
[NTDLL]
- Fix a typo which always set page heap enabled to true.
svn path=/trunk/; revision=49033
Sir Richard [Thu, 7 Oct 2010 13:52:42 +0000 (13:52 +0000)]
[NTOS]: My attempt at making bugchecks a thing of the past has failed, someone has caught the typo. Bugchecks will now happen in ReactOS again instead of being ignored. Maybe you can "forget" to merge this one with the release branch? ;-)
svn path=/trunk/; revision=49031
Aleksey Bragin [Thu, 7 Oct 2010 07:56:26 +0000 (07:56 +0000)]
[WIN32K]
- Roel Messiant: Return correct address in the user heap commit routine. Should fix boot with the new heap manager.
svn path=/trunk/; revision=49029
Aleksey Bragin [Thu, 7 Oct 2010 07:21:08 +0000 (07:21 +0000)]
[ADVAPI32]
- Roel Messiant: Properly handle STATUS_BUFFER_TOO_SMALL in RegEnumValueW implementation.
See issue #2492 for more details.
svn path=/trunk/; revision=49028
Matthias Kupfer [Wed, 6 Oct 2010 22:11:12 +0000 (22:11 +0000)]
Carlo Bramini <carlo DOT bramix AT libero DOT it>
- Fix for render status bar after changing line wrap and flicker issue.
- See issue #5635 for details.
svn path=/trunk/; revision=49027
Eric Kohl [Wed, 6 Oct 2010 20:43:51 +0000 (20:43 +0000)]
[RTL]
Change RtlLockBootStatusData prototype according to http://cookp.com/%2F/thread/
1111206/how%20can%20i%20detect%20last%20boot%20success
svn path=/trunk/; revision=49026
Aleksey Bragin [Wed, 6 Oct 2010 20:34:30 +0000 (20:34 +0000)]
[NTDLL]
- LoadImageFileExecutionOptions() improvements:
* Apply certain heap flags if the process is being debugged (only if NtGlobalFlags is not overridden).
* Implement enabling page heap and reading image-specific configuration values.
- Add page heap configuration values to the Heap Manager.
svn path=/trunk/; revision=49025
Aleksey Bragin [Wed, 6 Oct 2010 17:25:15 +0000 (17:25 +0000)]
- Respectively fix incorrect data type for GlobalFlags in ReactOS registry.
svn path=/trunk/; revision=49022
Aleksey Bragin [Wed, 6 Oct 2010 17:18:22 +0000 (17:18 +0000)]
[NTDLL]
- Fix loading of GlobalFlags in Image File Execution Options. I really wonder who had that brilliant idea that bitwise flags would be stored as a string in the registry.
- If there is a GlobalFlags value specified in the registr for that specific image, it means that value should overwrite NtGlobalFlags. Fix that too (previously it was ORing which made no sense).
svn path=/trunk/; revision=49021
Kamil Hornicek [Wed, 6 Oct 2010 16:44:09 +0000 (16:44 +0000)]
[CMD]
Use the full name we get from SearchForExecutable when building the command line for CreateProcess so we get proper name in argv[0] later.
svn path=/trunk/; revision=49020
Sir Richard [Wed, 6 Oct 2010 16:25:30 +0000 (16:25 +0000)]
[NTOS]: Fix bugs in the VAD algorithms, we should be rounding up, not down.
svn path=/trunk/; revision=49019
Timo Kreuzer [Wed, 6 Oct 2010 14:39:56 +0000 (14:39 +0000)]
[NTOSKRNL]
Alternative workaround for pentium lock errata: Instead of burdening the page fault handler, just mark the IDT page as Write-Through if the bug is present. According to http://www.rcollins.org/Errata/Dec97/F00FBug.html it shall prevent the lock up. Please test. Dedicated to elhoir.
svn path=/trunk/; revision=49018
Ged Murphy [Wed, 6 Oct 2010 14:13:00 +0000 (14:13 +0000)]
- Implement monitor bitmap support for the display dialog
- Fix incorrect codepage values
- Look for applets in windows dir as well as system dir
- Patch by Carlo Bramix
See issue #3158 for more details.
svn path=/trunk/; revision=49017
Sir Richard [Wed, 6 Oct 2010 13:32:58 +0000 (13:32 +0000)]
[NTOS]: Temporary debugging.
svn path=/trunk/; revision=49016
Giannis Adamopoulos [Wed, 6 Oct 2010 13:10:00 +0000 (13:10 +0000)]
[win32k]
- co_UserDestroyWindow: Send WM_PARENTNOTIFY message in correct order
svn path=/trunk/; revision=49014
Timo Kreuzer [Wed, 6 Oct 2010 12:30:23 +0000 (12:30 +0000)]
remove svn:merginfo
svn path=/trunk/; revision=49013
Timo Kreuzer [Wed, 6 Oct 2010 12:16:51 +0000 (12:16 +0000)]
[NTOSKRNL]
- Add amd64 versions of MI_MAKE_PROTOTYPE_PTE and MiProtoPteToPte
- Remove outdated external declarations
- disable deprecated amd64 code
- use MiFillSystemPageDirectory only for 2 paging levels
- Fixes amd64 build
svn path=/trunk/; revision=49012
Giannis Adamopoulos [Wed, 6 Oct 2010 11:14:58 +0000 (11:14 +0000)]
[win32k]
- Send WM_PARENTNOTIFY message when a window is destroyed
svn path=/trunk/; revision=49011
Aleksey Bragin [Wed, 6 Oct 2010 09:19:24 +0000 (09:19 +0000)]
[RTL/HEAP]
- Implement missing parts of a virtual block allocations support.
- Minor fixes to handling extra stuff in heap blocks.
- Wine's heap regression tests now run through the end without crashing and show 277 failures.
svn path=/trunk/; revision=49010
Sir Richard [Wed, 6 Oct 2010 04:34:36 +0000 (04:34 +0000)]
Lame... build fix.
svn path=/trunk/; revision=49008
Aleksey Bragin [Tue, 5 Oct 2010 21:43:48 +0000 (21:43 +0000)]
[RTL/HEAP]
- First commit of a heap manager rewrite. It introduces a totally new heap manager, with the following features:
* Actually resembles real NT's heap manager;
* Based on data structures similar to Windows 2003 and Vista+'s heap structures;
* Supporting advanced heap flags (e.g. useful for debugging);
* Substantially lower fragmentation rates (and thus speed and reliability) than the existing Wine's implementation. It's going to be further enhanced by adding a frontend allocator (for example, as lookaside lists, or as a Low Fragmentation Heap alike frontend in Vista+ systems);
* Real support for user-defined flags and native support for user-defined values;
* Native support for a custom commit routine, which is very important for trunk's win32 subsystem;
* Reserving, committing, decommitting and freeing on the fly, unlike existing heap manager which prefers to reserve and commit as much as possible, and doesn't decommit when it's no longer necessary;
* Support for per process heaps, with a proper lock;
* Reserved support for a special so-called debug heap allocator (to be implemented in heapdbg.c) which will be useful for finding heap corruptions.
The committed code is a result of a month of work, and is a heavy work-in-progress one. It already implements the bare minimum required to boot to 3rd stage and run FireFox 3, however many rare codepaths are not implemented yet and there is some maintenance work to do (e.g. move structures and defines to a standalone header file). A list of used references is stated in the header of a source file for now.
svn path=/trunk/; revision=49007
James Tabor [Tue, 5 Oct 2010 20:18:04 +0000 (20:18 +0000)]
- Fix build from 49005.
svn path=/trunk/; revision=49006
James Tabor [Tue, 5 Oct 2010 20:13:32 +0000 (20:13 +0000)]
[Win32k|User32]
- Implement NtUserGetMenuIndex, see Bug 5528.
svn path=/trunk/; revision=49005
Sir Richard [Tue, 5 Oct 2010 20:00:32 +0000 (20:00 +0000)]
[NTOS]: High-level interface fixes to NtAllocateVirtualMemory/NtFreeVirtualMemory:
- Validate MEM_LARGE_PAGES, MEM_PHYSICAL flags. Check for permission to use MEM_LARGE_PAGES.
- Validate protection mask.
- Validate MEM_RELEASE and MEM_DECOMMIT.
- Perform correct SEH in NtFreeVirtualMemory.
- Protect against overflows past VAD/User address ranegs.
- Only reference the process by handle if this isn't already the current process.
- If this isn't the current process, attach to it during the duration of the VM operation.
svn path=/trunk/; revision=49004
Aleksey Bragin [Tue, 5 Oct 2010 19:33:42 +0000 (19:33 +0000)]
[RTL]
- Fix heap code to actually use the new lock instead of using RTL_CRITICAL_SECTION.
- Fix a ROUND_UP and ROUND_DOWN macros: it is a *rule* to wrap every argument in braces in a macro, otherwise shit happens. A couple of days were lost fighting a strange bug in the new heap manager code where it was doing ROUND_UP(Heap + 1, PAGE_SIZE)...
svn path=/trunk/; revision=49003
Sir Richard [Tue, 5 Oct 2010 17:01:41 +0000 (17:01 +0000)]
[NTOS]: Build fix.
svn path=/trunk/; revision=49002
Giannis Adamopoulos [Tue, 5 Oct 2010 16:41:38 +0000 (16:41 +0000)]
[win32k]
- Don't place new windows with default position at the top left corner of the screen
See issue #5484 for more details.
svn path=/trunk/; revision=49001
Sir Richard [Tue, 5 Oct 2010 15:59:47 +0000 (15:59 +0000)]
[NTOS]: Fix whitespace typo in comment (two spaces instead of one).
That's right. I'm not a fun person.
svn path=/trunk/; revision=49000
Sir Richard [Tue, 5 Oct 2010 15:55:52 +0000 (15:55 +0000)]
[NTOS]: Delete a bunch of junk, 5 less files in Mm now (also moved some functions around). Delete unused functions where found.
[NTOS]: The modified page writer should run at a high priority such as 27, not in idle mode at priority 1 -- otherwise dirty pages never get flushed out.
[NTOS]: Reimplement MmGetFileNameForAddress, MmGetFileNameForSection, MmGetFileObjectForSection to also support ARM3 sections. Shouldn't affect anything other than the user-mode debugging support.
svn path=/trunk/; revision=48999
Sir Richard [Tue, 5 Oct 2010 15:52:00 +0000 (15:52 +0000)]
[NTOS]: When shutting down, call Cc to flush the dirty cached pages, otherwise these might've gotten lost (and lead to lost/corrupted data on disk).
[NTOS]: Don't assume that CcFlushDirtyPages will run with APCs disabled. Go ahead and actually enter/leave a critical region (Acquire/ReleaseForLazyWrite depend on this). The guarded mutex does disable APCs, but it's released when the actual flush happens.
svn path=/trunk/; revision=48998
Sir Richard [Tue, 5 Oct 2010 14:36:09 +0000 (14:36 +0000)]
[NTOS]: Implement ARM3 version of MmMapViewOfSection, only for ARM3 pagefile-backed sections, and without any special flag support. Tested and works great, with the new pagefault code correctly finding the Prototype PTE for the VAD.
[NTOS]: Make every VAD insert also create a MEMORY_AREA. Now the two address space views should be completely synchronized and we can try removing the hack that was done for PEB/TEB support (which will remove the 200 thread regression).
[NTOS]: Implement MiGetNextNode and MiFindEmptyAddressRangeInTree.
svn path=/trunk/; revision=48997
Aleksey Bragin [Tue, 5 Oct 2010 12:42:55 +0000 (12:42 +0000)]
[HEAP]
- Move on to using a real HEAP_LOCK structure for a heap lock.
- Implement kernel-mode counterparts of this lock too. Right now these don't introduce much of a difference, but they are going to be properly used by the new heap manager code.
svn path=/trunk/; revision=48994
Sir Richard [Tue, 5 Oct 2010 08:14:02 +0000 (08:14 +0000)]
[NTOS]: Add the tiny little bit of code required to correctly handle user-mode faults on ARM3 mapped sections in certain limited scenarios.
svn path=/trunk/; revision=48993
Sir Richard [Tue, 5 Oct 2010 05:07:13 +0000 (05:07 +0000)]
[NTOS]: Delete deprecated handling of MEMORY_AREA_IO_MAPPING. Delete all MEMORY_AREA definitions except the ones for SEGMENT_VIEW and VIRTUAL_MEMORY. All other memory is now owned by ARM3!
[NTOS]: Delete WriteCopyView flag from MEMORY_AREA (unused, and was taking up 4 bytes due to alignment), and add a Vad pointer (takes up 4 bytes -- no actual size change).
[NTOS]: For VM and Section MEMORY_AREAs mapped in user-mode, build a "fake" VAD and insert it into the VAD Root of the Process. This means there is now a consistent view between ARM3 and RosMm in terms of user-mode address space layout, which will come in handy later.
[NTOS]: Destroy the MEMORY_AREA's VAD when the MEMORY_AREA itself is deleted. Watch out for the scenario explained in a previous check-in, where the VAD was caught by the MmCleanProcessAddressSpace vad-cleanup-loop.
[NTOS]: Implement MiInsertVad to restore the old functionality of MiInsertNode when the current parent and insertion result is not yet known. It obtains the information and calls MiInsertNode.
svn path=/trunk/; revision=48992
Sir Richard [Tue, 5 Oct 2010 05:01:15 +0000 (05:01 +0000)]
[NTOS]: Add a _64K macro definition so we can stop typing out 65536 all the time.
svn path=/trunk/; revision=48991
Sir Richard [Tue, 5 Oct 2010 05:00:19 +0000 (05:00 +0000)]
[NTOS]: Use the Spare flag in the VAD as a ReactOS/MemoryArea specific flag to signify that this VAD is associated with a MEMORY_AREA and should be unlinked at process exit, but not freed. This is because MemoryAreas themselves are cleaned up later, and in the future their associated VADs (not yet in Trunk) will also be parsed. In the process death scenario, those VADs will be freed, but not unlinked (since it would already have been unlinked).
svn path=/trunk/; revision=48990