Author: fireball
Date: Sun Jan 4 03:41:34 2009
New Revision: 38551
URL: http://svn.reactos.org/svn/reactos?rev=38551&view=rev
Log:
- Fix a typo: if a process has DisableBoost set then TRUE should be returned when querying ProcessPriorityBoost information, not FALSE.
Modified:
trunk/reactos/ntoskrnl/ps/query.c
Modified: trunk/reactos/ntoskrnl/ps/query.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/query.c?rev=38…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/query.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/query.c [iso-8859-1] Sun Jan 4 03:41:34 2009
@@ -339,7 +339,7 @@
{
/* Return boost status */
*(PULONG)ProcessInformation = Process->Pcb.DisableBoost ?
- FALSE : TRUE;
+ TRUE : FALSE;
/* Set the return length */
Length = sizeof(ULONG);
Author: hpoussin
Date: Sun Jan 4 02:38:19 2009
New Revision: 38549
URL: http://svn.reactos.org/svn/reactos?rev=38549&view=rev
Log:
Add a check to not mix up host and target modules
Should probably be moved later outside of backend directory
Modified:
trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] Sun Jan 4 02:38:19 2009
@@ -778,6 +778,22 @@
if ( data.libraries.size () > 0 )
{
+ // Check if host and target modules are not mixed up
+ HostType current = ModuleHandlerInformations[module.type].DefaultHost;
+ std::vector<Library*>::const_iterator it;
+ for ( it = data.libraries.begin(); it != data.libraries.end(); ++it )
+ {
+ HostType imported = ModuleHandlerInformations[(*it)->importedModule->type].DefaultHost;
+ if (current != imported)
+ {
+ throw InvalidOperationException ( __FILE__,
+ __LINE__,
+ "Module '%s' imports module '%s', which is not of the right type",
+ module.name.c_str (),
+ (*it)->importedModule->name.c_str () );
+ }
+ }
+
string deps = GenerateImportLibraryDependenciesFromVector ( data.libraries );
if ( deps.size () > 0 )
{