Commit graph

39021 commits

Author SHA1 Message Date
Matthias Kupfer
d358de8a0f temporarily workaround for swap mouse buttons feature
svn path=/trunk/; revision=43292
2009-10-04 20:45:51 +00:00
Stefan Ginsberg
1c3808ef76 - Add STATUS_ASSERTION_FAILURE status code required for NT_ASSERT.
- Check KdReceivePacket return for KdPacketReceived instead of 0 for correctness.
- Use KdpDprintf instead of setting CR2 for unhandled cases.
- Add more variables to KdDebuggerDataBlock.

svn path=/trunk/; revision=43291
2009-10-04 20:19:43 +00:00
Johannes Anderwald
8d668541e1 - Return correct status code
svn path=/trunk/; revision=43290
2009-10-04 20:14:09 +00:00
Johannes Anderwald
87d50197d2 - Implement Un-Muting of audio lines
- TBD: SEH probing

svn path=/trunk/; revision=43289
2009-10-04 19:45:16 +00:00
Matthias Kupfer
374363363d - remove double entry in inf
- load mouse settings
- TODO: mouse settings doesn't work properly, but read and set works

svn path=/trunk/; revision=43288
2009-10-04 19:28:52 +00:00
Cameron Gutman
6f249378c9 - Don't add the media-specific header until right before transmission
- Previously we would store the largest media-specific header size and add that value when creating a packet
 - Makes loopback packets smaller because they have no need for a media-specific header
 - Would fix packet corruption if interfaces with different media-specific headers were installed (if we supported that)
 - Makes adding support for other media types easier

svn path=/trunk/; revision=43287
2009-10-04 19:23:53 +00:00
Dmitry Gorbachev
698c0e253d Update Spanish translations. Javier Remacha, bug #4872.
svn path=/trunk/; revision=43286
2009-10-04 18:12:14 +00:00
Johannes Anderwald
f04d450f1f - Don't call ExFreePool for null pointers
svn path=/trunk/; revision=43285
2009-10-04 17:39:26 +00:00
Benedikt Freisen
3c4ec53672 corrected magnifying glass cursor
svn path=/trunk/; revision=43284
2009-10-04 17:25:55 +00:00
Stefan Ginsberg
3c5b2d9a61 Mega KD64 revival patch:
KD64
- Fix some 64-bit issues and some x86 specificness.
- Sub out some KdpTrap cases more properly.
- Implement support for .crash and .reboot. Does not seem to work currently because of weird issues.
- Implement KdpDprintf to send strings directly to the debugger from inside of KD64. Use it in KdEnterDebugger instead of DbgPrint so we won't try to enter the debugger recursively.
- Implement KdUpdateDataBlock to set the KeUserCallbackDispatcher pointer in the debugger block after its address is retrieved from ntdll.
- Don't assume breakpoints are 1 byte long in portable code -- use KD_BREAKPOINT_SIZE and define it per architecture.
- KdpStub: KdEnableDebugger returns NTSTATUS, not TRUE/FALSE.

Other
- wdbgexts.h: Properly define CURRENT_KD_SECONDARY_VERSION for AMD64.
- Make PsNtosImageBase pointer-sized as it should be.
- Change the definition of KDSTATUS so it is guaranteed to be 32-bit.
- Fix a critical bug in KiRestoreProcessorControlState: it didn't clear the busy flag in the TSS before reloading the task register, resulting in a GPF if we tried to reload the same register.
- Add macros for getting and setting special purpose registers (the Program Counter and the "return register") in portable code instead of using #ifdef every time. Do likewise for setting IMAGE_FILE_MACHINE_XXX, using a new IMAGE_FILE_MACHINE_ARCHITECTURE macro.
- Don't refer to the Program Counter as "Eip" in portable code.
- Define DBG_STATUS_CONTROL_C for assembly code and use it in KeUpdateSystemTime.

svn path=/trunk/; revision=43283
2009-10-04 16:53:15 +00:00
Stefan Ginsberg
f0c0e70c05 - Convert remaining KEBUGCHECK to KeBugCheck.
- Add HAL_MEMORY_ALLOCATION bug code and use it.

svn path=/trunk/; revision=43282
2009-10-04 14:48:18 +00:00
Matthias Kupfer
eb721653ab - DragFullWindow property changable via desktop settings / effects
- TODO: adapt desk.cpl to new sysparams implementation

svn path=/trunk/; revision=43281
2009-10-04 10:50:18 +00:00
Michael Martin
b7725b3fcc edit.c: Remove TPM_RETURNCMD flag from TrackPopupMenu missed during a recent WINE sync. Most apps that use edit control context menus are back to working. VB apps still crashes as the context menu implementation for edit controls is slightly wrong.
svn path=/trunk/; revision=43280
2009-10-04 07:26:23 +00:00
Cameron Gutman
fe8bd01634 - Put some code back which was removed in r43270
svn path=/trunk/; revision=43279
2009-10-04 03:55:34 +00:00
Timo Kreuzer
d6a01aca0e use __debugbreak() insetad of EngDebugBreak()
dedicated to Alex

