Commit graph

37442 commits

Author SHA1 Message Date
Timo Kreuzer 85f298694e Only call the drivers DrvRealizeBrush when called from BRUSHOBJ_pbGetRbrush. The driver might punt back to GDI and gdi might want to realize the brush although the surface is driver managed. Shuffle functions.
svn path=/trunk/; revision=41857
2009-07-11 01:19:39 +00:00
Timo Kreuzer 635703bc86 Fix cleanup in EBRUSHOBJ_vUpdate, that I commented out for testing purposes.
svn path=/trunk/; revision=41856
2009-07-11 01:05:05 +00:00
Timo Kreuzer aede9079c6 [win32k] Implement brush realization part 1 / 2
- Fix BRUSHOBJ_pvGetRbrush, it's supposed to provide a realization, when there is none. For this reason call ENRUSHOBJ_bRealizeBrush, that will call Eng/DrvRealizeBrush to create a realisation. The old implementation never did this and I wonder how 3rd party display drivers were expected to work correctly without this.
- Implement EBRUSHOBJ_pvGetEngBrush working similar to BRUSHOBJ_pvGetRbrush, but providing the engbrush as GDI's realization. It's currently implemented as a handle to a translated pattern and not used anywhere yet.
- Rename EBRUSHOBJ_vUnrealizeBrus to EBRUSHOBJ_vCleanup. This function now needs to be called to free the resources for a BRUSHOBJECT that GDI or a driver might have allocated. This is done in DC_Cleanup before deleting the DC and in EBRUSHOBJ_vUpdate before newly initializing it.
- Get rid of the EBRUSHOBJ's XlateObject, instead for now create new XLATEOBJ's whenever needed. Don't worry these will be gone, as soon as we make use of the engbrush.
- Pass a pointer to the DC to EBRUSHOBJ_vInit, as this allows us to save stuff like the back and fore color.
- Fix a bitmap leak: CallDibStretchBlt returned before releasing the reference to the pattern surface.
- Some FASTCALL -> NTAPI changes
- tested with VBE, VMWare-Tools and VBox driver
- I hope I didn't forget anything

svn path=/trunk/; revision=41855
2009-07-10 23:44:05 +00:00
Stefan Ginsberg a05e363fc9 - Don't link portcls and kmixer to the static version rtl -- those routines are exported by ntoskrnl (and all imports were resolved there anyway).
svn path=/trunk/; revision=41854
2009-07-10 23:13:13 +00:00
Jeffrey Morlan 3c8f7c0167 Rearrange some code in cmd parser, avoiding excessive stack space usage (Bug 4536)
svn path=/trunk/; revision=41853
2009-07-10 22:33:18 +00:00
Cameron Gutman 8cda4903ab - Fix more global variable abuse
- Fix some inaccurate cur_time values

svn path=/trunk/; revision=41852
2009-07-10 21:32:02 +00:00
Benedikt Freisen 2b1fbadac0 - During resizing the future size is shown in the status bar
- Rubber works as color replacer when used with right mouse button
     (mouse handling code reorganized)
- Bug occuring when painting to neg. coordinates finally fixed
- Polygon-tool added
- Bezier-tool added

svn path=/trunk/; revision=41851
2009-07-10 18:21:27 +00:00
Daniel Reimer 6488e69c4a Revert the sync, it breaks build. further investigation will be made next week. 2/2
Sry for the 4 stolen rev numbers ;-)

svn path=/trunk/; revision=41850
2009-07-10 17:25:11 +00:00
Daniel Reimer 91d9b85d53 Revert the sync, it breaks build. further investigation will be made next week. 1/2
svn path=/trunk/; revision=41849
2009-07-10 17:17:43 +00:00
Ged Murphy c58c9ebb32 - Add the task manager to the tray context menu
- Add a bit of code for the tray properties dialog

