Commit graph

3855 commits

Author SHA1 Message Date
Hartmut Birr
cb7fd6d214 * Fixed the searching for the file extension in CreateProcessW.
svn path=/trunk/; revision=3709
2002-11-05 20:54:10 +00:00
Hartmut Birr
811a27af00 * Fixed a wrong pointer initialization in RtlClearBits.
svn path=/trunk/; revision=3708
2002-11-05 20:52:38 +00:00
Hartmut Birr
3ec57dfda5 * Check for symbolic-links in ObFindObject.
svn path=/trunk/; revision=3707
2002-11-05 20:51:23 +00:00
Hartmut Birr
95b7092276 * Use the cache for images where the section offset is not page
alligned in MiReadPage.
* Removed a wrong call to MmReferencePage in MmPageOutSectionView.
* Fixed the length in MmAlterViewAttributes.
* Wait for releasing of the pageop in MmFreeSectionPage.
* Fixed some wrong return values in MmMapViewOfSection.

svn path=/trunk/; revision=3706
2002-11-05 20:50:02 +00:00
Hartmut Birr
9c17318aff * Used tagged memory for rmap entries.
svn path=/trunk/; revision=3705
2002-11-05 20:48:08 +00:00
Hartmut Birr
e4be6a3090 * Fixed the used and free block calculation.
* Allocate all blocks dword alligned and all big blocks (>=4K) page alligned.

svn path=/trunk/; revision=3704
2002-11-05 20:47:05 +00:00
Hartmut Birr
ffadffc82b * Fixed the allocation length for the mdl bitmap.
* Changed the bit allocation functions to RtlXxxBitMapYyy.
* Fixed the calculation of the starting point for free bitmap entries.

svn path=/trunk/; revision=3703
2002-11-05 20:45:09 +00:00
Hartmut Birr
ef586c33c1 * Fixed the calculation of the gap in MmFindGap.
* Serach for page alligned blocks in MmCreateMemorArea.

svn path=/trunk/; revision=3702
2002-11-05 20:43:35 +00:00
Hartmut Birr
4fcb4176f8 * Delete the virtual mapping first before the the mapped range
is freed in MmFreeNonPagedPoolRegion.
* Adujust AllocMapHint only if the reserved block starts at AllocMapHint.
* Changed the bit allocation functions to RtlXxxBitMapYyy.

svn path=/trunk/; revision=3701
2002-11-05 20:41:17 +00:00
Hartmut Birr
3d3d96c5d6 * Call KeBugcheck in MmDeletePageTable/MmFreePageTable if the
address points to the kernel address space.
* Check if an other process has inserted a kernel page directory
  entry while waiting for a page (MmGetPageEntry/MmGetPageEntry2).
* Check the kernel page directory only for an entry if the
  address points to the kernel address space (MmGetPageEntry1/2,
  MmDeleteVirtualMapping and MmDeletePageFileMapping).
* Disabled MmEnableVirtualMapping/MmDisableVirtualMapping.
  There is no difference between an entry with disabled mapping and
  a swap entry.

svn path=/trunk/; revision=3700
2002-11-05 20:39:03 +00:00
Hartmut Birr
a4b5d8a978 * Locking the address space before accessing it.
* Fixed some length calculations.

svn path=/trunk/; revision=3699
2002-11-05 20:35:33 +00:00
Hartmut Birr
4096437ab3 * Disabled all calls to MmEnableVirtualMapping/MmDisableVirtualMapping,
there is no difference for the page entry between a
  disabled mapping and a swap entry.

svn path=/trunk/; revision=3698
2002-11-05 20:31:34 +00:00
Hartmut Birr
fb46b3c16a * Fixed the buffer allocation in NtAccecptConnectedPort.
svn path=/trunk/; revision=3697
2002-11-05 20:27:56 +00:00
Hartmut Birr
39537ca751 * Setting the DeviceObject and Vbp for given FileObject to zero
if the open operation fails. The close and cleanup call must
  not route throught the FSD if the open call failed.
* Wait for the completion from FSD after the close/cleanup call.

svn path=/trunk/; revision=3696
2002-11-05 20:24:33 +00:00
Casper Hornstrup
1d57b8f66d 2002-11-03 Casper S. Hornstrup <chorns@users.sourceforge.net>
* apps/tests/lpc/lpcclt.c: Change LPC_MESSAGE_HEADER to LPC_MESSAGE.
	* include/csrss/csrss.h: Ditto.
	* include/lsass/lsass.h: Ditto.
	* include/napi/dbg.h: Ditto.
	* include/napi/lpc.h: Ditto.
	* lib/kernel32/misc/console.c: Ditto.
	* lib/ntdll/csr/lpc.c: Ditto.
	* lib/ntdll/dbg/debug.c: Ditto.
	* lib/secur32/lsa.c: Ditto.
	* ntoskrnl/dbg/user.c: Ditto.
	* ntoskrnl/include/internal/port.h: Ditto.
	* ntoskrnl/lpc/connect.c: Ditto.
	* ntoskrnl/lpc/reply.c: Ditto.
	* ntoskrnl/ps/process.c: Ditto.
	* subsys/csrss/api/conio.c: Ditto.
	* subsys/csrss/api/process.c: Ditto.
	* subsys/csrss/api/user.c: Ditto.

