reactos.git
13 years agoSync write with Wine HEAD
Daniel Reimer [Sun, 29 Mar 2009 23:17:43 +0000 (23:17 +0000)]
Sync write with Wine HEAD

svn path=/trunk/; revision=40291

13 years ago[FORMATTING]
Aleksey Bragin [Sun, 29 Mar 2009 19:32:37 +0000 (19:32 +0000)]
[FORMATTING]
- Change comments to match kernel coding style
- Remove EOL spaces.

svn path=/trunk/; revision=40290

13 years agoMake cmd able to (sort of) work without a console.
Jeffrey Morlan [Sun, 29 Mar 2009 19:17:45 +0000 (19:17 +0000)]
Make cmd able to (sort of) work without a console.

svn path=/trunk/; revision=40289

13 years ago- Fix W32PROCESS, replaced pointer with structure.
James Tabor [Sun, 29 Mar 2009 16:31:27 +0000 (16:31 +0000)]
- Fix W32PROCESS, replaced pointer with structure.

svn path=/trunk/; revision=40288

13 years ago- return WSAEMSGSIZE on both STATUS_BUFFER_TOO_SMALL / STATUS_BUFFER_OVERFLOW:
Kamil Hornicek [Sun, 29 Mar 2009 15:56:08 +0000 (15:56 +0000)]
- return WSAEMSGSIZE on both STATUS_BUFFER_TOO_SMALL / STATUS_BUFFER_OVERFLOW:

svn path=/trunk/; revision=40287

13 years ago- fix possible memory leak (patch from Mesa3D by Daniel Zimmermann)
Kamil Hornicek [Sun, 29 Mar 2009 13:39:18 +0000 (13:39 +0000)]
- fix possible memory leak (patch from Mesa3D by Daniel Zimmermann)

svn path=/trunk/; revision=40286

13 years ago- Synchronize debug messages output to the serial port. Now each line of a debug...
Aleksey Bragin [Sun, 29 Mar 2009 13:15:03 +0000 (13:15 +0000)]
- 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

13 years ago- Implement KeTestSpinLock.
Aleksey Bragin [Sun, 29 Mar 2009 12:57:58 +0000 (12:57 +0000)]
- Implement KeTestSpinLock.

svn path=/trunk/; revision=40284

13 years agoupdate Mesa3D to version 7.4
Kamil Hornicek [Sun, 29 Mar 2009 12:45:34 +0000 (12:45 +0000)]
update Mesa3D to version 7.4

svn path=/trunk/; revision=40283

13 years agoShell32 translation patch from Tomoya Kitagawa, bug #4310.
Dmitry Gorbachev [Sun, 29 Mar 2009 11:53:16 +0000 (11:53 +0000)]
Shell32 translation patch from Tomoya Kitagawa, bug #4310.

svn path=/trunk/; revision=40282

13 years agocreate.c: NpfsCleanup - Do not set the pipe's state to FILE_PIPE_DISCONNECTED_STATE...
Michael Martin [Sun, 29 Mar 2009 11:15:10 +0000 (11:15 +0000)]
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

13 years agoMake command parsing in DoCommand/Execute more compatible with Windows
Jeffrey Morlan [Sun, 29 Mar 2009 05:13:35 +0000 (05:13 +0000)]
Make command parsing in DoCommand/Execute more compatible with Windows

svn path=/trunk/; revision=40280

13 years agoAdd the DC XlateBrush / XlatePen hack to DC_vUpdateFillBrush / DC_vUpdateLineBrush...
Timo Kreuzer [Sun, 29 Mar 2009 02:15:37 +0000 (02:15 +0000)]
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

13 years agoSimple temporary implementation of EngRealizeBrush. Not tested, not used yet.
Timo Kreuzer [Sun, 29 Mar 2009 01:43:09 +0000 (01:43 +0000)]
Simple temporary implementation of EngRealizeBrush. Not tested, not used yet.

svn path=/trunk/; revision=40278

13 years agoBltMask:
Timo Kreuzer [Sun, 29 Mar 2009 00:26:30 +0000 (00:26 +0000)]
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

13 years agoPatch by Evgeniy Boltik:
Timo Kreuzer [Sun, 29 Mar 2009 00:25:47 +0000 (00:25 +0000)]
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

