mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Bug fixes
svn path=/trunk/; revision=1721
This commit is contained in:
parent
7a86200cdc
commit
591d955230
7 changed files with 49 additions and 8 deletions
|
@ -56,7 +56,7 @@ NET_DEVICE_DRIVERS = ne2000
|
||||||
SYS_APPS = shell winlogon services
|
SYS_APPS = shell winlogon services
|
||||||
|
|
||||||
APPS = args hello test cat bench apc shm lpc thread event file gditest \
|
APPS = args hello test cat bench apc shm lpc thread event file gditest \
|
||||||
pteb consume dump_shared_data vmtest regtest
|
pteb consume dump_shared_data vmtest regtest alive
|
||||||
|
|
||||||
# objdir
|
# objdir
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ cp lib/crtdll/crtdll.dll $1/reactos/system32
|
||||||
cp lib/fmifs/fmifs.dll $1/reactos/system32
|
cp lib/fmifs/fmifs.dll $1/reactos/system32
|
||||||
cp lib/gdi32/gdi32.dll $1/reactos/system32
|
cp lib/gdi32/gdi32.dll $1/reactos/system32
|
||||||
cp lib/advapi32/advapi32.dll $1/reactos/system32
|
cp lib/advapi32/advapi32.dll $1/reactos/system32
|
||||||
|
cp lib/user32/user32.dll $1/reactos/system32/
|
||||||
cp apps/hello/hello.exe $1/reactos/bin
|
cp apps/hello/hello.exe $1/reactos/bin
|
||||||
cp apps/args/args.exe $1/reactos/bin
|
cp apps/args/args.exe $1/reactos/bin
|
||||||
cp apps/bench/bench-thread.exe $1/reactos/bin
|
cp apps/bench/bench-thread.exe $1/reactos/bin
|
||||||
|
|
|
@ -106,5 +106,12 @@ VOID ObCloseAllHandles(struct _EPROCESS* Process);
|
||||||
VOID ObDeleteHandleTable(struct _EPROCESS* Process);
|
VOID ObDeleteHandleTable(struct _EPROCESS* Process);
|
||||||
PVOID ObDeleteHandle(struct _EPROCESS* Process,
|
PVOID ObDeleteHandle(struct _EPROCESS* Process,
|
||||||
HANDLE Handle);
|
HANDLE Handle);
|
||||||
|
NTSTATUS STDCALL
|
||||||
|
ObInsertObject(PVOID Object,
|
||||||
|
PACCESS_STATE PassedAccessState,
|
||||||
|
ACCESS_MASK DesiredAccess,
|
||||||
|
ULONG AdditionalReferences,
|
||||||
|
PVOID* ReferencedObject,
|
||||||
|
PHANDLE Handle);
|
||||||
|
|
||||||
#endif /* __INCLUDE_INTERNAL_OBJMGR_H */
|
#endif /* __INCLUDE_INTERNAL_OBJMGR_H */
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: catch.c,v 1.13 2001/03/18 19:35:12 dwelch Exp $
|
/* $Id: catch.c,v 1.14 2001/03/20 16:09:44 dwelch Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: ntoskrnl/ke/catch.c
|
* FILE: ntoskrnl/ke/catch.c
|
||||||
|
@ -46,7 +46,7 @@ KiDispatchException(PEXCEPTION_RECORD Er,
|
||||||
|
|
||||||
/* PCR->KeExceptionDispatchCount++; */
|
/* PCR->KeExceptionDispatchCount++; */
|
||||||
|
|
||||||
if (Context != NULL)
|
if (Context == NULL)
|
||||||
{
|
{
|
||||||
TContext.ContextFlags = CONTEXT_FULL;
|
TContext.ContextFlags = CONTEXT_FULL;
|
||||||
if (PreviousMode == UserMode)
|
if (PreviousMode == UserMode)
|
||||||
|
|
|
@ -556,7 +556,7 @@ MmAllocPage(SWAPENTRY SavedSwapEntry)
|
||||||
KeAcquireSpinLock(&PageListLock, &oldIrql);
|
KeAcquireSpinLock(&PageListLock, &oldIrql);
|
||||||
if (IsListEmpty(&FreePageListHead))
|
if (IsListEmpty(&FreePageListHead))
|
||||||
{
|
{
|
||||||
DPRINT("MmAllocPage(): Out of memory\n");
|
DPRINT1("MmAllocPage(): Out of memory\n");
|
||||||
KeReleaseSpinLock(&PageListLock, oldIrql);
|
KeReleaseSpinLock(&PageListLock, oldIrql);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,22 @@
|
||||||
/* $Id: handle.c,v 1.29 2001/03/07 16:48:45 dwelch Exp $
|
/*
|
||||||
|
* ReactOS kernel
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: handle.c,v 1.30 2001/03/20 16:09:44 dwelch Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -613,5 +631,20 @@ NTSTATUS STDCALL NtClose(HANDLE Handle)
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS STDCALL
|
||||||
|
ObInsertObject(PVOID Object,
|
||||||
|
PACCESS_STATE PassedAccessState,
|
||||||
|
ACCESS_MASK DesiredAccess,
|
||||||
|
ULONG AdditionalReferences,
|
||||||
|
PVOID* ReferencedObject,
|
||||||
|
PHANDLE Handle)
|
||||||
|
{
|
||||||
|
return(ObCreateHandle(PsGetCurrentProcess(),
|
||||||
|
Object,
|
||||||
|
DesiredAccess,
|
||||||
|
FALSE,
|
||||||
|
Handle));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: process.c,v 1.11 2001/01/21 00:11:54 phreak Exp $
|
/* $Id: process.c,v 1.12 2001/03/20 16:09:44 dwelch Exp $
|
||||||
*
|
*
|
||||||
* reactos/subsys/csrss/api/process.c
|
* reactos/subsys/csrss/api/process.c
|
||||||
*
|
*
|
||||||
|
@ -68,11 +68,11 @@ PCSRSS_PROCESS_DATA CsrGetProcessData(ULONG ProcessId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// DbgPrint("CSR: CsrGetProcessData() failed\n");
|
// DbgPrint("CSR: CsrGetProcessData() failed\n");
|
||||||
RtlLeaveCriticalSection( &ProcessDataLock );
|
RtlLeaveCriticalSection(&ProcessDataLock);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS CsrFreeProcessData( ULONG Pid )
|
NTSTATUS CsrFreeProcessData(ULONG Pid)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
RtlEnterCriticalSection( &ProcessDataLock );
|
RtlEnterCriticalSection( &ProcessDataLock );
|
||||||
|
|
Loading…
Reference in a new issue