svn path=/trunk/; revision=3692
2002-11-03 20:01:07 +00:00
Eric Kohl
614f689b29 Display drive letters in partition list.
svn path=/trunk/; revision=3691
2002-11-02 23:17:06 +00:00
Robert Dickenson
d6d5e1af3d Update for VALENTA and VALENTW type changes.
Change HANDLE to HKEY throughout.
Bugfix and memory leak fixed.

svn path=/trunk/; revision=3690
2002-11-02 13:55:06 +00:00
Robert Dickenson
781e188154 Created typedefs for VALENTA and VALENTW, deprecated common VALENT type.
svn path=/trunk/; revision=3689
2002-11-02 13:50:45 +00:00
David Welch
cb8ac201ad Don't crash when a mouse message doesn't fall inside a window.
svn path=/trunk/; revision=3687
2002-11-01 11:29:58 +00:00
David Welch
6072415050 Fixed race condition between psaux ISR and DPC.
svn path=/trunk/; revision=3686
2002-10-31 23:48:06 +00:00
Jason Filby
58aee3a2d8 Version 0.0.21
svn path=/trunk/; revision=3684
2002-10-31 17:50:55 +00:00
Hartmut Birr
b8114825ec Merged all exec* and spawn* functions in one source file.
svn path=/trunk/; revision=3683
2002-10-31 07:29:07 +00:00
Hartmut Birr
9b875ab82c Merged all exec* and spawn* functions in one source file.
Reduced some overhead.

svn path=/trunk/; revision=3682
2002-10-31 07:26:08 +00:00
Eric Kohl
ad6fb31ad3 Fixed warnings.
svn path=/trunk/; revision=3681
2002-10-31 01:50:00 +00:00
Eric Kohl
5294570a8d Fixed minor linker warning for native apps.
Only link against default libraries if TARGET_SDKLIBS is not set.

svn path=/trunk/; revision=3680
2002-10-31 00:48:27 +00:00
David Welch
ae67380311 Implemented mouse messages.
svn path=/trunk/; revision=3679
2002-10-31 00:03:31 +00:00
David Welch
5672a8cbc6 Removed surplus debug messages.
svn path=/trunk/; revision=3678
2002-10-31 00:02:01 +00:00
Brian Palmer
39204fdedc Fix for MS's idiocy on a Win98 boot disk I have.
Apparently they use ESP without initializing anything more than SP.

svn path=/trunk/; revision=3677
2002-10-30 23:05:17 +00:00
Eric Kohl
8cfdeb8c6b Fixed wrong r/o protection of excessive pages. Spotted by Jan Kratochvil.
svn path=/trunk/; revision=3676
2002-10-30 19:53:20 +00:00
Eric Kohl
92bb09bd8d Various improvements and hardcoded directory creation.
svn path=/trunk/; revision=3675
2002-10-29 18:40:02 +00:00
Rex Jolliff
385fdfdfeb revert of mass delete of the posix subsystem. perhaps there is hope for it yet.
svn path=/trunk/; revision=3674
2002-10-29 04:45:58 +00:00
Marty Dill
c29a543da5 Added stub for IsProcessorFeaturePresent() to stop LdrGetProcedureAddress from complaining.
svn path=/trunk/; revision=3673
2002-10-29 04:05:26 +00:00
Marty Dill
da8792228d Implemented PeekConsoleInputA().
svn path=/trunk/; revision=3672
2002-10-29 03:49:32 +00:00
Robert Dickenson
644b07f2e1 RtlOpenCurrentUser() freed a string a little to early in some circumstances - fixed.
svn path=/trunk/; revision=3671
2002-10-28 15:50:25 +00:00
Robert Dickenson
a650557ee6 Fixed up some typos.
svn path=/trunk/; revision=3670
2002-10-28 15:45:56 +00:00
Robert Dickenson
f0cbb2db03 Found the problem, local copy of win32k.c required here but not in repository?
svn path=/trunk/; revision=3669
2002-10-28 15:27:01 +00:00
Robert Dickenson
e6e5a8a75e Reverted addition of target win32k.a in the SDK import libs.
svn path=/trunk/; revision=3668
2002-10-28 15:20:37 +00:00
Robert Dickenson
859479e295 Revert one of the makefile changes.
Linking with TARGET_SDKLIBS = win32k.a proved to be a very bad idea!
Something is wrong with building csrss, what happened to subsys/csrss/win32k.c ???

svn path=/trunk/; revision=3667
2002-10-28 15:19:09 +00:00
Robert Dickenson
01637f8e7f Check for GMEM_ZEROINIT flag and pass HEAP_ZERO_MEMORY flag to RtlAllocateHeap if required.
svn path=/trunk/; revision=3666
2002-10-28 15:08:32 +00:00
Robert Dickenson
58d86a321d Added rule to build win32k.a for linking by csrss.
This is already in dk/nkm however there doesn't seem to be a make macro to reference this?