13 years ago - Fix some TDI flags
Cameron Gutman [Sun, 29 Mar 2009 00:22:31 +0000 (00:22 +0000)]
 - Fix some TDI flags

svn path=/trunk/; revision=40275

13 years ago- Add The rest to W32PROCESS.
James Tabor [Sat, 28 Mar 2009 23:28:38 +0000 (23:28 +0000)]
- Add The rest to W32PROCESS.

svn path=/trunk/; revision=40274

13 years ago- Add Lock point and AVL table pointer to W32PROCESS. This is for EngAllocUserMem...
James Tabor [Sat, 28 Mar 2009 23:06:07 +0000 (23:06 +0000)]
- Add Lock point and AVL table pointer to W32PROCESS. This is for EngAllocUserMem and friends.

svn path=/trunk/; revision=40273

13 years ago- Implement CMD /A and /U switches.
Jeffrey Morlan [Sat, 28 Mar 2009 19:36:22 +0000 (19:36 +0000)]
- 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

13 years ago - Fix a typo
Cameron Gutman [Sat, 28 Mar 2009 17:52:50 +0000 (17:52 +0000)]
 - Fix a typo

svn path=/trunk/; revision=40271

13 years ago - Implement NdisMAllocateSharedMemoryAsync
Cameron Gutman [Sat, 28 Mar 2009 17:49:27 +0000 (17:49 +0000)]
 - Implement NdisMAllocateSharedMemoryAsync
 - Zero the entire packet in NdisAllocatePacket

svn path=/trunk/; revision=40270

13 years ago- Remove a header structure from memory regions allocated with EngAllocUserMem. Moder...
Aleksey Bragin [Sat, 28 Mar 2009 17:06:17 +0000 (17:06 +0000)]
- 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

13 years ago- Pass correct allocation flags to ZwAllocateVirtualMemory.
Aleksey Bragin [Sat, 28 Mar 2009 16:53:51 +0000 (16:53 +0000)]
- 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

13 years ago - Remove a useless parameter from UnlockAndMaybeComplete
Cameron Gutman [Sat, 28 Mar 2009 15:49:29 +0000 (15:49 +0000)]
 - Remove a useless parameter from UnlockAndMaybeComplete
 - Fix a few listening bugs

svn path=/trunk/; revision=40267

13 years agoAdd some defines, to be used later in freeldr
Hervé Poussineau [Sat, 28 Mar 2009 10:33:19 +0000 (10:33 +0000)]
Add some defines, to be used later in freeldr

svn path=/trunk/; revision=40266

13 years agoFix typo
Hervé Poussineau [Sat, 28 Mar 2009 09:28:05 +0000 (09:28 +0000)]
Fix typo

svn path=/trunk/; revision=40265

13 years ago - Remove an unnecessary parameter
Cameron Gutman [Sat, 28 Mar 2009 01:27:01 +0000 (01:27 +0000)]
 - Remove an unnecessary parameter

svn path=/trunk/; revision=40264

13 years ago - More LockBuffers fixes
Cameron Gutman [Sat, 28 Mar 2009 01:23:50 +0000 (01:23 +0000)]
 - 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

13 years ago - Fix some issues with LockBuffers
Cameron Gutman [Fri, 27 Mar 2009 22:32:28 +0000 (22:32 +0000)]
 - Fix some issues with LockBuffers
 - We must lock buffers before using them

svn path=/trunk/; revision=40262

13 years ago- Fix queue index (actually do what comment in the code says). Spotted by Alex.
Aleksey Bragin [Fri, 27 Mar 2009 12:03:29 +0000 (12:03 +0000)]
- Fix queue index (actually do what comment in the code says). Spotted by Alex.

svn path=/trunk/; revision=40261

13 years ago - Wait on the correct event
Cameron Gutman [Fri, 27 Mar 2009 04:10:10 +0000 (04:10 +0000)]
 - Wait on the correct event

svn path=/trunk/; revision=40260

13 years ago - Remove some unnecessary code
Cameron Gutman [Fri, 27 Mar 2009 03:48:16 +0000 (03:48 +0000)]
 - Remove some unnecessary code

svn path=/trunk/; revision=40259

13 years ago - Fix several handle leaks
Cameron Gutman [Fri, 27 Mar 2009 03:21:21 +0000 (03:21 +0000)]
 - Fix several handle leaks

