Commit graph

37656 commits

Author SHA1 Message Date
ReactOS Portable Systems Group
9041b47435 Define ALLOCA_S_MARKER_SIZE for arm
svn path=/trunk/; revision=41871
2009-07-11 12:32:09 +00:00
ReactOS Portable Systems Group
cc54067fdd Just cause it ain't AMD64 ain't meaning it's just x86... so make the macro x86-inclusive instead of x64-exclusive (since we don't want those definitions on ARM either)
svn path=/trunk/; revision=41870
2009-07-11 12:04:26 +00:00
ReactOS Portable Systems Group
b7705f8eeb Fix incorrect use of PVOID for pointer math, hidden by bad typecasts...
svn path=/trunk/; revision=41869
2009-07-11 12:03:28 +00:00
ReactOS Portable Systems Group
fffb5af849 Fix lack of casts in certain intrinsic functions, and add others that were being called but not yet implemented... hopefully 4.4 handles built-in intrinsics for ARM now (remains to be seen)
svn path=/trunk/; revision=41868
2009-07-11 12:02:47 +00:00
ReactOS Portable Systems Group
9964f5e49f KeGetDCacheFillSize is arch-specific, so define it in the x86 region only
svn path=/trunk/; revision=41867
2009-07-11 12:02:05 +00:00
ReactOS Portable Systems Group
a3d7cdabd2 Import the generic template and comment out _M_ARM since the toolchain already defines it.
THE ARM BUILD STARTS UP AGAIN (all host tools and makefiles are generated correctly).
NEW TARGET TOOLCHAIN IS NOW CEGCC 0.55 (GCC-4.4.0).

svn path=/trunk/; revision=41866
2009-07-11 11:52:22 +00:00
Dmitry Chapyshev
4fa43e4494 - Return ERROR_NOT_SUPPORTED error code instead ERROR_CALL_NOT_IMPLEMENTED (in BackupRead, BackupSeek, BackupWrite)
- Direct call for Set(Get)LastError
- Add RemoveVectoredContinueHandler, InterlockedCompareExchange64, GetCurrentProcessorNumber, BaseCheckRunApp, AddVectoredContinueHandler to export list

svn path=/trunk/; revision=41865
2009-07-11 11:50:42 +00:00
ReactOS Portable Systems Group
f1ab67f6ce Too many things in -i386 were still "generic" and had to be duplicated accross plat-specific rbuild files, so moved a whole bunch of them into the generic rbuild.
Ironically, the one thing that isn't generic -- which files get built -- was in the generic file, blocking the arm rbuild from ever being able to use it, so I split this out now.
Cleaned up the i386 and arm rbuild files to use the new generic rbuild.
Brought the arm rbuild file up to spec to use the new compilerset/linkerset and msvc-compliant options.

svn path=/trunk/; revision=41864
2009-07-11 11:47:21 +00:00
ReactOS Portable Systems Group
c1d5a1f6e8 stop building ntdll as a win32dll so we can fucking stop auto-importing mingw_common and kernel32 into it... it's supposed to be built as a /SUBSYSTEM:WINDOWS dll but since rbuild has now decided to fuck around with these DLLs, it's safer to build it as native so it can be left the fuck alone and not auto-import half the tree
svn path=/trunk/; revision=41863
2009-07-11 11:43:49 +00:00
ReactOS Portable Systems Group
9a787312ff __gnu__inline is not supported for a long time in gcc anymore, so remove this to fix a bunch of warnings
svn path=/trunk/; revision=41862
2009-07-11 11:42:29 +00:00
ReactOS Portable Systems Group
c3ca589de0 use %zd for SIZE_T, not just %d
svn path=/trunk/; revision=41861
2009-07-11 11:41:42 +00:00
ReactOS Portable Systems Group
b6f27fe11d Fix a braindead bug that killed my system (512MB) since the loop goes on past 4096 pages if you have enough non paged pool... do you even test this?
svn path=/trunk/; revision=41860
2009-07-11 09:36:18 +00:00
ReactOS Portable Systems Group
2aabdcc5fd - Implement a simple nonpaged pool page allocator and deallocator:
- Not actually used yet!
  - No support for expansion nonpaged pool yet.
  - No major optimizations.
    - We simply do the sane thing of trying to combine the next free allocation with the one we're about to make, on free.
      - If possible, we'll also check if the previous allocation was a free block, and we'll merge ourselves (and in the best case, whoever is following us) into that block instead.
  - No debug checks/validation.
- Write a couple lines of code to allocate and free up to 4096 pages (it will stop when it runs out).
  - This is to properly excercise this code on everyone's machines to make sure it works fine (it adds a little delay to booting, but only temporary).

svn path=/trunk/; revision=41859
2009-07-11 06:46:39 +00:00
Cameron Gutman
08df2017e3 - Initialize remote address to 0 if the caller didn't specify one
svn path=/trunk/; revision=41858
2009-07-11 04:54:44 +00:00
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