svn path=/trunk/; revision=3665
2002-10-28 15:04:58 +00:00
Robert Dickenson
fbbe455d39 Added some exports required by csrss to get things building again.
svn path=/trunk/; revision=3664
2002-10-28 15:03:18 +00:00
Robert Dickenson
4c028e84ab Updated with fix for missing win32k.lib imports
svn path=/trunk/; revision=3663
2002-10-28 15:02:18 +00:00
Robert Dickenson
572227dc48 Starting something for VDM support.
svn path=/trunk/; revision=3662
2002-10-28 13:59:59 +00:00
Robert Dickenson
821199a87a Removed files that don't belong in the repository.
svn path=/trunk/; revision=3661
2002-10-28 12:10:23 +00:00
David Welch
31c69eaf8a dos2unix'd some more files.
svn path=/trunk/; revision=3660
2002-10-26 09:53:16 +00:00
Casper Hornstrup
9bbe34eb81 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* lib/msvcrt/except/seh.s: Fix end-of-line formatting.
	* lib/ntdll/rtl/i386/exception.c: Ditto.
	* lib/ntdll/rtl/i386/except.s: Ditto.
	* ntoskrnl/rtl/i386/except.s: Ditto.
	* ntoskrnl/rtl/i386/seh.s: Ditto.

svn path=/trunk/; revision=3659
2002-10-26 07:32:08 +00:00
Casper Hornstrup
b824c3ef39 *** empty log message ***
svn path=/trunk/; revision=3658
2002-10-26 00:38:01 +00:00
Casper Hornstrup
a1e055e943 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* lib/msvcrt/Makefile (OBJECTS_EXCEPT): Add except/seh.o; Remove
	except/exhand3.o.
	* lib/msvcrt/except/exhand2.c (MsvcrtDebug): New function.
	* lib/msvcrt/except/unwind.c (PEXCEPTION_FRAME): Remove.
	(_global_unwind2): Correct prototype.
	* lib/ntdll/makefile (RTL_I386_OBJECTS, ARCH_OBJECTS): New groups.
	(TARGET_OBJECTS): Add ARCH_OBJECTS group.
	* lib/ntdll/rtl/exception.c (KiUserExceptionDispatcher): Set
	NumberParameters in exception record.
	(RtlRaiseStatus): Remove.
	* ntoskrnl/Makefile (OBJECTS_RTL): Remove rtl/seh.o.
	(OBJECTS_RTL_I386): Add rtl/i386/except.o, rtl/i386/exception.o, and
	rtl/i386/seh.o.
	* ntoskrnl/ke/catch.c (RtlpExecuteHandlerForException,
	RtlpDumpExceptionRegistrations, RtlpDispatchException,
	RtlpExecuteHandler, RtlpExceptionHandler, RtlpUnwindHandler,
	RtlpExecuteHandlerForException, RtlpExecuteHandlerForUnwind,
	RtlUnwind): Remove.
	(RtlpDispatchException): Add prototype.
	* ntoskrnl/ke/i386/usertrap.c (ExceptionTypeStrings): Remove.
	* ntoskrnl/ps/create.c (PsCreateTeb): Mark end of exception
	registration list.
	* tools/helper.mk (TARGET_ASFLAGS): Add -g if DBG = 1.
	* lib/msvcrt/except/exhand3.c: Remove.
	* ntoskrnl/rtl/seh.c: Ditto.
	* lib/msvcrt/except/seh.s: New file.
	* lib/ntdll/rtl/i386/except.s: Ditto.
	* lib/ntdll/rtl/i386/exception.c: Ditto.
	* ntoskrnl/rtl/i386/except.s: Ditto.
	* ntoskrnl/rtl/i386/exception.c: Ditto.
	* ntoskrnl/rtl/i386/seh.s: Ditto.

svn path=/trunk/; revision=3657
2002-10-26 00:32:19 +00:00
Casper Hornstrup
5437114eaa 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* lib/kernel32/process/create.c (_except_handler): New function.
	(BaseProcessStart): Ditto.
	(KlCreateFirstThread): Return INVALID_HANDLE_VALUE on error; Call
	BaseProcessStart() before process entry point.
	* lib/kernel32/thread/thread.c (_except_handler): New function.
	(ThreadStartup): Protect thread using SEH constructs.

svn path=/trunk/; revision=3656
2002-10-25 22:59:55 +00:00
Casper Hornstrup
9e54d1d8d3 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/ddk/zw.h (NtProcessStartup): Use standard calling convention.
	* subsys/csrss/csrss.c (NtProcessStartup): Ditto.
	* subsys/smss/smss.c (NtProcessStartup): Ditto.
	* subsys/system/autochk/autochk.c (NtProcessStartup): Ditto.
	* subsys/system/usetup/usetup.c (NtProcessStartup): Ditto.

svn path=/trunk/; revision=3655
2002-10-25 22:08:21 +00:00