svn path=/trunk/; revision=40258

13 years agoApply patch from Wine:
Aleksey Bragin [Thu, 26 Mar 2009 19:46:11 +0000 (19:46 +0000)]
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

13 years ago- Remove dead code
Johannes Anderwald [Thu, 26 Mar 2009 09:59:45 +0000 (09:59 +0000)]
- 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

13 years ago- Add another heap freelist for small blocks, making mingw32-make about 100 times...
Jeffrey Morlan [Thu, 26 Mar 2009 06:32:14 +0000 (06:32 +0000)]
- Add another heap freelist for small blocks, making mingw32-make about 100 times faster at loading makefile.auto

svn path=/trunk/; revision=40249

13 years ago- Fix a buffer overflow in cmd
Jeffrey Morlan [Thu, 26 Mar 2009 06:31:46 +0000 (06:31 +0000)]
- 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

13 years agoHack cleanup: IntGdiBrushXlate is a dirty ros hack, it is needed due to the fact...
Timo Kreuzer [Thu, 26 Mar 2009 03:41:57 +0000 (03:41 +0000)]
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

13 years agoPrevent a double lock on the surface by splitting FillSolid into a locking and
Art Yerkes [Thu, 26 Mar 2009 02:33:15 +0000 (02:33 +0000)]
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

13 years ago- Implement CMD /D, /Q, and /R switches
Jeffrey Morlan [Thu, 26 Mar 2009 01:14:25 +0000 (01:14 +0000)]
- 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

13 years agoMove NtGdiSelectBitmap to dcobjs.c, implement DC_vSelectFillBrush and DC_vSelectLineB...
Timo Kreuzer [Thu, 26 Mar 2009 00:56:46 +0000 (00:56 +0000)]
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

13 years agoMove NtGdiSelectClipPath, Nt/IntGdiSelectBrush, Nt/IntGdiSelectpen to dcobj.c, improv...
Timo Kreuzer [Wed, 25 Mar 2009 22:14:20 +0000 (22:14 +0000)]
Move NtGdiSelectClipPath, Nt/IntGdiSelectBrush, Nt/IntGdiSelectpen to dcobj.c, improve formatting, no code change.

svn path=/trunk/; revision=40242

13 years agoRename NtGdiDeleteObject to GreDeleteObject
Timo Kreuzer [Wed, 25 Mar 2009 20:24:34 +0000 (20:24 +0000)]
Rename NtGdiDeleteObject to GreDeleteObject

svn path=/trunk/; revision=40240

13 years ago- Export KsNullDriverUnload
Johannes Anderwald [Wed, 25 Mar 2009 19:14:04 +0000 (19:14 +0000)]
- 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

13 years ago- Fix calling convention for KsNullDriverUnload
Johannes Anderwald [Wed, 25 Mar 2009 19:01:27 +0000 (19:01 +0000)]
- Fix calling convention for KsNullDriverUnload

svn path=/trunk/; revision=40237

13 years agoReadd the hack for skipping the bitmap font tests.
Colin Finck [Wed, 25 Mar 2009 16:31:17 +0000 (16:31 +0000)]
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

13 years ago - Revert an unwanted change
Cameron Gutman [Wed, 25 Mar 2009 15:59:20 +0000 (15:59 +0000)]
 - Revert an unwanted change

svn path=/trunk/; revision=40230

13 years agoRemove all Skip hacks from the Wine tests as we resume from crashes now
Colin Finck [Wed, 25 Mar 2009 14:37:01 +0000 (14:37 +0000)]
Remove all Skip hacks from the Wine tests as we resume from crashes now

svn path=/trunk/; revision=40229

13 years agoupdate README.WINE
Christoph von Wittich [Wed, 25 Mar 2009 14:00:43 +0000 (14:00 +0000)]
update README.WINE

svn path=/trunk/; revision=40227

13 years agosync DDE to wine 1.1.17
Christoph von Wittich [Wed, 25 Mar 2009 13:57:58 +0000 (13:57 +0000)]
sync DDE to wine 1.1.17

svn path=/trunk/; revision=40226

13 years agoGetConsoleProcessist -> GetConsoleProcessList
Christoph von Wittich [Wed, 25 Mar 2009 10:11:53 +0000 (10:11 +0000)]
GetConsoleProcessist -> GetConsoleProcessList

