Author: sserapion
Date: Fri Mar 20 08:14:39 2009
New Revision: 40116
URL:
http://svn.reactos.org/svn/reactos?rev=40116&view=rev
Log:
Clean up merge leftovers.
Modified:
branches/ros-amd64-bringup/reactos/subsystems/win32/csrss/api/handle.c
Modified: branches/ros-amd64-bringup/reactos/subsystems/win32/csrss/api/handle.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/subsy…
==============================================================================
--- branches/ros-amd64-bringup/reactos/subsystems/win32/csrss/api/handle.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/subsystems/win32/csrss/api/handle.c [iso-8859-1]
Fri Mar 20 08:14:39 2009
@@ -77,12 +77,8 @@
Object_t **Object,
DWORD Access )
{
-<<<<<<< .working
ULONG_PTR h = (ULONG_PTR)Handle >> 2;
DPRINT("CsrGetObject, Object: %x, %x, %x\n", Object, Handle, ProcessData ?
ProcessData->HandleTableSize : 0);
-=======
- ULONG h = (ULONG)Handle >> 2;
->>>>>>> .merge-rechts.r40086
DPRINT("CsrGetObject, Object: %x, %x, %x\n",
Object, Handle, ProcessData ? ProcessData->HandleTableSize : 0);
@@ -135,13 +131,8 @@
PCSRSS_PROCESS_DATA ProcessData,
HANDLE Handle)
{
-<<<<<<< .working
ULONG_PTR h = (ULONG_PTR)Handle >> 2;
Object_t *Object;
-=======
- ULONG h = (ULONG)Handle >> 2;
- Object_t *Object;
->>>>>>> .merge-rechts.r40086
RtlEnterCriticalSection(&ProcessData->HandleTableLock);
if (h >= ProcessData->HandleTableSize
@@ -175,7 +166,6 @@
if (ProcessData->HandleTable[i].Object == NULL)
{
break;
-<<<<<<< .working
}
}
if (i >= ProcessData->HandleTableSize)
@@ -202,34 +192,6 @@
_InterlockedIncrement( &Object->ReferenceCount );
RtlLeaveCriticalSection(&ProcessData->HandleTableLock);
return(STATUS_SUCCESS);
-=======
- }
- }
- if (i >= ProcessData->HandleTableSize)
- {
- Block = RtlAllocateHeap(CsrssApiHeap,
- HEAP_ZERO_MEMORY,
- (ProcessData->HandleTableSize + 64) *
sizeof(CSRSS_HANDLE));
- if (Block == NULL)
- {
- RtlLeaveCriticalSection(&ProcessData->HandleTableLock);
- return(STATUS_UNSUCCESSFUL);
- }
- RtlCopyMemory(Block,
- ProcessData->HandleTable,
- ProcessData->HandleTableSize * sizeof(CSRSS_HANDLE));
- Block = _InterlockedExchangePointer((volatile
void*)&ProcessData->HandleTable, Block);
- RtlFreeHeap( CsrssApiHeap, 0, Block );
- ProcessData->HandleTableSize += 64;
- }
- ProcessData->HandleTable[i].Object = Object;
- ProcessData->HandleTable[i].Access = Access;
- ProcessData->HandleTable[i].Inheritable = Inheritable;
- *Handle = (HANDLE)((i << 2) | 0x3);
- _InterlockedIncrement( &Object->ReferenceCount );
- RtlLeaveCriticalSection(&ProcessData->HandleTableLock);
- return(STATUS_SUCCESS);
->>>>>>> .merge-rechts.r40086
}
NTSTATUS
@@ -278,11 +240,7 @@
PCSRSS_PROCESS_DATA ProcessData,
HANDLE Handle)
{
-<<<<<<< .working
ULONG_PTR h = (ULONG_PTR)Handle >> 2;
-=======
- ULONG h = (ULONG)Handle >> 2;
->>>>>>> .merge-rechts.r40086
if (h >= ProcessData->HandleTableSize ||
ProcessData->HandleTable[h].Object == NULL)