svn path=/trunk/; revision=41848
2009-07-10 17:10:20 +00:00
Timo Kreuzer 8333c72806 - Move XLATEOBJ_hGetColorTransform to xlate.c
- Implement InitXlateImpl(), that currently does ... nothing :)
- Don't pass a palette type to IntEngCreateXlate, when already passing a valid palette.

svn path=/trunk/; revision=41847
2009-07-10 17:01:12 +00:00
Daniel Reimer 5b403acdfc Update Wordpad, winhlp32, xcopy to Wine HEAD.
svn path=/trunk/; revision=41846
2009-07-10 16:57:06 +00:00
Daniel Reimer 6de49104bf Update Winfile to Wine HEAD.
svn path=/trunk/; revision=41845
2009-07-10 16:55:08 +00:00
Johannes Anderwald b046ce1926 [KS]
- The pin creation parameters are now placed right after the reference string. Handle this case in KsValidateConnectRequest
- Only store the passed create items, no need  to copy the passed create items. This is required for enabling dynamic audio devices
- Fix copying of the object class in KsAllocateObjectHeader
- Check for KSCREATE_ITEM_IRP_STORAGE flag in KsCreate
[PORTCLS]
- Reduce initial audio buffer to about 1/3 second which greatly improves performance
[SYSAUDIO]
- Remove concept of audio subdevices
- Remove imported KsCreatePin
- Replace OpenDevice loop hack