svn path=/trunk/; revision=40223

13 years agofix some more typos...
Christoph von Wittich [Wed, 25 Mar 2009 10:10:17 +0000 (10:10 +0000)]
fix some more typos...

svn path=/trunk/; revision=40222

13 years agofix some typos
Christoph von Wittich [Wed, 25 Mar 2009 09:55:31 +0000 (09:55 +0000)]
fix some typos

svn path=/trunk/; revision=40221

13 years agoAdd the macro I forgot.
Timo Kreuzer [Wed, 25 Mar 2009 04:25:39 +0000 (04:25 +0000)]
Add the macro I forgot.

svn path=/trunk/; revision=40220

13 years agoRewrite the dc state saving implementation. We were doing it wrong and ugly. Now...
Timo Kreuzer [Wed, 25 Mar 2009 04:20:59 +0000 (04:20 +0000)]
Rewrite the dc state saving implementation. We were doing it wrong and ugly. Now it should work correctly. It's also much fewer and cleaner code.

svn path=/trunk/; revision=40219

13 years agoFix GetDCBrushColor. It was returning the pen color.
Timo Kreuzer [Wed, 25 Mar 2009 03:52:11 +0000 (03:52 +0000)]
Fix GetDCBrushColor. It was returning the pen color.

svn path=/trunk/; revision=40218

13 years agoAdd one test for NtGdiDeleteObjectApp, and a bunch of tests for NtGdiSaveDC and NtGdi...
Timo Kreuzer [Wed, 25 Mar 2009 03:51:22 +0000 (03:51 +0000)]
Add one test for NtGdiDeleteObjectApp, and a bunch of tests for NtGdiSaveDC and NtGdiRestoreDC.

svn path=/trunk/; revision=40217

13 years agogdihv: add a possibility to view all handles
Timo Kreuzer [Wed, 25 Mar 2009 03:48:51 +0000 (03:48 +0000)]
gdihv: add a possibility to view all handles

svn path=/trunk/; revision=40216

13 years ago - Fix ICMP
Cameron Gutman [Wed, 25 Mar 2009 02:28:40 +0000 (02:28 +0000)]
 - Fix ICMP

svn path=/trunk/; revision=40215

13 years ago - Return STATUS_NETWORK_UNREACHABLE if we can't get a route to the remote address
Cameron Gutman [Wed, 25 Mar 2009 02:10:49 +0000 (02:10 +0000)]
 - Return STATUS_NETWORK_UNREACHABLE if we can't get a route to the remote address

svn path=/trunk/; revision=40214

13 years ago - Set the IP_PACKET_FLAG_RAW flag on Raw IP packets
Cameron Gutman [Wed, 25 Mar 2009 02:04:01 +0000 (02:04 +0000)]
 - Set the IP_PACKET_FLAG_RAW flag on Raw IP packets

svn path=/trunk/; revision=40213

13 years ago- Write new simplified NtGdiDeleteObjectApp based on test case.
James Tabor [Wed, 25 Mar 2009 01:07:02 +0000 (01:07 +0000)]
- Write new simplified NtGdiDeleteObjectApp based on test case.
- Include internal function GetObjectOwner to support retrieval of owner process ID.
- Update GDI_TABLE_ENTRY.

svn path=/trunk/; revision=40212

13 years agoOutput "SYSREG_ROSAUTOTEST_FAILURE" for sysreg2 in case of a failure inside rosautotest
Colin Finck [Tue, 24 Mar 2009 20:49:04 +0000 (20:49 +0000)]
Output "SYSREG_ROSAUTOTEST_FAILURE" for sysreg2 in case of a failure inside rosautotest

svn path=/trunk/; revision=40211

13 years agoTake the line number as an integer, the STRINGIZER macro didn't work as expected
Colin Finck [Tue, 24 Mar 2009 12:37:54 +0000 (12:37 +0000)]
Take the line number as an integer, the STRINGIZER macro didn't work as expected

svn path=/trunk/; revision=40208

13 years ago- Replace stub msdmo on msdmo from Wine
Dmitry Chapyshev [Tue, 24 Mar 2009 11:20:24 +0000 (11:20 +0000)]
- Replace stub msdmo on msdmo from Wine

svn path=/trunk/; revision=40207

