Commit graph

31825 commits

Author SHA1 Message Date
James Tabor 0868fdb45d - Fixed CallNextHookEx, now we do make the callback. Q, how to reload it at the end of the list? Fix for bug 3549.
- Tested with Opera 9.51(still breaks when getting the page see bug 3465), FF, Seamonkey, Abiword, and the rest of our applications.

svn path=/trunk/; revision=34691
2008-07-22 23:46:31 +00:00
Art Yerkes e115c9270c Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
Fixed my mistake leaving TCPConnect on a failure path without releasing the
TCP lock.

svn path=/trunk/; revision=34690
2008-07-22 23:11:46 +00:00
Matthias Kupfer 6e39ab797b revert on request, problem remains
svn path=/trunk/; revision=34689
2008-07-22 20:16:12 +00:00
Matthias Kupfer 82765169f6 it's mean to move main window with focus in front of a modal dialog
svn path=/trunk/; revision=34688
2008-07-22 18:51:09 +00:00
Jeffrey Morlan 0cc9f32797 - Implement access masks and optional inheritability for console handles. Currently, only CsrDuplicateHandle actually checks the access mask.
- CreateFileW: Pass CONIN$/CONOUT$ opens to OpenConsoleW.
- DuplicateConsoleHandle: Remove ProcessId from request structure, since console handles can only be duplicated in the calling process.
                          Don't check low bits of handle (Windows ignores them), but do check options and (if DUPLICATE_SAME_ACCESS is not specified) access mode. 
- OpenConsoleW: Make wsName parameter const; allow any combination of GENERIC_READ and GENERIC_WRITE, don't require both.
- CreateConsoleScreenBuffer: Add parameter checks; return INVALID_HANDLE_VALUE (not FALSE) on failure.
- Remove remnants of unnecessary handle in Get/SetConsoleTitle.
- CsrDuplicateHandle: Implement DUPLICATE_CLOSE_SOURCE and DUPLICATE_SAME_ACCESS options.

svn path=/trunk/; revision=34685
2008-07-22 17:37:13 +00:00
Art Yerkes b026106358 Reenable kdbg specific settings.
svn path=/trunk/; revision=34683
2008-07-22 13:12:14 +00:00
Art Yerkes 5c108dbe7d Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
- Fix a few issues in the cancel routine
- Don't wait on an event we haven't set
- Don't mark the IRP pending when in DispPrepareIrpForCancel

svn path=/trunk/; revision=34682
2008-07-22 12:53:25 +00:00
Aleksey Bragin b10a7debe3 - PFN_DrvMovePanning type is not part of DDK/WDK's winddi.h, so it shouldn't have been added to ReactOS DDK as well. Move it to ntgdityp.h.
svn path=/trunk/; revision=34679
2008-07-22 11:24:56 +00:00
Johannes Anderwald c18f0a3fb9 - fix multiple bugs in mydocuments shellfolder:
- zero initialize buffer
- check return value of SHGetSpecialFolderPathW
- zeroize buffer in ISF_MyDocuments_fnGetDisplayNameOf


svn path=/trunk/; revision=34678
2008-07-22 11:20:01 +00:00
Aleksey Bragin 70b9b15c69 - Set eol-style to native.
svn path=/trunk/; revision=34676
2008-07-22 10:35:49 +00:00
ReactOS Portable Systems Group e0f2814f6b - Build and add ntdll for ARM.
- We now correctly mount the boot partition, scan for system drivers (none yet), and attempt loading ntdll.
- This actually works --  meaning the RAMdisk driver is working perfectly with vfatfs.sys and providing a virtual drive.
- We crash during mapping ntdll.dll due to some Mm issues we need to work out.
- Yes, we're almost at user-mode.

svn path=/trunk/; revision=34675
2008-07-22 10:00:04 +00:00
ReactOS Portable Systems Group 148fbeb8b3 - Forgot to merge these changes in as well -- they relate to the LARGE_INTEGER changes in the ramdisk header file.
svn path=/trunk/; revision=34674
2008-07-22 09:57:36 +00:00
ReactOS Portable Systems Group 4819929961 - Add arm subdirectory with stubs for functions that we'll need to implement later.
svn path=/trunk/; revision=34673
2008-07-22 09:55:38 +00:00
ReactOS Portable Systems Group 49deb2850d - Make exports per-architecture.
- Remove x86-only libc exports from ARM version of NTDLL.


svn path=/trunk/; revision=34672
2008-07-22 09:54:52 +00:00
ReactOS Portable Systems Group 3949f16431 - Remove dependency on GCC-specific extension: the kernel sets the base address of NTDLL as the first argument of the user APC.
svn path=/trunk/; revision=34671
2008-07-22 09:52:44 +00:00
ReactOS Portable Systems Group f648851cfa - Remove obsolete header.
svn path=/trunk/; revision=34670
2008-07-22 09:52:11 +00:00
Christoph von Wittich 23452e24a7 use the address of the value, not the value itself
patch by Gregor Schneider <grschneider at gmail.com>
See issue #3547 for more details.

