Author: akhaldi
Date: Mon Jul 12 14:50:31 2010
New Revision: 48005
URL:
http://svn.reactos.org/svn/reactos?rev=48005&view=rev
Log:
[LIB/RTL]
- Get rid of some unneeded assignment, cast and a variable.
Modified:
trunk/reactos/lib/rtl/critical.c
trunk/reactos/lib/rtl/path.c
Modified: trunk/reactos/lib/rtl/critical.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/critical.c?rev=480…
==============================================================================
--- trunk/reactos/lib/rtl/critical.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/critical.c [iso-8859-1] Mon Jul 12 14:50:31 2010
@@ -65,9 +65,9 @@
}
DPRINT("Created Event: %p \n", hNewEvent);
- if ((hEvent =
(HANDLE)_InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,
- (PVOID)hNewEvent,
- 0))) {
+ if
(_InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,
+ (PVOID)hNewEvent,
+ 0)) {
/* Some just created an event */
DPRINT("Closing already created event: %p\n", hNewEvent);
Modified: trunk/reactos/lib/rtl/path.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/path.c?rev=48005&a…
==============================================================================
--- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Mon Jul 12 14:50:31 2010
@@ -394,7 +394,6 @@
ULONG size)
{
ULONG reqsize = 0, mark = 0, dep = 0, deplen;
- RTL_PATH_TYPE type;
LPWSTR ins_str = NULL;
LPCWSTR ptr;
const UNICODE_STRING* cd;
@@ -409,7 +408,7 @@
//cd =
&((PCURDIR)&NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->CurrentDirectory.DosPath)->DosPath;
cd =
&NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->CurrentDirectory.DosPath;
- switch (type = RtlDetermineDosPathNameType_U(name))
+ switch (RtlDetermineDosPathNameType_U(name))
{
case RtlPathTypeUncAbsolute: /* \\foo */
ptr = skip_unc_prefix( name );