13 years ago- Replace stub qedit on qedit from Wine
Dmitry Chapyshev [Tue, 24 Mar 2009 11:17:08 +0000 (11:17 +0000)]
- Replace stub qedit on qedit from Wine

svn path=/trunk/; revision=40206

13 years ago- Sync Tahoma fonts with Wine head
Dmitry Chapyshev [Tue, 24 Mar 2009 11:09:11 +0000 (11:09 +0000)]
- Sync Tahoma fonts with Wine head

svn path=/trunk/; revision=40205

13 years ago[FORMATTING]
Timo Kreuzer [Tue, 24 Mar 2009 04:42:21 +0000 (04:42 +0000)]
[FORMATTING]
fix indentation, no code change.

svn path=/trunk/; revision=40204

13 years agoMore dc cleanup: make DC_AllocDC return a pointer, not a handle, like done with the...
Timo Kreuzer [Tue, 24 Mar 2009 04:10:49 +0000 (04:10 +0000)]
More dc cleanup: make DC_AllocDC return a pointer, not a handle, like done with the other objects, too.
Remove DC_GetnextDC and DC_SetNextDC, as they are trivial. Misc cleanup and improvements.

svn path=/trunk/; revision=40203

13 years agoFix formatting add a FIXME comment, no code change
Timo Kreuzer [Tue, 24 Mar 2009 03:15:18 +0000 (03:15 +0000)]
Fix formatting add a FIXME comment, no code change

svn path=/trunk/; revision=40202

13 years agoRemove DC_GET_VAL macro and friends. They were defining functions that we didn't...
Timo Kreuzer [Tue, 24 Mar 2009 02:58:14 +0000 (02:58 +0000)]
Remove DC_GET_VAL macro and friends. They were defining functions that we didn't use, except 4, but those were also quite useless, as the only returned a value from the dc structure that you pass in.
same for IntGetGraphicsMode. Also remove IntGetViewportExtEx and replace it with DC_vUpdateViewportExt

svn path=/trunk/; revision=40201

13 years ago - Fix several cancellation and socket shutdown issues:
Cameron Gutman [Tue, 24 Mar 2009 02:01:46 +0000 (02:01 +0000)]
 - Fix several cancellation and socket shutdown issues:
 - Don't call DestroySocket if FCB->State == SOCKET_STATE_CLOSED because the FCB is already being destroyed (Irp->Cancel checks hid this bug)
 - Remove the Irp->Cancel checks (hacks)
 - Only return early if we can't cancel an IRP
 - Add an FCB->State check in StreamSocketConnectComplete
 - Store the failure status in the IRP

svn path=/trunk/; revision=40200

13 years ago- Add a bunch of tests for NtGdiDeleteObjectApp
Timo Kreuzer [Tue, 24 Mar 2009 01:25:03 +0000 (01:25 +0000)]
- Add a bunch of tests for NtGdiDeleteObjectApp
- Add Is handle valid function to check whether a handle is still valid.

svn path=/trunk/; revision=40199

13 years agoImplement all remaining switches for the START command.
Jeffrey Morlan [Mon, 23 Mar 2009 23:52:50 +0000 (23:52 +0000)]
Implement all remaining switches for the START command.

svn path=/trunk/; revision=40198

13 years agoFix a bug in wcstoul causing it to set *endptr improperly.
Jeffrey Morlan [Mon, 23 Mar 2009 23:51:59 +0000 (23:51 +0000)]
Fix a bug in wcstoul causing it to set *endptr improperly.

svn path=/trunk/; revision=40197

13 years ago- Don't delete an object that has a shared reference!
Timo Kreuzer [Mon, 23 Mar 2009 23:49:00 +0000 (23:49 +0000)]
- Don't delete an object that has a shared reference!
- Implement DC_vSelectSurface, that dereferences the old SURFACE and references the new. Use it instead of doing it manually.
- Select NULL surface when doing cleanup.
- Go back to ASSERT in GDIOBJ_ShareUnlockObjByPtr. Should (hopefully) not be hit anymore.
- Add additional functions for tracing shared locks in gdidbg.c.
- Add debugprints when leaking objects on process cleanup.

svn path=/trunk/; revision=40196

