Author: dreimer
Date: Sat May 9 15:34:41 2009
New Revision: 40861
URL: http://svn.reactos.org/svn/reactos?rev=40861&view=rev
Log:
Hopefully the last stuff to do. Built ROS HEAD with cmd and PS with the new GCC successfully.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
trunk/tools/RosBE/RosBE-Windows/Root/README.odt
trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
Modified: trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Cha…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt [iso-8859-1] Sat May 9 15:34:41 2009
@@ -8,11 +8,16 @@
- New binutils and GCC builds optimized for i686 and with proper relative include directories (Colin Finck)
- Remove unneeded components such as the MingW32 Runtime DLL (Colin Finck)
- Make it possible to set different settings for any arch in RosBE. (Daniel Reimer, Timo Kreuzer)
-
+- Updated: SVN 1.6.1 included (Daniel Reimer)
+- Finally fully integrate the PS Version of RosBE and make it default in Windows 7 (Daniel Reimer)
+ This made following stuff needed:
+ * Let the Installer change the Security Level of Powershell to Remote Signed.
+ * Generate Shortcuts for the PS Versions.
+ * Fix some typos in the PS files to fully work with the new GCC
*** April 07th, 2009 - RosBE 1.4.1 Released
-- Updated:SVN 1.6 included (Daniel Reimer)
+- Updated: SVN 1.6 included (Daniel Reimer)
- Fixed: Sped up starting of rosbe (Daniel Reimer)
- Fixed: Hopefully fixed bison. (Daniel Reimer)
Modified: trunk/tools/RosBE/RosBE-Windows/Root/README.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/REA…
==============================================================================
Binary files - no diff available.
Modified: trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/RosBE.ns…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/RosBE.nsi [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/RosBE.nsi [iso-8859-1] Sat May 9 15:34:41 2009
@@ -194,12 +194,12 @@
SetOverwrite try
File /r Components\Tools\svn.exe
File /r Components\Tools\intl3_svn.dll
- File /r Components\Tools\libapr.dll
+ File /r Components\Tools\libapr-1.dll
File /r Components\Tools\libeay32.dll
File /r Components\Tools\ssleay32.dll
- File /r Components\Tools\libaprutil.dll
+ File /r Components\Tools\libaprutil-1.dll
File /r Components\Tools\libdb44.dll
- File /r Components\Tools\libapriconv.dll
+ File /r Components\Tools\libapriconv-1.dll
File /r Components\Tools\libsasl.dll
File /r Components\Tools\libsvn_client-1.dll
File /r Components\Tools\libsvn_delta-1.dll
Author: mjmartin
Date: Sat May 9 13:54:50 2009
New Revision: 40857
URL: http://svn.reactos.org/svn/reactos?rev=40857&view=rev
Log:
- MmProtectAnonMem: Search all Regions in Memory Area up to Length for MEM_COMMIT prior to altering memory protection.
Fixes 6 kernel32_winetest for virtual memory.
Modified:
trunk/reactos/ntoskrnl/mm/anonmem.c
Modified: trunk/reactos/ntoskrnl/mm/anonmem.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/anonmem.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/anonmem.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/anonmem.c [iso-8859-1] Sat May 9 13:54:50 2009
@@ -1034,26 +1034,48 @@
PULONG OldProtect)
{
PMM_REGION Region;
- NTSTATUS Status;
-
- Region = MmFindRegion(MemoryArea->StartingAddress,
- &MemoryArea->Data.VirtualMemoryData.RegionListHead,
- BaseAddress, NULL);
- if (Region->Type == MEM_COMMIT)
- {
- /* FIXME: check if the whole range is committed
- * before altering the memory */
+ NTSTATUS Status = STATUS_SUCCESS;
+ ULONG LengthCount = 0;
+
+ /* Search all Regions in MemoryArea up to Length */
+ /* Every Region up to Length must be committed for success */
+ for (;;)
+ {
+ Region = MmFindRegion(MemoryArea->StartingAddress,
+ &MemoryArea->Data.VirtualMemoryData.RegionListHead,
+ (PVOID)((ULONG_PTR)BaseAddress + (ULONG_PTR)LengthCount), NULL);
+
+ /* If a Region was found and it is committed */
+ if ((Region) && (Region->Type == MEM_COMMIT))
+ {
+ LengthCount += Region->Length;
+ if (Length <= LengthCount) break;
+ continue;
+ }
+ /* If Region was found and it is not commited */
+ else if (Region)
+ {
+ Status = STATUS_NOT_COMMITTED;
+ break;
+ }
+ /* If no Region was found at all */
+ else if (LengthCount == 0)
+ {
+ Status = STATUS_INVALID_ADDRESS;
+ break;
+ }
+ }
+
+ if (NT_SUCCESS(Status))
+ {
*OldProtect = Region->Protect;
Status = MmAlterRegion(AddressSpace, MemoryArea->StartingAddress,
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
BaseAddress, Length, Region->Type, Protect,
MmModifyAttributes);
}
- else
- {
- Status = STATUS_NOT_COMMITTED;
- }
- return(Status);
+
+ return (Status);
}
NTSTATUS NTAPI