svn path=/trunk/; revision=43278
2009-10-04 00:04:38 +00:00
James Tabor
62444813bb - Dont need this then.
svn path=/trunk/; revision=43277
2009-10-03 23:42:06 +00:00
James Tabor
a466f21e52 - Use TIF in cleanup flag.
svn path=/trunk/; revision=43276
2009-10-03 23:39:30 +00:00
Cameron Gutman
6ad0121a58 - Add cancellation support for IOCTL_AFD_SELECT
- Fix release build

svn path=/trunk/; revision=43275
2009-10-03 21:34:34 +00:00
Cameron Gutman
5920b78ec2 - Implement IRP cancellation for AFD
- Fixes "Broken driver did not complete!" showing up in the debug log (especially during winetests)

svn path=/trunk/; revision=43274
2009-10-03 20:52:54 +00:00
Hervé Poussineau
b809cead05 WINLDR: Finally, set Windows boot style as default
Many thanks to Fireball and Alex for your hard work on Windows boot style

svn path=/trunk/; revision=43273
2009-10-03 20:09:57 +00:00
Hervé Poussineau
9e7fc1c095 [usetup] Simplify creation of entries in freeldr.ini
svn path=/trunk/; revision=43272
2009-10-03 19:43:29 +00:00
Hervé Poussineau
b150069433 [freeldr] Remove MachDiskGetPartitionEntry, and directly use the correct one
Remove PpcDiskNormalizeSystemPath(), it was the same as DiskNormalizeSystemPath()

svn path=/trunk/; revision=43271
2009-10-03 18:41:10 +00:00
Cameron Gutman
94b78efb6a - Fix the crash in ws2_32_winetest during the ioctlsocket test
- Pass the blocking mode down to AFD
 - Dedicated to encoded

svn path=/trunk/; revision=43270
2009-10-03 18:21:14 +00:00
Matthias Kupfer
88b8d24b6f - consider DragFullWindows-value from Registry
svn path=/trunk/; revision=43269
2009-10-03 17:13:02 +00:00
Hervé Poussineau
f501c2bcb5 [freeldr] Remove (Mach)DiskGetBootDevice, DiskGetBootVolume, DiskGetSystemVolume, FsRecognizeVolume
This commit breaks ext2 driver in freeldr, which needs to use ArcSeek/ArcRead/Arc* instead of DiskGetBootVolume/MachDiskReadLogicalSectors

svn path=/trunk/; revision=43268
2009-10-03 17:00:29 +00:00
Hervé Poussineau
c599bd7dc0 Rework FAT filesystem to not be tied to boot filesystem
svn path=/trunk/; revision=43267
2009-10-03 16:47:54 +00:00
Benedikt Freisen
8ccb271064 * only show message box on exit if the image has not been saved and is not blank
* set as wallpaper: now working, setting wallpaper style: not yet
* made number of undo-steps changeable through define-statement; increased to 10 (see original)
* zoom tool got its track bar (see original)

svn path=/trunk/; revision=43266
2009-10-03 16:33:41 +00:00
Stefan Ginsberg
5b8c2418b7 - Replace some x86 assembly in drivers with portable breakpoint support.
svn path=/trunk/; revision=43265
2009-10-03 14:15:46 +00:00
Hervé Poussineau
80611d5a1d [freeldr] Fix warning on recent GCC versions
svn path=/trunk/; revision=43264
2009-10-03 13:29:41 +00:00
Hervé Poussineau
9c3b85b7d0 [freeldr] Code code specific to ARC emulation to its own directory
svn path=/trunk/; revision=43263
2009-10-03 13:11:22 +00:00
Hervé Poussineau
d9b6d51218 [freeldr] It's easy to check if we booted from a floppy thanks to boot path. No need to maintain a machine callback for that
svn path=/trunk/; revision=43262
2009-10-03 12:49:14 +00:00
Hervé Poussineau
7f2d93fde9 WINLDR: Move i386 specific code to its own file
svn path=/trunk/; revision=43261
2009-10-03 12:36:52 +00:00
Dmitry Chapyshev
aa4379b267 - Implement delete of the program information from the registry
- Store settings information in HKEY_LOCAL_MACHINE instead HKEY_CURRENT_USER

svn path=/trunk/; revision=43260
2009-10-03 09:34:19 +00:00
James Tabor
68180a507a - Prevent kernel bug check in win32k when calling a hook proc when thread is in cleanup.
- This is not a hack and not a fix. Please retest related bug report applications. Tested Firefox 3.5 and the new putty. Need new debug print outs. ATM Ff 3.5 send out WH_JOURNALRECORD hook calls when the thread is in cleanup. Look like this: Thread is in cleanup and trying to call hook 0
- Reference bug 4298.

svn path=/trunk/; revision=43259
2009-10-03 02:30:47 +00:00
Johannes Anderwald
f187acf5ef - Add KSPROPSETID_Audio guid
- Allocate data format after successful initialization of IPinWaveCyclic
- Store Miniport Adapter in subdevice descriptor
- Implement GUID_NULL handler for topology nodes 
- Implement setting / retrieving properties for topology nodes

