Commit graph

35861 commits

Author SHA1 Message Date
Kamil Hornicek a83abb4f0e - fix possible memory leak (patch from Mesa3D by Daniel Zimmermann)
svn path=/trunk/; revision=40286
2009-03-29 13:39:18 +00:00
Aleksey Bragin df5b7d2582 - Synchronize debug messages output to the serial port. Now each line of a debug log is printed synchronously, as it is NT. In future, this should be converted to a generic spinlock for all registered KD handlers.
svn path=/trunk/; revision=40285
2009-03-29 13:15:03 +00:00
Aleksey Bragin fea868eebc - Implement KeTestSpinLock.
svn path=/trunk/; revision=40284
2009-03-29 12:57:58 +00:00
Kamil Hornicek d32512662f update Mesa3D to version 7.4
svn path=/trunk/; revision=40283
2009-03-29 12:45:34 +00:00
Dmitry Gorbachev 379a32cc4b Shell32 translation patch from Tomoya Kitagawa, bug #4310.
svn path=/trunk/; revision=40282
2009-03-29 11:53:16 +00:00
Michael Martin 4ea62038a8 create.c: NpfsCleanup - Do not set the pipe's state to FILE_PIPE_DISCONNECTED_STATE, it is needed for determining broken pipes.
Only set pipes otherside to NULL if it is not NULL already.
fsctrl.c: NpfsDisconnectPipe - Set return status to STATUS_PIPE_DISCONNECTED if pipe is already disconnected.
Add code to handle cases where PipeState is connected and pipes otherside has been set to NULL.
rw.c: Set return status to STATUS_BROKEN_PIPE if the other side of pipe has been set to NULL, the data available in pipe is zero and pipe state is connected.
Check that pipes otherside is valid before attempting to set the othersides read/write event.

svn path=/trunk/; revision=40281
2009-03-29 11:15:10 +00:00
Jeffrey Morlan ad25b56ea8 Make command parsing in DoCommand/Execute more compatible with Windows
svn path=/trunk/; revision=40280
2009-03-29 05:13:35 +00:00
Timo Kreuzer 47bc28fa47 Add the DC XlateBrush / XlatePen hack to DC_vUpdateFillBrush / DC_vUpdateLineBrush, so these should now be a full replacement for the current usage of IntGdiSelectPen/Brush + EBRUSHOBJ_vInit
svn path=/trunk/; revision=40279
2009-03-29 02:15:37 +00:00
Timo Kreuzer c14d3364c7 Simple temporary implementation of EngRealizeBrush. Not tested, not used yet.
svn path=/trunk/; revision=40278
2009-03-29 01:43:09 +00:00
Timo Kreuzer d32f5cf257 BltMask:
by me: optimize by replacing the maskbit table with a byte containing the maskbit and rotating using _rotr8. Also move the comparison out of the loop, making 2 loops, one with pattern, one without.
By Evgeniy Boltik: Optimize by using function pointers. Fix calculation of brush position. By me again: optimize the fix by moving the calculation out of the outer loop.

svn path=/trunk/; revision=40277
2009-03-29 00:26:30 +00:00
Timo Kreuzer 77b12d6d18 Patch by Evgeniy Boltik:
Always calculate a palette for the DIB in NtGdiGetDIBitsInternal, when dealing with 15 or 16 bit depth. Fixes broken taskbar icons on 16bpp.

svn path=/trunk/; revision=40276
2009-03-29 00:25:47 +00:00
Cameron Gutman 060ac4d373 - Fix some TDI flags
svn path=/trunk/; revision=40275
2009-03-29 00:22:31 +00:00
James Tabor 0142494290 - Add The rest to W32PROCESS.
svn path=/trunk/; revision=40274
2009-03-28 23:28:38 +00:00
James Tabor b2c76fa160 - Add Lock point and AVL table pointer to W32PROCESS. This is for EngAllocUserMem and friends.
svn path=/trunk/; revision=40273
2009-03-28 23:06:07 +00:00
Jeffrey Morlan 4e02761261 - Implement CMD /A and /U switches.
- CLS: Fill console with current color rather than original; if standard output is not a console, print a form-feed character.
- COLOR: If standard output is not a console, do nothing.

