mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 08:54:40 +00:00
[BASESRV]
Remove a temporary DPRINT1. [CSRSRV] - Shut down debug output. - Fix some misspellings. - Fix a bug in CsrMoveSatisfiedWaits ("satisfied" waits are waits where WaitFunction was put to NULL during a previous call to CsrNotifyWait, but still not dereferenced, and which can be dereferenced by a call to CsrDereferenceWait). svn path=/branches/ros-csrss/; revision=58103
This commit is contained in:
parent
dd5a9c5231
commit
0345e745fd
|
@ -83,7 +83,7 @@ CSR_API(BaseSrvCreateProcess)
|
|||
}
|
||||
if ((Flags & 2) == 0)
|
||||
{
|
||||
DPRINT1("BaseSrvCreateProcess - Launching a Console process\n");
|
||||
/* We are launching a console process */
|
||||
DebugFlags |= CsrProcessIsConsoleApp;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "srv.h"
|
||||
|
||||
//#define NDEBUG
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
@ -1329,7 +1329,7 @@ CsrReleaseCapturedArguments(IN PCSR_API_MESSAGE ApiMessage)
|
|||
* @param ElementSize
|
||||
* Size of each element.
|
||||
*
|
||||
* @return TRUE if validation suceeded, FALSE otherwise.
|
||||
* @return TRUE if validation succeeded, FALSE otherwise.
|
||||
*
|
||||
* @remarks None.
|
||||
*
|
||||
|
@ -1447,7 +1447,7 @@ Win32CsrValidateBuffer(PCSR_PROCESS ProcessData, PVOID Buffer,
|
|||
* @param MessageString
|
||||
* Pointer to the buffer containing the string to validate.
|
||||
*
|
||||
* @return TRUE if validation suceeded, FALSE otherwise.
|
||||
* @return TRUE if validation succeeded, FALSE otherwise.
|
||||
*
|
||||
* @remarks None.
|
||||
*
|
||||
|
|
|
@ -25,7 +25,7 @@ PCSR_THREAD CsrSbApiRequestThreadPtr;
|
|||
HANDLE CsrSmApiPort = NULL;
|
||||
HANDLE hSbApiPort = NULL;
|
||||
HANDLE CsrApiPort = NULL;
|
||||
ULONG CsrDebug = 0xFFFFFFFF; // 0;
|
||||
ULONG CsrDebug = 0; // 0xFFFFFFFF;
|
||||
ULONG CsrMaxApiRequestThreads;
|
||||
ULONG CsrTotalPerProcessDataLength;
|
||||
ULONG SessionId;
|
||||
|
|
|
@ -1007,7 +1007,7 @@ CsrGetProcessLuid(IN HANDLE hProcess OPTIONAL,
|
|||
* @param CsrThread
|
||||
* Pointer to the CSR Thread to impersonate.
|
||||
*
|
||||
* @return TRUE if impersionation suceeded, false otherwise.
|
||||
* @return TRUE if impersonation succeeded, false otherwise.
|
||||
*
|
||||
* @remarks Impersonation can be recursive.
|
||||
*
|
||||
|
|
|
@ -127,13 +127,13 @@ CsrNotifyWaitBlock(IN PCSR_WAIT_BLOCK WaitBlock,
|
|||
IN BOOLEAN DereferenceThread)
|
||||
{
|
||||
/* Call the wait function */
|
||||
if ((WaitBlock->WaitFunction)(WaitList,
|
||||
WaitBlock->WaitThread,
|
||||
&WaitBlock->WaitApiMessage,
|
||||
WaitBlock->WaitContext,
|
||||
WaitArgument1,
|
||||
WaitArgument2,
|
||||
WaitFlags))
|
||||
if (WaitBlock->WaitFunction(WaitList,
|
||||
WaitBlock->WaitThread,
|
||||
&WaitBlock->WaitApiMessage,
|
||||
WaitBlock->WaitContext,
|
||||
WaitArgument1,
|
||||
WaitArgument2,
|
||||
WaitFlags))
|
||||
{
|
||||
/* The wait is done, clear the block */
|
||||
WaitBlock->WaitThread->WaitBlock = NULL;
|
||||
|
@ -176,7 +176,7 @@ CsrNotifyWaitBlock(IN PCSR_WAIT_BLOCK WaitBlock,
|
|||
WaitBlock->WaitFunction = NULL;
|
||||
}
|
||||
|
||||
/* The wait suceeded */
|
||||
/* The wait succeeded */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -297,8 +297,8 @@ CsrDereferenceWait(IN PLIST_ENTRY WaitList)
|
|||
/* Move to the next entry */
|
||||
NextEntry = NextEntry->Flink;
|
||||
|
||||
/* Check if there's no Wait Routine */
|
||||
if (!WaitBlock->WaitFunction)
|
||||
/* Check if there's no Wait Routine (satisfied wait) */
|
||||
if (WaitBlock->WaitFunction == NULL)
|
||||
{
|
||||
/* Remove it from the Wait List */
|
||||
if (WaitBlock->WaitList.Flink)
|
||||
|
@ -366,8 +366,8 @@ CsrMoveSatisfiedWait(IN PLIST_ENTRY NewEntry,
|
|||
/* Go to the next entry */
|
||||
NextEntry = NextEntry->Flink;
|
||||
|
||||
/* Check if there is a Wait Callback */
|
||||
if (WaitBlock->WaitFunction)
|
||||
/* Check if there's no Wait Routine (satisfied wait) */
|
||||
if (WaitBlock->WaitFunction == NULL)
|
||||
{
|
||||
/* Remove it from the Wait Block Queue */
|
||||
RemoveEntryList(&WaitBlock->WaitList);
|
||||
|
@ -427,8 +427,8 @@ CsrNotifyWait(IN PLIST_ENTRY WaitList,
|
|||
/* Go to the next entry */
|
||||
NextEntry = NextEntry->Flink;
|
||||
|
||||
/* Check if there is a Wait Callback */
|
||||
if (WaitBlock->WaitFunction)
|
||||
/* Check if there is a Wait Routine */
|
||||
if (WaitBlock->WaitFunction != NULL)
|
||||
{
|
||||
/* Notify the Waiter */
|
||||
NotifySuccess |= CsrNotifyWaitBlock(WaitBlock,
|
||||
|
|
Loading…
Reference in a new issue