svn path=/trunk/; revision=43258
2009-10-02 21:55:53 +00:00
Aleksey Bragin
58df56f2c5 [fastfat_new]
- Don't leak VCB lock, prevents hang when trying to open another file.

svn path=/trunk/; revision=43257
2009-10-02 17:07:37 +00:00
Aleksey Bragin
11361e2730 [fastfat_new]
- Fail with an error if file can't be opened.
- Implement FatCreateDcb, actually create DCBs for all parsed directories in the path.
- Set file size in an advanced FSRTL header for a file.
- Implement a small helper function for setting full names in FCB/DCB like it's done in the reference driver.

svn path=/trunk/; revision=43256
2009-10-02 13:59:51 +00:00
Aleksey Bragin
4e2fe08c74 [fullfat]
- Substitute more "free" to FF_Free function.

svn path=/trunk/; revision=43255
2009-10-02 11:56:03 +00:00
Johannes Anderwald
347609e691 - Rewrite Wave API to enumerate wave out / in devices at startup
- Improves speedup of application minus short delay in system boot
- Enumerate controls for source and destination lines

svn path=/trunk/; revision=43254
2009-10-02 10:57:24 +00:00
Johannes Anderwald
2f541881a8 - Check if NodeId is out of bounds
- Return correct status code

svn path=/trunk/; revision=43253
2009-10-02 10:53:36 +00:00
Aleksey Bragin
9ef3f7c1a2 [fastfat_new]
- Implement querying standard information (important for getting correct file size).
- Substitute CcMap/copy/Unpin by CcCopyRead in FatReadBlocks.
- Take offset into account (seek) in file read operation. Fixes always reading files from the beginning.

svn path=/trunk/; revision=43252
2009-10-02 10:49:57 +00:00
Cameron Gutman
7fe54dcf63 - Get the length from each packet header instead of assuming that all packets will be the length of the first one
svn path=/trunk/; revision=43251
2009-10-01 21:00:41 +00:00
Aleksey Bragin
43ef29d7ef [fastfat_new]
- Implement simple read support.
- Rewrite FatMapUserBuffer, no exception raising necessary at this stage.
- Silence FatReadBlocks dbgprint.

svn path=/trunk/; revision=43250
2009-10-01 16:08:11 +00:00
Stefan Ginsberg
c57385622a - Fix MSVC YieldProcessor macro
svn path=/trunk/; revision=43249
2009-10-01 14:18:54 +00:00
Stefan Ginsberg
fa46654ee8 - Kill leftover __USE_W32API
svn path=/trunk/; revision=43248
2009-10-01 14:18:18 +00:00
Aleksey Bragin
8f8f77367c [fastfat_new]
- Open a file in FatiOpenExistingFile by means of FullFAT library.
- Fix incorrect fullfat placement in fasfat.rbuild.
- Hack StreamFileObject to be 5Gb in length instead of 512 bytes. It'll be set to the size of an underlying physical device later.
- Add FF file handle to FCB structure.

svn path=/trunk/; revision=43247
2009-10-01 13:21:28 +00:00
Johannes Anderwald
4a81976dfd - Add usbdlib.h
svn path=/trunk/; revision=43246
2009-09-30 23:58:04 +00:00
Dmitry Gorbachev
d99cbc1ee2 Patch by Viliam Lejcik (lejcik =at= gmail com). Fixes bug #4858. With the blessing of Ged Murphy.
svn path=/trunk/; revision=43245
2009-09-30 20:59:21 +00:00
Stefan Ginsberg
9fdf04b17c ReactOS SMP Bringup Lite:
- Add simple and hacky spinlock implementation to HAL and kernel. It treats queued spinlocks as normal spinlocks and does not support debug timeout, but works well enough to expose bugs in spinlock usage.
- Implement KiProcessDeferredReadyList, a simple wrapper around KiDeferredReadyThread.
- Add missing PRCB locking in KiDeferredReadyThread.
- Implement SMP handling in KiRetireDpcList.
- Acquire the spinlock in KeSynchronizeExecution for SMP.
- Stub and export Kii386SpinOnSpinLock -- not used yet.
- Fix locking in KiAcquire/ReleaseDispatcherLockAtDpcLevel -- KeAcquireQueuedSpinLockAtDpcLevel takes the lock queue pointer, not the index.
- "Implement" KiRundownThread for SMP.
- Fix some sanity checks in the SMP context switch code and implement a stubbed SMP case.
- Define SYNCH_LEVEL in asm.h and use it in HAL's KeRaiseIrqlToSynchLevel.

To try the MP kernel on UP (it does not work on multiple processors yet) compile ntkrnlmp, rename it to ntoskrnl and add it to your installation. This requires a HAL with CONFIG_SMP enabled in HAL's spinlock.c and irq.S. Booting with the MP kernel does not work because of a weird regression introduced sometime in the last few months --  it appears MmProbeAndLockPages fails for a user mode stack pointer (no, I have no idea why).

svn path=/trunk/; revision=43244
2009-09-30 20:30:57 +00:00
Stefan Ginsberg
56bc75a184 - ASSERT on NULL-frees
svn path=/trunk/; revision=43243
2009-09-30 19:29:08 +00:00