svn path=/trunk/; revision=34669
2008-07-22 09:38:03 +00:00
ReactOS Portable Systems Group d69ea33500 - Don't re-map the MDL if it's already been built from non-paged pool.
- Hackforce the partition type for disk ramdisks to be FAT32 for now.


svn path=/trunk/; revision=34668
2008-07-22 09:32:02 +00:00
ReactOS Portable Systems Group 4cdbf59086 - We need to call MmMarkPageMapped for virtual mappings, except for those created thgouh MmCreateVirtualMappingForKernel (even though the other versions of the call can still do kernel mappings).
- Refactored the virtual mapping function to support this. MmUnmapIoSpace now works properly.

svn path=/trunk/; revision=34667
2008-07-22 09:31:13 +00:00
ReactOS Portable Systems Group 6c50287599 - Initialize BytesPerSector, SectorsPerTrack and NumberOfHeads to zero.
- Calculate number of cylinders too now.
- Save number of hidden sectors as well.
- Implement support for IOCTL_DISK_GET_PARTITION_INFO (RamdiskGetPartitionInfo).
- Implement support for IOCTL_DISK_GET_DRIVE_GEOMETRY (shared with IOCTL_CDROM_GET_GEOMETRY, IOCTL_STORAGE_GET_MEDIA_TYPES and IOCTL_DISK_GET_MEDIA_TYPES)
- DiskLength should be a LARGE_INTEGER.
- DiskOffset should be signed.


svn path=/trunk/; revision=34666
2008-07-22 08:52:18 +00:00
ReactOS Portable Systems Group c61f672499 - We have to unpack the BIOS block before actually reading it.
- Now we correctly read 512 bytes per sector instead of 0.
- We are almost there!


svn path=/trunk/; revision=34665
2008-07-22 07:12:05 +00:00
ReactOS Portable Systems Group 0e52616f5f - Implement MmRawDeleteVirtualMapping.
- RamdiskUnmapPages works now.