13 years agosetupapi.CMP_RegisterNotification is not a stub anymore,
Sylvain Petreolle [Mon, 23 Mar 2009 22:01:40 +0000 (22:01 +0000)]
setupapi.CMP_RegisterNotification is not a stub anymore,
update cfgmgr32.spec accordingly.

svn path=/trunk/; revision=40192

13 years agoImplement %~$PATH:var variable substitution
Jeffrey Morlan [Mon, 23 Mar 2009 19:54:52 +0000 (19:54 +0000)]
Implement %~$PATH:var variable substitution

svn path=/trunk/; revision=40191

13 years agoActually mark irp pending.
Art Yerkes [Mon, 23 Mar 2009 19:45:21 +0000 (19:45 +0000)]
Actually mark irp pending.

svn path=/trunk/; revision=40190

13 years agoGDIOBJ_ShareUnlockObjByPtr: Temporarily don't ASSERT, but print a backtrace when...
Timo Kreuzer [Mon, 23 Mar 2009 19:11:37 +0000 (19:11 +0000)]
GDIOBJ_ShareUnlockObjByPtr: Temporarily don't ASSERT, but print a backtrace when trying to unlock an object that wasn't locked.

svn path=/trunk/; revision=40189

13 years agoFormatting only, no change.
Art Yerkes [Mon, 23 Mar 2009 18:13:17 +0000 (18:13 +0000)]
Formatting only, no change.

svn path=/trunk/; revision=40188

13 years ago[FORMATTING]
Timo Kreuzer [Mon, 23 Mar 2009 17:47:58 +0000 (17:47 +0000)]
[FORMATTING]
Apply indentation of 4 spaces. Misc formatting improvements. Add some FIXME comments, no code change

svn path=/trunk/; revision=40187

13 years ago- In cmd's PUSHD and POPD commands, change directory using _tchdir.
Jeffrey Morlan [Mon, 23 Mar 2009 14:48:04 +0000 (14:48 +0000)]
- In cmd's PUSHD and POPD commands, change directory using _tchdir.

svn path=/trunk/; revision=40185

13 years ago- Moved the code for updating the drive-specific current-directory environment variab...
Jeffrey Morlan [Mon, 23 Mar 2009 14:47:46 +0000 (14:47 +0000)]
- Moved the code for updating the drive-specific current-directory environment variable out of RTL and into the CRT. Testing on Windows shows that neither RtlSetCurrentDirectory_U or SetCurrentDirectory update these variables, but _tchdir does.

svn path=/trunk/; revision=40184

13 years ago - This should fix a rare afd crash
Cameron Gutman [Mon, 23 Mar 2009 05:05:57 +0000 (05:05 +0000)]
 - This should fix a rare afd crash
 - It was a race condition caused by another thread clearing our IRP while we were still using it

svn path=/trunk/; revision=40183

13 years agoIn the beginning somebody created dc.c. And he saw that it was empty. So he quickly...
Timo Kreuzer [Mon, 23 Mar 2009 03:43:11 +0000 (03:43 +0000)]
In the beginning somebody created dc.c. And he saw that it was empty. So he quickly added some functions to it. And as there were so many nice dc functions, the dc.c quickly got populated with a lot of code. But dc.c must have still felt lonely,
so that people added more and more code, even completely unrelated code. Finally dc.c became a fat wastedump for all the code a developer didn't know where to put.

Clean up this mess by splitting the 3600 line monster file into 5 files and moving some stuff into other files.

svn path=/trunk/; revision=40182

13 years agoAdd "REACTOS Mm Hack of Doom" again (removed in r39723). Bug #4296.
Dmitry Gorbachev [Mon, 23 Mar 2009 00:56:01 +0000 (00:56 +0000)]
Add "REACTOS Mm Hack of Doom" again (removed in r39723). Bug #4296.

svn path=/trunk/; revision=40181

13 years agoInitialize flattrs in EBRUSHOBJ_vInit
Timo Kreuzer [Mon, 23 Mar 2009 00:51:22 +0000 (00:51 +0000)]
Initialize flattrs in EBRUSHOBJ_vInit

svn path=/trunk/; revision=40180