svn path=/trunk/; revision=40272
2009-03-28 19:36:22 +00:00
Cameron Gutman 23cb0510c4 - Fix a typo
svn path=/trunk/; revision=40271
2009-03-28 17:52:50 +00:00
Cameron Gutman efaf3a892a - Implement NdisMAllocateSharedMemoryAsync
- Zero the entire packet in NdisAllocatePacket

svn path=/trunk/; revision=40270
2009-03-28 17:49:27 +00:00
Aleksey Bragin 02258e7e39 - Remove a header structure from memory regions allocated with EngAllocUserMem. Modern versions of Windows (at least XP and higher) don't do this and instead save this information elsewhere. Confirmed by Alexandre Julliard's test case for calling WriteFile with the DIB section bits as buffer (5 less failures now) and by arguing with Evgeniy Boltik.
svn path=/trunk/; revision=40269
2009-03-28 17:06:17 +00:00
Aleksey Bragin b5ceb7733a - Pass correct allocation flags to ZwAllocateVirtualMemory.
- Don't provide region size when freeing virtual memory (spotted by Evgeniy Boltik, confirmed by MSDN).

svn path=/trunk/; revision=40268
2009-03-28 16:53:51 +00:00
Cameron Gutman a5d8c32124 - Remove a useless parameter from UnlockAndMaybeComplete
- Fix a few listening bugs

svn path=/trunk/; revision=40267
2009-03-28 15:49:29 +00:00
Hervé Poussineau 82d4f0afe3 Add some defines, to be used later in freeldr
svn path=/trunk/; revision=40266
2009-03-28 10:33:19 +00:00
Hervé Poussineau 7ffb682eea Fix typo
svn path=/trunk/; revision=40265
2009-03-28 09:28:05 +00:00
Cameron Gutman 6e410f30f1 - Remove an unnecessary parameter
svn path=/trunk/; revision=40264
2009-03-28 01:27:01 +00:00
Cameron Gutman fc6b65aac3 - More LockBuffers fixes
- Now attempting to sync the clock with a network time server doesn't cause an access violation

svn path=/trunk/; revision=40263
2009-03-28 01:23:50 +00:00
Cameron Gutman 4e466b6892 - Fix some issues with LockBuffers
- We must lock buffers before using them

svn path=/trunk/; revision=40262
2009-03-27 22:32:28 +00:00
Aleksey Bragin 6971703e7b - Fix queue index (actually do what comment in the code says). Spotted by Alex.
svn path=/trunk/; revision=40261
2009-03-27 12:03:29 +00:00
Cameron Gutman 48301f631c - Wait on the correct event
svn path=/trunk/; revision=40260
2009-03-27 04:10:10 +00:00
Cameron Gutman 3066a61fce - Remove some unnecessary code
svn path=/trunk/; revision=40259
2009-03-27 03:48:16 +00:00
Cameron Gutman ed72b6606d - Fix several handle leaks
svn path=/trunk/; revision=40258
2009-03-27 03:21:21 +00:00
Aleksey Bragin b233e13933 Apply patch from Wine:
http://www.winehq.org/pipermail/wine-patches/2009-March/071155.html

- Fix bitmap size calculation in IMAGELIST_InternalExpandBitmaps and remove unneeded parameter. Memory requirements are greatly reduced after this fix.

See issue #4304 for more details.

svn path=/trunk/; revision=40257
2009-03-26 19:46:11 +00:00
Johannes Anderwald 93c61940bb - Remove dead code
- Silence a few debug prints
- Implement Dispatch_FastRead, Dispatch_fnFastDeviceIoControl
- Change _InterlockedXXX to InterlockedXXX
- Store IPortPinWaveCyclic pins in an array and close pin on a new create request (fixes a memory leak)
- Complete the close irp when the stream has really been closed


svn path=/trunk/; revision=40250
2009-03-26 09:59:45 +00:00
Jeffrey Morlan 72160071f9 - Add another heap freelist for small blocks, making mingw32-make about 100 times faster at loading makefile.auto
svn path=/trunk/; revision=40249
2009-03-26 06:32:14 +00:00
Jeffrey Morlan 8b1901148f - Fix a buffer overflow in cmd
- Make "CMD /C" clean up before exiting to get rid of spurious "memory leak" debug messages

