Commit graph

39009 commits

Author SHA1 Message Date
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
Johannes Anderwald 17c528d7c3 - Several bugfixes for mixer source / destination line detection code
- Fix a memory leak

svn path=/trunk/; revision=43242
2009-09-30 18:58:52 +00:00
Stefan Ginsberg b3e77ecf83 - KeBugCheckEx expects BugCheckParameter2 to point to an array when the bug code is FATAL_UNHANDLED_HARD_ERROR -- properly stub out ExpSystemErrorHandler so we don't crash in KeBugCheckEx.
svn path=/trunk/; revision=43241
2009-09-30 18:31:26 +00:00
Stefan Ginsberg b42aaf88bb - Fix recursive spinlock acquisition in Mm caused by locking inconsistency between ARM3 and the old ReactOS Mm. The old Mm calls certain routines to modify PFN entries (lock, unlock, reference, dereference, etc) and acquires/releases the PFN lock inside those functions (which is extremely inefficient as you can't, for example, have to acquire/release the PFN lock twice to reference and lock the same page), while ARM3 synchronizes differently and holds the lock while calling those routines, resulting in a recursive lock attempt on MP (which works on UP because spinlocks are just IRQL raise/lower there). Move out locking from MmAllocPage, MmReference/DereferencePage and MmLock/UnlockPage to the callers to be consistent with ARM3.
- Add missing PFN locking to MmFreePagesFromMdl and MiAllocatePoolPages.
- Get rid of MmLockPageUnsafe and MmReferencePageUnsafe. The "safe" routines just forwarded to the unsafe versions -- call them directly instead. Remove unused MmAcquirePageListLock/MmReleasePageListLock.

svn path=/trunk/; revision=43240
2009-09-30 18:24:00 +00:00
Aleksey Bragin 4f128a3206 [fastfat_new]
- Partially implement a codepath for opening an existing file.
- Implement simple FCB and CCB creation.
- Correctly set FILE_OBJECT fields.
- Allocate space for SECTION_POINTERS.
- Implement some misc in FatQueryInformation.
- The driver goes up to getting a read request for ntdll.dll.

svn path=/trunk/; revision=43239
2009-09-30 16:16:18 +00:00
Stefan Ginsberg eb89b6ac85 - ...and this one.
svn path=/trunk/; revision=43238
2009-09-30 13:43:55 +00:00
Stefan Ginsberg e909d6a542 - Missed this one
svn path=/trunk/; revision=43237
2009-09-30 13:33:48 +00:00
Stefan Ginsberg df3bf0c83a - Goodbye __USE_W32API
svn path=/trunk/; revision=43236
2009-09-30 13:32:05 +00:00
Stefan Ginsberg 56aba98ca8 - Good bye __USE_W32API, _DISABLE_TIDENTS
svn path=/trunk/; revision=43235
2009-09-30 13:31:50 +00:00
Stefan Ginsberg bfc7376cd9 - Remove the remaining __USE_W32API, deprecated for ages.
- Remove _SEH_NO_NATIVE_NLG from msvcrt.rbuild, deprecated long ago.
- Get rid of __NO_CTYPE_INLINES for everything but host tools, deprecated since revision 38052.
- Deprecate and remove _DISABLE_TIDENTS.

svn path=/trunk/; revision=43234
2009-09-30 13:28:51 +00:00
Kamil Hornicek ebe5bb75c0 - simplify the code a bit
svn path=/trunk/; revision=43233
2009-09-30 12:59:06 +00:00
Kamil Hornicek 6f17454af4 - add wglUseFontOutlines, wglUseFontBitmaps
- code ported (rearranged, simplified, fixed memory leaks, removed unneeded variables) from Mesa3D glDirect driver (c) SciTech Software, Inc
- more work needed but 3D text screen saver finally renders at least something

svn path=/trunk/; revision=43232
2009-09-30 12:12:56 +00:00
Johannes Anderwald 4127b55a9e - Store destination line in LineList
- Implement WdmAudGetLineInfo for MIXER_GETLINEINFOF_LINEID
- Add a hack for WdmAudGetLineControls for MIXER_GETLINECONTROLSF_ONEBYTYPE

svn path=/trunk/; revision=43231
2009-09-30 10:32:15 +00:00