13 years agoBrush rewrite part 1/x
Timo Kreuzer [Mon, 23 Mar 2009 00:38:59 +0000 (00:38 +0000)]
Brush rewrite part 1/x
- Make the EBRUSHOBJ structure somewhat like XPs.
- Make the eboXxx members of the DC real EBRUSHOBJs and initialize them on DC creation. Except for IntArc they are not yet used and there still with the old way of doing it.
- Implement DC_vUpdateXxxBrush functions that update the DCs EBRUSHOBJs after changes to the dcattr.
- Implement EBRUSHOBJ_bRealizeBrush that realizes the brush by either calling the DrvRealizeBrush or EngRealizeBrush, which is currently only stubbed and this functionality is not plugged in due to other broken features.
- EBRUSHOBJ_vInit: Store the RGB color and return it in BRUSHOBJ_ulGetBrushColor.
- Implement EBRUSHOBJ_vSetSolidBrushColor, EBRUSHOBJ_vUpdate and EBRUSHOBJ_vUnrealizeBrush
- Rename PENOBJ_bla to PEN_bla.
- Make GDIOBJ_ShareUnlockObjByPtr an inline function
- Implement GDIOBJ_IncrementShareCount as inline function.
- NtGdiSelectBitmap: keep a shared reference on the selected bitmap.
- EngAssociateSurface: don't ASSERT, but fail if locking the surface handle failed.
- EngModifySurface: use an exclusive lock and handle everything inside this function.

svn path=/trunk/; revision=40179

13 years ago - Implement NdisFreeDmaChannel
Cameron Gutman [Sun, 22 Mar 2009 23:49:24 +0000 (23:49 +0000)]
 - Implement NdisFreeDmaChannel

svn path=/trunk/; revision=40178

13 years ago - Fix a memory leak
Cameron Gutman [Sun, 22 Mar 2009 23:39:57 +0000 (23:39 +0000)]
 - Fix a memory leak

svn path=/trunk/; revision=40177

13 years ago- If we determine that the keyboard buffer is full, only call INT 16h,0 once without...
Colin Finck [Sun, 22 Mar 2009 23:36:48 +0000 (23:36 +0000)]
- If we determine that the keyboard buffer is full, only call INT 16h,0 once without checking again whether the buffer is free afterwards
  Fixes bug #4264
- Get rid of another procedure for getting a character, can be replaced with two instructions in the only place where this procedure was called
See issue #4264 for more details.

svn path=/trunk/; revision=40176

13 years ago - Query MaxMulticastAddresses from the miniport
Cameron Gutman [Sun, 22 Mar 2009 23:28:06 +0000 (23:28 +0000)]
 - Query MaxMulticastAddresses from the miniport

svn path=/trunk/; revision=40175

13 years agoUpdate Japanese translation of Syssetup. Patch from Tomoya Kitagawa (jptomoya|AT...
Dmitry Gorbachev [Sun, 22 Mar 2009 19:58:44 +0000 (19:58 +0000)]
Update Japanese translation of Syssetup. Patch from Tomoya Kitagawa (jptomoya|AT|yahoo|DOT|co|DOT|jp), bug #4295.

svn path=/trunk/; revision=40174

13 years ago- Disable "Back" in last page of syssetup, because it doesn't make any sense.
Matthias Kupfer [Sun, 22 Mar 2009 16:36:16 +0000 (16:36 +0000)]
- Disable "Back" in last page of syssetup, because it doesn't make any sense.

svn path=/trunk/; revision=40173

13 years ago- Clean up my working copy
Johannes Anderwald [Sun, 22 Mar 2009 14:28:50 +0000 (14:28 +0000)]
- Clean up my working copy

svn path=/trunk/; revision=40172

13 years ago- Implement AddFontMemResourceEx and simplify RemoveFontMemResourceEx.
James Tabor [Sun, 22 Mar 2009 05:20:55 +0000 (05:20 +0000)]
- Implement AddFontMemResourceEx and simplify RemoveFontMemResourceEx.

svn path=/trunk/; revision=40171

13 years ago - Fix release build
Cameron Gutman [Sun, 22 Mar 2009 02:02:22 +0000 (02:02 +0000)]
 - Fix release build

svn path=/trunk/; revision=40170

13 years agoMake START command able to open non-executable files/directories/URLs using ShellExec...
Jeffrey Morlan [Sun, 22 Mar 2009 01:51:29 +0000 (01:51 +0000)]
Make START command able to open non-executable files/directories/URLs using ShellExecute. (Bug 4055)

svn path=/trunk/; revision=40169