Commit graph

35861 commits

Author SHA1 Message Date
Colin Finck 0ba8c8e16a Enable the Crash Recovery feature when doing the RegTest.
Now the new sysreg2 just needs to be set up on the Buildslave and we might finally be able to remove all those "Skip Test xyz, because ROS sucks" hacks.

svn path=/trunk/; revision=40157
2009-03-21 12:21:12 +00:00
Aleksey Bragin d40a356433 - Allocate and initialize setup loader block.
- Add setup loader block pointer conversion to WinLdrInitializePhase1 (if it exists). 
- Temporary: provide empty boot options string.

svn path=/trunk/; revision=40156
2009-03-21 11:11:44 +00:00
Aleksey Bragin 8e3572a7e6 - Remove obsolete Doxyfile config files. Spotted by Alexey Komarov.
svn path=/trunk/; revision=40152
2009-03-21 10:34:24 +00:00
Dmitry Gorbachev 5306bb8631 Do not forward TraceMessage() to itself.
svn path=/trunk/; revision=40150
2009-03-21 07:11:56 +00:00
Jeffrey Morlan 9618066a26 - When running a non-executable file, if the program handling the file type is a console program (e.g. Perl/Python) it should run in the same console as cmd, and cmd should wait for it. Implement this by using ShellExecuteEx instead of plain ShellExecute, with the SEE_MASK_NOCLOSEPROCESS and SEE_MASK_NO_CONSOLE flags. (SEE_MASK_NO_CONSOLE does the opposite of its MSDN description)
- Use NULL as the lpVerb to get the default action ("open" is not necessarily the default)
- Allow passing parameters besides just the file name

svn path=/trunk/; revision=40148
2009-03-21 02:12:23 +00:00
Colin Finck 10f13abcb5 Big testing system commit
rosautotest
- Rewrite rosautotest in C++
  Should increase maintainability and expandability, since most of the functionality is encapsulated in classes and there exist some abstract classes for further enhancements (i.e. new test types).
  Furthermore, due to the usage of STL strings, we don't need x lines anymore just for building a string out of several small parts.
- The new codebase made it fairly easy to implement a Crash Recovery feature based on a journal.
  If you start rosautotest with the /r option under ReactOS, it will keep a journal about the tests to run and the tests already ran. In case of a crash, it can just continue with the next test in the list then.
- Add some reasonable timeouts to avoid certain hangs in case a test crashes

sysreg2
- Make the necessary changes to sysreg2 to restart the VM in case of such a crash in 3rd stage, but set a maximum number of allowed crashes as well.
  Christoph, please test and review that on the Buildslave :-)
- Prepend all sysreg messages with [SYSREG] through a new function SysregPrintf, so the BuildBot aggregator script of testman can distinguish between debug output and sysreg messages.
- Put all header includes into the central header file "sysreg.h"
- Remove unnecessary libs from the Makefile

testman
- Change the testman Web Interface to show such crashes as CRASH in the Compare and Detail views.

svn path=/trunk/; revision=40147
2009-03-21 01:39:04 +00:00
Timo Kreuzer d225ab948e Fix build.
svn path=/trunk/; revision=40146
2009-03-21 00:25:52 +00:00
Timo Kreuzer 946deefb20 Rename IntGdiInitBrushInstance to EBRUSHOBJ_vInit and move it to engbrush.c. Add 2 FIXME comments.
svn path=/trunk/; revision=40145
2009-03-20 23:40:59 +00:00
Jeffrey Morlan 38dec447a2 Replace hard-coded English string constants with translatable resource strings. (Bug 3718)
svn path=/trunk/; revision=40144
2009-03-20 23:16:12 +00:00
Timo Kreuzer 87e87cd3bf Start to cleanup the mess that claims to be our brush implementation: Rename GDIBRUSHOBJ to BRUSH and GDIBRUSHINST to EBRUSHOBJ. Because that's what it is and nothing else. Rename several BRUSHOBJ_xxx functions to BRUSH_xxx, as they deal with a BRUSH, not a BRUSHOBJ.
There is a strict difference between a BRUSH and an (E)BRUSHOBJ. Please don't mix this up by giving them all names like BrushObj. Please use (proper!) hungarian notation.

Now the willing reader might actually get a clue how this stuff is supposed to work and maybe also realize how broken it is.

svn path=/trunk/; revision=40143
2009-03-20 22:40:14 +00:00
Cameron Gutman d9e83ed22d - Reorganize NDIS code
svn path=/trunk/; revision=40142
2009-03-20 21:29:53 +00:00
Cameron Gutman d162807f59 - Implement NdisFreeSharedMemory
svn path=/trunk/; revision=40141
2009-03-20 20:51:05 +00:00
Cameron Gutman 2e3301d050 - Implement NdisAllocateSharedMemory
svn path=/trunk/; revision=40140
2009-03-20 20:45:27 +00:00
Cameron Gutman 1088b50413 - Implement NdisMCreateLog, NdisMCloseLog, and NdisMFlushLog
- Patch by Dmitry Chapyshev (with modifications by me)

