[LIB/RTL]

- Get rid of some unneeded assignment, cast and a variable.

svn path=/trunk/; revision=48005
This commit is contained in:
Amine Khaldi 2010-07-12 14:50:31 +00:00
parent 1aa82b4f2c
commit cd21d25fc7
2 changed files with 4 additions and 5 deletions

View file

@ -65,9 +65,9 @@ RtlpCreateCriticalSectionSem(PRTL_CRITICAL_SECTION CriticalSection)
} }
DPRINT("Created Event: %p \n", hNewEvent); DPRINT("Created Event: %p \n", hNewEvent);
if ((hEvent = (HANDLE)_InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore, if (_InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,
(PVOID)hNewEvent, (PVOID)hNewEvent,
0))) { 0)) {
/* Some just created an event */ /* Some just created an event */
DPRINT("Closing already created event: %p\n", hNewEvent); DPRINT("Closing already created event: %p\n", hNewEvent);

View file

@ -394,7 +394,6 @@ static ULONG get_full_path_helper(
ULONG size) ULONG size)
{ {
ULONG reqsize = 0, mark = 0, dep = 0, deplen; ULONG reqsize = 0, mark = 0, dep = 0, deplen;
RTL_PATH_TYPE type;
LPWSTR ins_str = NULL; LPWSTR ins_str = NULL;
LPCWSTR ptr; LPCWSTR ptr;
const UNICODE_STRING* cd; const UNICODE_STRING* cd;
@ -409,7 +408,7 @@ static ULONG get_full_path_helper(
//cd = &((PCURDIR)&NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->CurrentDirectory.DosPath)->DosPath; //cd = &((PCURDIR)&NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->CurrentDirectory.DosPath)->DosPath;
cd = &NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->CurrentDirectory.DosPath; cd = &NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->CurrentDirectory.DosPath;
switch (type = RtlDetermineDosPathNameType_U(name)) switch (RtlDetermineDosPathNameType_U(name))
{ {
case RtlPathTypeUncAbsolute: /* \\foo */ case RtlPathTypeUncAbsolute: /* \\foo */
ptr = skip_unc_prefix( name ); ptr = skip_unc_prefix( name );