svn path=/trunk/; revision=34664
2008-07-22 07:11:33 +00:00
ReactOS Portable Systems Group 1f497aae89 - Jesus, Fix yet another math bug in RamdiskMapPages (we were lucky not to hit it, that's all).
- Implement RamdiskUnmapPages.
- Need to implement MmRawDeleteVirtualMapping to make this last step work.


svn path=/trunk/; revision=34663
2008-07-22 06:54:25 +00:00
ReactOS Portable Systems Group 7fdb4518b7 - Epic Fail? Fix another math bug...it actually works now!
- Fix another wrong debug print.


svn path=/trunk/; revision=34662
2008-07-22 06:46:09 +00:00
ReactOS Portable Systems Group 22a37283cc - Double fail: Fix a math bug, calculate the actual offset in the mapping and return it, and don't forget to return the total length read too.
svn path=/trunk/; revision=34661
2008-07-22 06:40:00 +00:00
ReactOS Portable Systems Group 04dfc992a1 - Fail: was using the wrong structure (the boot sector is a BOOT_SECTOR which contains the BIOS Parameter Block, not a BPB directly).
- Fix wrong debug print too.

svn path=/trunk/; revision=34660
2008-07-22 06:31:31 +00:00
ReactOS Portable Systems Group d543929a55 - Save base page where loader mapped the ramdisk.
- Try to implement RamdiskMapPages for boot disks as it seems we're calling them now...
- The math works and the I/O mapping too, but I'm not sure we're reading correct data, so still left this unimplemented for now.


svn path=/trunk/; revision=34659
2008-07-22 06:21:11 +00:00
ReactOS Portable Systems Group 4d7d1dfc95 - Easy there cowboy, just because you can write good code doesn't mean you shouldn't even try building it.
- Fix x86 build failure, good thing everyone is probably asleep.

svn path=/trunk/; revision=34658
2008-07-22 06:04:06 +00:00
ReactOS Portable Systems Group 2b398fba13 - Um, yeah, the "DiskType" is CLEARLY not an NT FILE_DEVICE_ constant... this makes no sense at all.
- Defined some proper constants (somewhat based on guesses, but should be mostly correct) for the DiskType.
- Now the code actually makes sense, instead of talking about CD-ROM File Systems and CD-ROMs everywhere (and Controllers and...floppies?!)


svn path=/trunk/; revision=34657
2008-07-22 05:49:52 +00:00
ReactOS Portable Systems Group afdc43c7b2 - Not only did r34637 break the ARM build, it also doesn't make sense on x86 (or other) builds, because it assumes invalid data layout. For example, on x64 builds, the code would read random data.
- In the future, please refer to other code which loops the current processors and gets their KPRCB before attempting a half-assed implementation. KiProcessorBlock should be used.


svn path=/trunk/; revision=34656
2008-07-22 05:37:01 +00:00
ReactOS Portable Systems Group c6a3ef9f7e - Build vfatfs instead of CDFS.
- Load vfatfs instead of CDFS.
- Implement code in the ramdisk driver to handle both ISO and FAT ramdisks. Don't know what the big deal with support ISO ramdisks was supposed to be, when our ramdisk is FAT, and dealing with FAT is a lot easier than CDFS (no TOC emulation and other rubbish that was added).


svn path=/trunk/; revision=34655
2008-07-22 05:31:24 +00:00
ReactOS Portable Systems Group 4f81cc1111 - Forgot to commit this with the last update -- this adds the PreviousTrapFrame member to the ARM _KTRAP_FRAME structure.
svn path=/trunk/; revision=34654
2008-07-22 05:28:14 +00:00
James Tabor 4f11e10d3d - Rewrite HOOKs, Implement CallNextHookEx and fix prototype for NtUserCallNextHookEx. Move hook structure to ntuser.h for user verifying.
- Tested with FF, Seamonkey, Abiword, and the rest of our applications.

svn path=/trunk/; revision=34653
2008-07-22 04:54:53 +00:00
Jeffrey Morlan c688052ea5 - Make console handles start at 3, not 7.
- Make CsrGetObject increment the ref count to prevent objects from being deleted while in use. Add CsrReleaseObjectByPointer calls where necessary.

svn path=/trunk/; revision=34652
2008-07-22 00:33:42 +00:00
Timo Kreuzer ff907c5360 implement HackSecureVirtualMemory as a possible workaround for missing MmSecureVirtualMemory
svn path=/trunk/; revision=34651
2008-07-21 23:56:26 +00:00
Timo Kreuzer 27afd30041 fix READ_PORT_xxx macros
svn path=/trunk/; revision=34650
2008-07-21 21:53:38 +00:00
Timo Kreuzer 533f66b5f7 fix prototypes of _beginthread and _beginthreadex
svn path=/trunk/; revision=34649
2008-07-21 21:46:24 +00:00
Jeffrey Morlan 4e1f4eaa28 MmReleasePageMemoryConsumer: When giving the page directly to a pending allocation request, zero it first. (Bug 3543)
svn path=/trunk/; revision=34647
2008-07-21 21:30:41 +00:00
Ged Murphy 03764ecabe - Fix NeedCurrentDirectoryForExePath. Based on Wine code
- Passes all kernel32:path winetests

svn path=/trunk/; revision=34644
2008-07-21 19:54:50 +00:00
Matthias Kupfer aefde24020 - Add selectable spanish and italian keyboard layout to default language.
- This fix is temporarily until GUI 1st stage setup replaces usetup.
- See issue #3313 for more details.

svn path=/trunk/; revision=34642
2008-07-21 19:17:45 +00:00
Ged Murphy 373bd4b1da Fix Rva handling code
svn path=/trunk/; revision=34641
2008-07-21 17:50:27 +00:00
ReactOS Portable Systems Group 1738564a77 - Improve system call handler by adding more debugging checks to be used later.
- Optimize and simplify trap handling by using a common exit just like on x86's Kei386EoiHelper - KiExceptionExit. This way the code isn't duplicated 6 times.
- Do the same for system calls (KiServiceExit).
- Save the previous trap frame and restore it during each system call.


svn path=/trunk/; revision=34640
2008-07-21 15:55:58 +00:00
Matthias Kupfer 3f38468f23 avoid flicker when registering components
svn path=/trunk/; revision=34638
2008-07-21 15:52:52 +00:00
Aleksey Bragin e9973c3d3a - Pass thread's CreateTime in QSI SystemProcessInformation.
- Better implementation of QSI SystemInterruptInformation.
- Minor cleanup.

svn path=/trunk/; revision=34637
2008-07-21 12:45:12 +00:00
Timo Kreuzer 7ac61f4d05 use %p in sprintf instead of %x / cast to int
svn path=/trunk/; revision=34636
2008-07-21 12:15:36 +00:00
Aleksey Bragin 4e663a7c28 - Include a "System Idle Process" as the first item in QSI SystemProcessInformation.
svn path=/trunk/; revision=34635
2008-07-21 12:14:23 +00:00
Ged Murphy ee13626507 - fix the length of the dependencies string
- spotted by bugboy <martinmnet at hotmail dot com>

svn path=/trunk/; revision=34634
2008-07-21 11:43:55 +00:00
Matthias Kupfer 9bd87564c8 add language group for japanese keyboard layout
svn path=/trunk/; revision=34633
2008-07-21 10:55:33 +00:00
Matthias Kupfer c2e433cadf - enable japanese keyboard layout in 1st stage setup (but 2nd stage doesn't but yet)
- select Swiss keyboard layout for Liechtenstein as default

svn path=/trunk/; revision=34632
2008-07-21 10:44:18 +00:00
Aleksey Bragin 7a158b7f2d Yuriy Sidorov <jura@cp-lab.com>
- Invalid parameter error is returned if requested memory area is located above USER_SHARED_DATA address (0x7FFE0000) (WinXP compatible).
- Access violation error is returned if existing memory area found on requested address and this area have uninitialized region list.
See issue #3467 for more details.

svn path=/trunk/; revision=34630
2008-07-21 09:40:12 +00:00