svn path=/trunk/; revision=40139
2009-03-20 20:43:43 +00:00
Cameron Gutman 8fd6d0bbd8 - Implement NdisDeregisterAdapterShutdownHandler, NdisMapIoSpace, and NdisRegisterAdapterShutdownHandler
- Move NdisCompleteDmaTransfer to 40gone.c

svn path=/trunk/; revision=40138
2009-03-20 20:14:01 +00:00
Timo Kreuzer b4cc54f089 Rename GDIDEVICE to PDEVOBJ. Is seems ms uses both PDEV and PDEVOBJ, whith the latter being the C++ representation. But we don't use C++ and PDEVOBJ seems to be a more appropriate name, as PDEV is often used by display drivers.
Make DC.ppdev of type PDEVOBJ* and remove a bunch of typecasts.

svn path=/trunk/; revision=40137
2009-03-20 18:02:55 +00:00
Christoph von Wittich f0b2b4bfa6 add some new (incomplete) network headers
svn path=/trunk/; revision=40136
2009-03-20 15:08:12 +00:00
Timo Kreuzer b2ab2d049e rename DC.Dc_attr to dcattr, DC.DcLevel to dclevel, just like in gdikdx. Some naming improvement, remove an excessive variable.
svn path=/trunk/; revision=40135
2009-03-20 14:16:01 +00:00
Christoph von Wittich 59ceaaac16 use ncalrpc instead of a named pipe
svn path=/trunk/; revision=40134
2009-03-20 13:44:06 +00:00
Christoph von Wittich 893ccc059d -allow to stop the service
-listen for rpc calls

svn path=/trunk/; revision=40133
2009-03-20 13:43:43 +00:00
Dmitry Chapyshev f82ac0fc93 - Implement NdisMapFile
- Implement NdisUnmapFile

svn path=/trunk/; revision=40129
2009-03-20 10:21:17 +00:00
Timo Kreuzer c0ee5e5328 rename DCs pDc_Attr to pdcattr, like in gdikdx.
Make pdcattr alsways point to a DC_ATTR, either the user mode struct or the local part. Get rid of all the If (!pdcattr) pdcattr = &dc->Dc_Attr; That are not required anymore.

svn path=/trunk/; revision=40115
2009-03-20 04:51:26 +00:00
Cameron Gutman fb05aeee09 - Implement NdisCompleteUnbindAdapter
svn path=/trunk/; revision=40113
2009-03-20 03:45:35 +00:00
Cameron Gutman cf85baa5fa - Implement NdisGetDriverHandle
svn path=/trunk/; revision=40112
2009-03-20 03:26:12 +00:00
Timo Kreuzer af62ba6188 Change most DC struct members to the names they have on Windows according to gdikdx
svn path=/trunk/; revision=40111
2009-03-20 01:35:49 +00:00
Cameron Gutman b2490d5d64 - DmaSize is NDIS_DMA_SIZE not BOOLEAN
- DmaWidth and DmaSpeed aren't used for bus-master DMA

svn path=/trunk/; revision=40110
2009-03-20 01:07:09 +00:00
Cameron Gutman ac73f877b3 - Implement NdisMRegisterDmaChannel and NdisMInitializeScatterGatherDma
svn path=/trunk/; revision=40109
2009-03-20 00:26:53 +00:00
Cameron Gutman cea9babf80 - Implement NdisMQueryAdapterInstanceName
svn path=/trunk/; revision=40108
2009-03-20 00:19:53 +00:00
Cameron Gutman fed96b0d69 - Implement NdisMDeregisterDmaChannel
- My branch needs to be synced with trunk so I'm not using it right now (plus these changes aren't likely to break anything)

svn path=/trunk/; revision=40107
2009-03-19 23:02:12 +00:00
Aleksey Bragin d94693c32a - Don't try to be smarter than Windows and don't copy background/foreground color from the original DC. Spotted and confirmed by Evgeniy Boltik. As a result issues in bug 4143 are fixed, as well as other possible problems.
See issue #4143 for more details.

svn path=/trunk/; revision=40106
2009-03-19 21:30:46 +00:00
Johannes Anderwald c8eaa18003 - Experimental implementation of _RpcEnumInterfaces
- If'd out as GetIfEntry2 is not yet implemented

svn path=/trunk/; revision=40104
2009-03-19 16:57:46 +00:00
Aleksey Bragin d9d83e8fb1 Evgeniy Boltik <bstsoft@narod.ru>
- Rework 8bit DIB alphablend to do alpha operations in source's palette (32bpp) to obtain much better output quality with lowest possible quality loss.
See issue #4291 for more details.

