Commit graph

37488 commits

Author SHA1 Message Date
Johannes Anderwald 1ad4b7ad1f - Fix build (2/X)
svn path=/trunk/; revision=41904
2009-07-12 00:37:48 +00:00
Johannes Anderwald 4e2840db1d [AUDIO_TEST]
- Fix build

svn path=/trunk/; revision=41903
2009-07-12 00:23:09 +00:00
Johannes Anderwald 56e5803f59 [MMEBUDDY]
- Pass DeviceId to GetDeviceCapabilities function
[WDMAUD.DRV]
- Use DeviceId to determine the capabilities of the requested device, not just always the first one

svn path=/trunk/; revision=41902
2009-07-11 23:49:24 +00:00
Johannes Anderwald a0e15ca40c - Use free index directly
- Update interface

svn path=/trunk/; revision=41901
2009-07-11 23:23:40 +00:00
Johannes Anderwald 14ecd271ba - Implement retrieving position
svn path=/trunk/; revision=41900
2009-07-11 23:21:41 +00:00
Johannes Anderwald 85cde828b2 - Implement retrieving position
svn path=/trunk/; revision=41899
2009-07-11 23:21:09 +00:00
Johannes Anderwald dec6dd70e3 - Add function for retrieving current position
svn path=/trunk/; revision=41898
2009-07-11 23:20:22 +00:00
James Tabor a522461492 - Global/LocalFlags, now checking the right bit for discared heap and not doing it the wine way.
svn path=/trunk/; revision=41896
2009-07-11 22:52:36 +00:00
James Tabor 471fee4cfa - Fix Global/LocalFlags returns. Now pass all kernel32 heap tests.
svn path=/trunk/; revision=41895
2009-07-11 22:14:19 +00:00
Johannes Anderwald 1e3850cd25 [WDMAUD.DRV]
- The wave / mixer / midi handles are kernel handles, consequently wdmaud_kernel must close them

svn path=/trunk/; revision=41894
2009-07-11 22:02:30 +00:00
Dmitry Chapyshev 66a1d260cb - Set status to STATUS_OBJECT_NAME_INVALID if NtCreateMailslotFile returned STATUS_NOT_SUPPORTED
svn path=/trunk/; revision=41893
2009-07-11 20:34:33 +00:00
Timo Kreuzer ba31bc03ca [win32k] Implement brush realization part 2 / 2
Use EBRUSHOBJ_pvGetEngBrush to get a handle to the realized (color translated) brush and use this instead of the original pattern when doing patblts. We don't use any XLATEOBJ anymore. I'll leave it to the interested reader to cleanup the DIB code from remnants of pattern to dest color translation.

svn path=/trunk/; revision=41892
2009-07-11 20:15:37 +00:00
Johannes Anderwald 9e97547323 - Implement dynamic unregistration of physical connections
- Implement IUnregisterPhysicalConnection interface for all port drivers


svn path=/trunk/; revision=41891
2009-07-11 19:01:18 +00:00
Johannes Anderwald 9913f96067 - Implement dynamic unregistration of audio devices
- IoGetDeviceProperty expects the PDO, not FDO
- Implement IUnregisterSubdevice interface for all port drivers


svn path=/trunk/; revision=41890
2009-07-11 17:44:41 +00:00
Jeffrey Morlan 038d68b156 Don't use non-portable %zd format. Instead, use %d and cast the variable to an int to ensure printf can read the argument properly
svn path=/trunk/; revision=41889
2009-07-11 16:16:39 +00:00
Matthias Kupfer 8022a4015e make status window parts more flexible in size
svn path=/trunk/; revision=41888
2009-07-11 15:59:46 +00:00
Dmitry Chapyshev e58af99cc1 - Fix 3 "kernel32_winetest environ" tests. All environ tests passed now
svn path=/trunk/; revision=41887
2009-07-11 14:18:06 +00:00
Johannes Anderwald 76d872ed01 [KMIXER]
- Set KSCREATE_ITEM_WILDCARD flag to receive all requests in one handler
-- 
Kmixer is now back accessible

svn path=/trunk/; revision=41886
2009-07-11 13:52:36 +00:00
Michael Martin 6181543561 - NtMapViewOfSection: When referencing the section object by handle, don't assume access mask of SECTION_MAP_READ. Access mask must be determined from page protection attributes passed in Protect parameter. Fixes 5 winetests for kernel32 virtual.
svn path=/trunk/; revision=41885
2009-07-11 13:40:56 +00:00
Dmitry Chapyshev fad802aace - Fix one "kernel32_winetest time" test. All time tests passed now
svn path=/trunk/; revision=41884
2009-07-11 13:35:38 +00:00
Matthias Kupfer 0937dce274 use application icon for about dialog
svn path=/trunk/; revision=41883
2009-07-11 13:34:18 +00:00
ReactOS Portable Systems Group 73972e4928 Fix the signature of tcsrchr. The last prameter is a TCHAR, not a XINT.
svn path=/trunk/; revision=41882
2009-07-11 13:12:09 +00:00
ReactOS Portable Systems Group db532903fb Don't build stack-based WINE exception handling on ARM -- we have .pdata
svn path=/trunk/; revision=41881
2009-07-11 13:11:44 +00:00
ReactOS Portable Systems Group 3622a2263a *** WE WILL NOW BE FOCUSING AND BUILDING FOR ARM CORTEX-A8 (ARMv7) ***
***   SUPPORT FOR ARMv6 WILL ALSO BE ENFORCED, BUT NOTHING LOWER   ***
***       THE TARGET PLATFORM IS TI OMAP3-35xx and OMAP3-34xx      ***

svn path=/trunk/; revision=41880
2009-07-11 13:04:46 +00:00
ReactOS Portable Systems Group a9f8283eba Fix PSEH2 ARM neutering
svn path=/trunk/; revision=41879
2009-07-11 13:02:22 +00:00
ReactOS Portable Systems Group 0c7489b058 Also define PAGE_SIZE in armddk.h if it isn't already defined (allows cmlib to compile, amongst others)
svn path=/trunk/; revision=41878
2009-07-11 13:00:09 +00:00
ReactOS Portable Systems Group 0e36ca655c GAS should also receive the -march flag, not just the compiler... otherwise, gcc won't let you use things like "cmov" on x86, or anything beyond the armv4 instruction set on ARM
svn path=/trunk/; revision=41877
2009-07-11 12:57:41 +00:00
ReactOS Portable Systems Group f00eeb0707 WINNT.H already defines CONTEXT so avoid a double-definition if ARMDDK is included
svn path=/trunk/; revision=41876
2009-07-11 12:36:20 +00:00
ReactOS Portable Systems Group 8473ade2b8 Define PAGE_SIZE in winnt.h for now, for modules that don't include the NDK, and then make the NDK and WINNT.H safe to use combined
svn path=/trunk/; revision=41875
2009-07-11 12:35:29 +00:00
ReactOS Portable Systems Group de1eda4f79 How was this code even supposed to compile???
svn path=/trunk/; revision=41874
2009-07-11 12:34:25 +00:00
ReactOS Portable Systems Group 6f78cdb634 Make rotl what the headers expect
svn path=/trunk/; revision=41873
2009-07-11 12:33:10 +00:00
ReactOS Portable Systems Group 69b01954bd Neuter PSEH2 on ARM
svn path=/trunk/; revision=41872
2009-07-11 12:32:38 +00:00
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