svn path=/trunk/; revision=40248
2009-03-26 06:31:46 +00:00
Timo Kreuzer 9285de53cd Hack cleanup: IntGdiBrushXlate is a dirty ros hack, it is needed due to the fact that we handle brushes totally wrong. Replace it with a static function IntUpdateBrushXlate and move it to dcobjs.c.
svn path=/trunk/; revision=40246
2009-03-26 03:41:57 +00:00
Art Yerkes 2bb581031f Prevent a double lock on the surface by splitting FillSolid into a locking and
unlocked version, allowing surface.c to use the locking version.

svn path=/trunk/; revision=40245
2009-03-26 02:33:15 +00:00
Jeffrey Morlan db8815a497 - Implement CMD /D, /Q, and /R switches
- Do %envvar% expansions in CMD /C or /K commands
- Make SETLOCAL recognize ENABLEEXTENSIONS and DISABLEEXTENSIONS, although it doesn't do anything yet
- Make VERIFY set the errorlevel (documented in SETLOCAL /?). Also make it recognize when ON/OFF is followed by space
- Make ECHOSERR actually print to stderr, not stdout
- Make echoed display of ( ... ) blocks look nicer (Bug 4022)
- Fix some other minor display bugs

svn path=/trunk/; revision=40244
2009-03-26 01:14:25 +00:00
Timo Kreuzer 65d9fbc726 Move NtGdiSelectBitmap to dcobjs.c, implement DC_vSelectFillBrush and DC_vSelectLineBrush, use them in IntGdiSelectBrush and IntGdiSelectPen, DC_Cleanup and DC_vCopyState. Should fix leaking brushes/pens on process cleanup.
Remove the flag checks from DC_vUpdateXxxBrush functions.

svn path=/trunk/; revision=40243
2009-03-26 00:56:46 +00:00
Timo Kreuzer cac93ee776 Move NtGdiSelectClipPath, Nt/IntGdiSelectBrush, Nt/IntGdiSelectpen to dcobj.c, improve formatting, no code change.
svn path=/trunk/; revision=40242
2009-03-25 22:14:20 +00:00
Timo Kreuzer ea055dde70 Rename NtGdiDeleteObject to GreDeleteObject
svn path=/trunk/; revision=40240
2009-03-25 20:24:34 +00:00
Johannes Anderwald 5a37c1fdad - Export KsNullDriverUnload
- Stop the audio stream at PASSIVE_LEVEL
- Refactor sysaudio code to make it less complex and remove code which is not used
- Add a few comments

svn path=/trunk/; revision=40238
2009-03-25 19:14:04 +00:00
Johannes Anderwald bf2b5adf8e - Fix calling convention for KsNullDriverUnload
svn path=/trunk/; revision=40237
2009-03-25 19:01:27 +00:00
Colin Finck 9148284b91 Readd the hack for skipping the bitmap font tests.
As long as we have no working bitmap font driver, it results in endless loops and fails, which even get sysreg2 into an uncomfortable state.

svn path=/trunk/; revision=40231
2009-03-25 16:31:17 +00:00
Cameron Gutman 6c67770a16 - Revert an unwanted change
svn path=/trunk/; revision=40230
2009-03-25 15:59:20 +00:00
Colin Finck 8cb8fb4761 Remove all Skip hacks from the Wine tests as we resume from crashes now
svn path=/trunk/; revision=40229
2009-03-25 14:37:01 +00:00
Christoph von Wittich 58f2230b68 update README.WINE
svn path=/trunk/; revision=40227
2009-03-25 14:00:43 +00:00
Christoph von Wittich 49aa71cfbc sync DDE to wine 1.1.17
svn path=/trunk/; revision=40226
2009-03-25 13:57:58 +00:00
Christoph von Wittich 034b4711be GetConsoleProcessist -> GetConsoleProcessList
svn path=/trunk/; revision=40223
2009-03-25 10:11:53 +00:00
Christoph von Wittich 4fe44b2b2d fix some more typos...
svn path=/trunk/; revision=40222
2009-03-25 10:10:17 +00:00
Christoph von Wittich 6af867cced fix some typos
svn path=/trunk/; revision=40221
2009-03-25 09:55:31 +00:00
Timo Kreuzer 809d606072 Add the macro I forgot.
svn path=/trunk/; revision=40220
2009-03-25 04:25:39 +00:00