svn path=/trunk/; revision=40103
2009-03-19 16:56:07 +00:00
Timo Kreuzer 8d620098f5 win32k RECT/RECTL issues:
- Although RECT and RECTL are defined equal, the compiler treats them as incompatible. MS has created a lot of definitions with RECT and a lot with RECTL. So far we had to typecast them. Now with adding some defines into a win32k header file, we can finally treat them as equal inside win32k and get rid of a lot of type casts. Also use RECTL in favour of RECT internally, as this is the type that MS uses for the DDI and seems to be the more appropriate type.
- We had a lot of "const PRECT" stuff inside win32k. Note: there's difference between "const RECT *" (what you currently want) and "CONST PRECT" (which you proabably don't want). Despite the fact that CONST is not an official modifier (please stick to const) the main difference is that the former describes a pointer to a constant structure, while the latter describes a constant pointer to a modifyable structure.
- In an attempt to clean up the overpolluted IntGdi namespace, "objectify" the rect functions, moving them into their own namespace RECTL_Xxx.

svn path=/trunk/; revision=40100
2009-03-19 01:42:34 +00:00
Timo Kreuzer ee6542397d Merge 39375 from amd64 branch:
csrsrv: convert to spec (Timo Kreuzer)

svn path=/trunk/; revision=40099
2009-03-19 00:38:59 +00:00
Timo Kreuzer 24740374a1 remove UNW flags from winnt.h, they don't belong there
svn path=/trunk/; revision=40098
2009-03-18 22:58:49 +00:00
Timo Kreuzer 2a59efd748 merge r40095 from amd64 branch
svn path=/trunk/; revision=40097
2009-03-18 19:28:54 +00:00
Jeffrey Morlan a98a143a48 - Make MEMORY command use GlobalMemoryStatusEx if available, so it can show values >= 4GB.
- Fix overflow bug in FREE command that caused values >= 4GB to wrap around.
- A little simplification of ConvertULargeInteger function

svn path=/trunk/; revision=40094
2009-03-18 18:11:19 +00:00
Timo Kreuzer de32a44cb9 Add DDI_DRIVER_VERSION_NT5_01_SP1
svn path=/trunk/; revision=40091
2009-03-18 17:13:23 +00:00
Timo Kreuzer 1ec5957c2c add missing definition of MultiplyHigh and UnsignedMultiplyHigh, fix typos.
svn path=/trunk/; revision=40090
2009-03-18 17:12:57 +00:00
Timo Kreuzer 5e3ee25bd3 Merge from amd64 branch:
34750 Add ExpChangePushlock macro for _WIN64 (Timo Kreuzer)
34941 Fix usage of InterlockedExchangeAddSizeT (Timo Kreuzer)

svn path=/trunk/; revision=40089
2009-03-18 17:03:58 +00:00
Dmitry Chapyshev 6c4ccad5b0 - Change icon for Network Connections folder
svn path=/trunk/; revision=40086
2009-03-18 09:31:53 +00:00
Dmitry Chapyshev 63c838d70d - Update toolbars bitmaps
- Set toolbars height to 16

svn path=/trunk/; revision=40085
2009-03-18 08:54:19 +00:00
Jeffrey Morlan 3a52766a90 - Implement SHIFT /n.
- Make prompt code $T and %TIME% have the hours space-padded, not zero-padded.
- Allow delayed expansion in the parameter of IF ERRORLEVEL.

svn path=/trunk/; revision=40084
2009-03-18 03:52:58 +00:00
Jeffrey Morlan 466a9064a2 Fix a typo
svn path=/trunk/; revision=40083
2009-03-17 22:53:13 +00:00
Jeffrey Morlan ef4415728b - Implement MKLINK command.
- Remove unused library shell32 from cmd.rbuild.

svn path=/trunk/; revision=40082
2009-03-17 22:27:33 +00:00
James Tabor 9fdb6d5596 - Rename gdi entry flag.
svn path=/trunk/; revision=40081
2009-03-17 21:50:47 +00:00
Timo Kreuzer baa5b4b9e6 "same thing in BmfdUnloadFontFile btw :p"
Thanks Stefam again.

svn path=/trunk/; revision=40080
2009-03-17 21:39:17 +00:00
Timo Kreuzer b12cd7a282 Don't access the font structure after it was freed. Spotted by Stefan.
svn path=/trunk/; revision=40079
2009-03-17 21:29:17 +00:00
Timo Kreuzer 8f4fd76b65 C++ comment style -> C comment style
See issue #4284 for more details.

svn path=/trunk/; revision=40078
2009-03-17 20:30:16 +00:00
Colin Finck 9ffc9028a2 Sync CRT initialization code with mingw-w64 r690
- Fixed initialization for Console apps with Unicode entry point. Now stuff like "cout" in <iostream> doesn't lead to instant crashes.
- Unified the name of the entry point for ANSI and Unicode. The difference is just in the library now ("mingw_main" vs. "mingw_wmain")
  RBuild was changed appropriately to support this
- No more ReactOS-specific changes inside the initialization code

svn path=/trunk/; revision=40077
2009-03-17 20:17:02 +00:00