svn path=/trunk/; revision=41842
2009-07-10 15:14:56 +00:00
Johannes Anderwald 976cb25f51 - Add create item flags
svn path=/trunk/; revision=41841
2009-07-10 14:41:14 +00:00
Timo Kreuzer 660f744f6f Add static palettes gpalRGB and gpalBGR. They will be used later.
svn path=/trunk/; revision=41840
2009-07-10 13:40:36 +00:00
Dmitry Chapyshev 312cc46636 - Add user mode buffer probing for NtCreateKey, NtEnumerateKey, NtEnumerateValueKey, NtQueryKey, NtQueryValueKey
svn path=/trunk/; revision=41839
2009-07-10 10:02:37 +00:00
Cameron Gutman 4af59e7e33 - Use the target hardware address to find the correct DHCP_ADAPTER for the received packet
svn path=/trunk/; revision=41838
2009-07-10 01:15:51 +00:00
Stefan Ginsberg 2dbd55ac66 - Fix a serious bug in KiDispatchException; DbgkForwardException got called with the SecondChance parameter set to FALSE when forwarding second chance exceptions to user mode debuggers! This bug, introduced in revision 23802, made second chance exceptions appear as first chance to user mode debuggers (meaning unhandled exceptions wouldn't get caught). Bug exposed by the ntdll winetest.
svn path=/trunk/; revision=41837
2009-07-10 01:06:09 +00:00
Johannes Anderwald e421f65c2b - Remove obsolete DbgBreakPoint
svn path=/trunk/; revision=41836
2009-07-09 22:04:31 +00:00
Johannes Anderwald d50238833b - Fix a bug which was responsible for most audio-related crashes
- Found by DosX (Gregor Schneider)
- Fix memory leak

See issue #4674 for more details.

svn path=/trunk/; revision=41835
2009-07-09 21:49:04 +00:00
Timo Kreuzer 2d834b1bdd freeldr: Remove duplicated / unused files for amd64 architecture
See issue #4672 for more details.

svn path=/trunk/; revision=41834
2009-07-09 21:41:58 +00:00
Cameron Gutman e99d1fe3f9 - Implement IOCTL_AFD_SET_INFO
- We currently disregard the value of BlockingMode so this causes no behavior change

svn path=/trunk/; revision=41833
2009-07-09 16:47:11 +00:00
Cameron Gutman 5571325492 - Don't overwrite previously set flags
svn path=/trunk/; revision=41832
2009-07-09 15:55:29 +00:00
Dmitry Gorbachev 52f4e2b161 Add an assertion. Bug #4670.
svn path=/trunk/; revision=41831
2009-07-09 14:56:59 +00:00
Johannes Anderwald c70e3fd433 - Fix a few bugs in the sample rate conversion code
- Might fix playback for audio samples out of audio adapter supported range

svn path=/trunk/; revision=41830
2009-07-09 14:09:27 +00:00
Timo Kreuzer 7b83de4325 - Move GDI_DEBUG stuff to make it compile again
- Comment out some GDI_DEBUG prints related to deferred deletion, as this floods the log too much

svn path=/trunk/; revision=41829
2009-07-09 13:36:42 +00:00
Johannes Anderwald fb73a62428 - Stop removing good code, Arch!
svn path=/trunk/; revision=41828
2009-07-09 13:23:00 +00:00
ReactOS Portable Systems Group 16e52e7c46 - Fix a critical bug in the German hack which was causing the last PDE not to be synched with the ReactOS Memory Manager (or worse, the first, if there was only one PDE).
- Add a new file which will hold the executive layer above the pool allocator (the Ex* routines).
  - This should eventually be moved to \ex.
  - Note that the current ReactOS pool Ex* routines are in \mm, which is dead wrong.
- Define the POOL_DESCRIPTOR and POOL_HEADER structures for the NT 5.2 pool.
- Define, create, and implement the routine to initialize a pool vector.
  - For now, we assume you want the nonpaged pool vector/descriptor.
  - Call this routine from the ARM3 initialization routine.
- No changes to system behavior other than the bugfix above.


svn path=/trunk/; revision=41824
2009-07-09 09:33:49 +00:00
Dmitry Chapyshev 62951bd925 - Update Russian translation
svn path=/trunk/; revision=41823
2009-07-09 06:16:10 +00:00
Timo Kreuzer 69d04cfc34 Get rid of the DCs XlateBrush and XlatePen. The resulting code isn't any better yet, but this step is needed for the upcoming xlateobj rewrite.
svn path=/trunk/; revision=41820
2009-07-08 21:53:35 +00:00
Timo Kreuzer 903a26ae64 BltMask: remove unnecessary check
svn path=/trunk/; revision=41819
2009-07-08 21:35:33 +00:00
Timo Kreuzer 9a36897e48 IntGdiPolyPatBlt: Don't unnecessarily update the dc's brush, improve and simplyfy code,
svn path=/trunk/; revision=41818
2009-07-08 21:05:37 +00:00
Stefan Ginsberg 915bec118b - Revert 41788, replaced by a real fix in 41815.
See issue #4663 for more details.

svn path=/trunk/; revision=41817
2009-07-08 21:04:54 +00:00
Stefan Ginsberg c589c03a22 - NtUserMessageCall: Fix probe-and-capture for the FNID_BROADCASTSYSTEMMESSAGE case -- win32k must copy user mode buffers to safe memory before reading from them (or wrap the operations in SEH). Copy the buffer to the stack as it is small.
svn path=/trunk/; revision=41816
2009-07-08 20:41:58 +00:00
KJK::Hyperion 488bf13922 modified lib/pseh/i386/framebased-gcchack.c
Notorious ass-clown Arch Blackmann forgot to pop the trylevel that handled an exception. Subsequent throws would keep being caught by the same trylevel over and over again, and infinite loops are indeed possible. Eat shit and die, Arch
   If test_bug_4663 test in the PSEH2 test suite is actually representative of the bug, the bug itself may have been fixed

svn path=/trunk/; revision=41815
2009-07-08 20:32:50 +00:00
KJK::Hyperion 3728596a8e modified pseh2/psehtest.c
We need a bigger boat. Improve the test for bug #4663

svn path=/trunk/; revision=41814
2009-07-08 20:28:33 +00:00
Gregor Schneider 973a9493c4 According to http://msdn.microsoft.com/en-us/library/tcxf1dw6(VS.71).aspx and http://www.cplusplus.com/reference/clibrary/cstdio/printf/ there are no %le and %lf printf formats. The 'l' specifier is used for integers or wide characters, 'L' for long double. Outputting a double doesn't require any additional specifier (see http://msdn.microsoft.com/en-us/library/hf4y5e3w(VS.71).aspx).
svn path=/trunk/; revision=41813
2009-07-08 20:06:11 +00:00
KJK::Hyperion 9060c87bad modified include/reactos/libs/pseh/pseh2.h
Only leave the frame in the outermost _SEH2_END (like in PSEH1)

svn path=/trunk/; revision=41812
2009-07-08 19:52:48 +00:00
KJK::Hyperion d6dcda9708 modified tests/pseh2/psehtest.c
Don't use ok() when we mean trace()
   Fix the stack after corruption of the registration list
   Revised figures: "only" FOURTY of ninety-three tests fail with a corrupted registration list

svn path=/trunk/; revision=41811
2009-07-08 19:40:54 +00:00
KJK::Hyperion dfccee750d modified tests/pseh2/psehtest.c
Test case for bug #4663 (still unsolved)
   New sanity check for correct unlinking of the frame. !!!EIGHTY TESTS OUT OF NINETY-THREE CURRENTLY FAIL THIS!!!

svn path=/trunk/; revision=41810
2009-07-08 19:30:02 +00:00
Jeffrey Morlan 24fe0f5f8c In cmd: free all memory before exiting to prevent "memory leak" messages (bug 4510). Also, CMD /? should exit with a code of 1 instead of 0.
svn path=/trunk/; revision=41808
2009-07-08 17:28:21 +00:00
Thomas Bluemel 6ddc722505 Simplify code, thx Ged
svn path=/trunk/; revision=41807
2009-07-08 16:57:12 +00:00
Timo Kreuzer 3fc14e0331 [FORMATTING]
no code change

svn path=/trunk/; revision=41806
2009-07-08 16:19:11 +00:00
Thomas Bluemel 8d45a2401a Allow activating tasks
svn path=/trunk/; revision=41805
2009-07-08 14:33:25 +00:00
Cameron Gutman 137c0f6dd5 - Fix retrieval of the default gateway (missing default gateway in ipconfig)
svn path=/trunk/; revision=41803
2009-07-08 07:33:12 +00:00
Cameron Gutman 43a5a4bdb5 - Remove an old hack (r14812) which limited ROS to use only one DNS server
svn path=/trunk/; revision=41802
2009-07-08 07:02:33 +00:00
KJK::Hyperion 1aef6c7fa4 Reverting part of r40006 that introduced a regression (Arch Blackmann HAS been committing to mingw-w64). A real fix, if this is hiding a bug elsewhere, will have to wait until a proper vendor drop of mingw-w64
svn path=/trunk/; revision=41801
2009-07-08 00:48:05 +00:00
Gregor Schneider 453d1d9077 AlphaBlend:
- Return immediately if any bitmap size is smaller than zero
- Also check calculated input bitmap size against source size
- Remove outdated FIXME
- Fixes three gdi32 bitmap winetests

svn path=/trunk/; revision=41800
2009-07-07 16:58:36 +00:00
Gregor Schneider e80cf32fd5 Geoffroy Couprie <geo DOT couprie AT gmail DOT com>:
- Fix a printf case, where the exponent is zero
- Implement exponent increment/decrement for printf in scientific notation
My changes <grschneider AT gmail DOT com>:
- Change some lessequal/greaterequal to equal
- Exchange OR with AND operation
- Modify patch identation to match current code, remove FIXME
- Skipped the ecvt part of the patch (not needed, sprint has the bugs)
- Fixes five msvcrt printf winetests, see bug #4584 for more information

svn path=/trunk/; revision=41799
2009-07-07 16:19:34 +00:00