Commit graph

3845 commits

Author SHA1 Message Date
Dmitry Gorbachev 3d0a8cc2a9 ... and dxg,
svn path=/trunk/; revision=42927
2009-08-24 20:10:03 +00:00
Stefan Ginsberg 53cbc6c4a3 - Missed these in 42915
svn path=/trunk/; revision=42917
2009-08-24 17:38:50 +00:00
Stefan Ginsberg ea23cd10c2 - Start deprecating TAG()
- Fix inverted tags in prntfont.h, stdunk.h and win32k/objects/font.c

svn path=/trunk/; revision=42915
2009-08-24 17:12:25 +00:00
Johannes Anderwald 7776fec6ce - Check that all pins have been closed when the last filter reference is gone
- Fix freeing of stream data (hacked atm)
- Implement retrieving of all property items for PinWaveCyclic

svn path=/trunk/; revision=42913
2009-08-24 13:00:14 +00:00
Johannes Anderwald 63b3ed6d1e - Fix calling property handler in IKsFilter_DispatchDeviceIoControl
- Found by [[Amine Khaldi]]
- Implement handling of KSPROPERTY_TYPE_BASICSUPPORT

svn path=/trunk/; revision=42910
2009-08-24 12:21:20 +00:00
Johannes Anderwald d3f226afd5 [KS]
- Fix a few bugs in KsPinPropertyHandler & KsTopologyPropertyHandler
[PORTCLS]
- Implement retrieving KSPROPSETID's
- Register KSCATEGORY_AUDIO_DEVICE as a temporary hack untill sysaudio is able to register device interfaces (bug 4556)
Ks Studio is now able to instantiate audio filters on ReactOS

svn path=/trunk/; revision=42892
2009-08-23 22:50:09 +00:00
Stefan Ginsberg 9f8b94600e - copy.c, view.c: malloc.h now properly implements alloca/_alloca, so remove #ifdef hacks
- main.c: Change bogus #ifdef _MSC_VER to #if 0 -- it seems this is another instance of "MSVC = MS' headers". The code compiles fine with our headers now and should probably be enabled.
- debug.h: Define non-NDEBUG DPRINT the same way for GCC and MSVC. The MSVC version was never inlined because the function has a variable argument list. The GCC version works fine under MSVC so use it instead. Results in neater code in object files.

svn path=/trunk/; revision=42884
2009-08-23 15:49:43 +00:00
Johannes Anderwald 612682d56c - Code polishing
svn path=/trunk/; revision=42880
2009-08-23 13:08:28 +00:00
Johannes Anderwald 8e1d22f818 - Fix exporting of CBaseUnknown
svn path=/trunk/; revision=42879
2009-08-23 13:00:09 +00:00
Johannes Anderwald 9b074f69c7 - Implement CBaseUnknown class functions in C!
- Thanks To KJK::Hyperion for helping
- Function are not yet exported

svn path=/trunk/; revision=42878
2009-08-23 12:50:02 +00:00
Matthias Kupfer c98133c6af - halve and round up (improved version) ;-)
svn path=/trunk/; revision=42838
2009-08-22 09:26:13 +00:00
Johannes Anderwald 0248a689e4 [KS]
- Store input buffer in Irp->AssociatedIrp.SystemBuffer
- Add check
[PORTCLS]
- Add support for DirectKs

svn path=/trunk/; revision=42837
2009-08-21 22:46:18 +00:00
Johannes Anderwald 5ad980f439 - IOCTL_KS_WRITE_STREAM passes the data in the OutputBuffer, not InputBuffer
svn path=/trunk/; revision=42834
2009-08-21 19:38:45 +00:00
Stefan Ginsberg cd731afde1 - Fix EXT2 IFS for msvc:
- Fix SEH for MSVC
  - Disable C4003 (caused by the try_return mess)
  - Add missing NTAPI to Ext2GetCurrentTime

svn path=/trunk/; revision=42831
2009-08-21 17:39:37 +00:00
Stefan Ginsberg 43b07d3f6a - svchost: #ifdef _MSC_VER doesn't mean "using Microsoft's headers" anymore
- ddraw, imm32, msxml3, oleaut32, riched20: Include typeof.h for typeof emulation when compiling under MSVC and remove from ReactOS-generic.rbuild (this can't go to port.h as the modules do not include it).
- TCPIP: Fix a check for MSVC.
- NDIS: Don't use floating point arithmetics in kernel mode -- spotted by MSVC trying to link to ftol (gcc inlined the operation).
- SAMLIB: Use __VA_ARGS__ instead of gcc-specific macro manipulation.
- WIN32CSR: Don't use gcc-specific \% if you want % in the string -- this is incorrect and will pass a broken string to swprintf (the code seems to be uncalled though, so this shouldn't change anything). Use %% instead.
- Error out on MSVC implementation of logb -- it doesn't produce the same code as the gcc version.
- Rename gcc's float.h to gcc_float.h and use #include instead of #include_next for consistency.
- Remove leftover header guard from types.h
- Remove superfluous brackets from PSEH2->MSVC defines -- this isn't necessary anymore after 41597
- Correction to 42216: MSVC *does* let you define types in a function, but only at the top of scope. Move back the C_ASSERT into KiAcquireGuardedMutex.
- Simplify definition of alloca
- scripts.cpp: Silence unavoidable warning.
- Remove compile time warning from Uniata -- the code has been unused for 1 1/2 years and will probably remain so.

svn path=/trunk/; revision=42829
2009-08-21 15:57:26 +00:00
Johannes Anderwald a39871ddb2 - Remove test code
svn path=/trunk/; revision=42825
2009-08-21 13:15:38 +00:00
Aleksey Bragin f6df5d0f26 - Convert a wrong macro to an inlined function.
svn path=/trunk/; revision=42824
2009-08-21 13:01:27 +00:00
Johannes Anderwald a6407bcf60 - Partly implement KsCreateBusEnumObject
svn path=/trunk/; revision=42823
2009-08-21 12:58:20 +00:00
Johannes Anderwald 67d71e67d5 - Remove hacks for bug 4566
svn path=/trunk/; revision=42820
2009-08-21 10:06:29 +00:00
Stefan Ginsberg eae44a3cfd - Include windef.h so CDECL gets declared for msvc's version of DEFINE_GUIDEX in ks.h
svn path=/trunk/; revision=42817
2009-08-20 20:02:19 +00:00
Cameron Gutman a2e0b86cd0 - Forgot to change debug print
svn path=/trunk/; revision=42812
2009-08-20 17:33:22 +00:00
Cameron Gutman da1fa88e1c - Fix receiving packets on an interface's broadcast address while bound to an undefined address
- Simplify binding to a certain interface

svn path=/trunk/; revision=42811
2009-08-20 17:25:39 +00:00
Johannes Anderwald 0d280a8bde - Implement KsCopyObjectBagItems
svn path=/trunk/; revision=42805
2009-08-20 13:21:24 +00:00
Johannes Anderwald bfe81917e0 - Implement DllInitialize
svn path=/trunk/; revision=42804
2009-08-20 12:38:52 +00:00
Johannes Anderwald 1e7c4cb0cc - Define automation tables for Filter & Pin
- Plug in automation tables when creating a new filter factory / pin

svn path=/trunk/; revision=42802
2009-08-20 12:26:09 +00:00
Stefan Ginsberg 047dc08ea4 Don't use dllexport for videoprt; we use a .spec. Also, don't use DDKAPI as it is a w32api/ReactOS define.
We welcome videoprt into the club of modules compiling *and* linking under msvc.

svn path=/trunk/; revision=42795
2009-08-20 10:29:54 +00:00
Johannes Anderwald 35ab9f725a - Arch should learn english first before bashing gcc
svn path=/trunk/; revision=42785
2009-08-19 12:32:56 +00:00
Johannes Anderwald 9d6768ef65 - Implement KsProbeStreamIrp
- Currently commented out as gcc finds it hard to find a member in a struct

svn path=/trunk/; revision=42784
2009-08-19 12:24:28 +00:00
Cameron Gutman ca5c8b53bf - Print a message to the debug log if ZwClose returns STATUS_INVALID_HANDLE
- This message will only after "cont"ing past the bugcheck and will hopefully help me track down bug 4796

svn path=/trunk/; revision=42775
2009-08-18 20:43:13 +00:00
Cameron Gutman ab9f22b2e8 - Handle failure of NdisMInitializeWrapper
- Found by Amine Khaldi

svn path=/trunk/; revision=42769
2009-08-18 18:01:26 +00:00
Cameron Gutman 38a3ccc3fd - Verify that we got a handle to a file object
svn path=/trunk/; revision=42768
2009-08-18 16:23:31 +00:00
Johannes Anderwald 8739063551 - Implement IPortEvents interface for IPortTopology
- Fix a bug in the IPortEvents::QueryInterface handler of IPortWaveCyclic & IPortWavePci 

svn path=/trunk/; revision=42762
2009-08-18 08:24:09 +00:00
Johannes Anderwald f886c8a5b0 - Increment reference count only if resource list was passed
- May fix A.8738-4C

svn path=/trunk/; revision=42761
2009-08-18 08:03:12 +00:00
Johannes Anderwald bc5b55fb73 [WDMAUD.DRV]
- Disable traces
- Use device name from IOCTL
[WDMAUD_KERNEL]
- Implement retrieving devicename by looking up in the registry
[SYSAUDIO]
- Implement KSPROPERTY_SYSAUDIO_DEVICE_INTERFACE_NAME
- Audio CPL should now show correct audio device name

svn path=/trunk/; revision=42759
2009-08-17 17:23:35 +00:00
Johannes Anderwald fd6d123510 - Fix a big bug in the samplerate conversion routine
svn path=/trunk/; revision=42756
2009-08-17 13:39:20 +00:00
Dmitry Gorbachev 36512fc9c3 Revert r42569.
svn path=/trunk/; revision=42725
2009-08-16 01:21:20 +00:00
Dmitry Gorbachev 3f11239846 Synchronize with paging I/O.
svn path=/trunk/; revision=42724
2009-08-16 01:20:50 +00:00
Dmitry Gorbachev 2a60b44d65 Take inode size from Ext2 superblock.
svn path=/trunk/; revision=42723
2009-08-16 01:20:22 +00:00
Johannes Anderwald d1ff4911cb - Implement KsGetFirstChild, KsGetNextSibling
- Implement IKsFilter_fnAddProcessPin, IKsFilter_fnRemoveProcessPin
- Remove old code for attaching so that it works with KsGetFirstChild
- Implement attach of filter factories to the device header
- Unimplement a few functions which were wrong
- Implement KsDispatchSpecificProperty

svn path=/trunk/; revision=42699
2009-08-15 13:45:06 +00:00
Johannes Anderwald 620bcc8996 - Include splitter in build
svn path=/trunk/; revision=42678
2009-08-15 08:07:06 +00:00
Cameron Gutman 44b841683d - Actually zero the select events in ZeroEvents
- Part 3 of 3 (hopefully :P)

svn path=/trunk/; revision=42675
2009-08-15 02:48:59 +00:00
Cameron Gutman 79bc2a1d7d - Fix more select bugs related to the disconnect event
- Part 2 of x

svn path=/trunk/; revision=42674
2009-08-15 02:27:02 +00:00
Cameron Gutman b12ea8a99d - Fix several bugs in select code and remove some dead code
- Fix a typo
 - Part 1 of x

svn path=/trunk/; revision=42673
2009-08-15 02:09:23 +00:00
Johannes Anderwald 74bd2a036d - Implement KsPropertyHandler, KsPropertyHandlerWithAllocator, KsFastPropertyHandler
svn path=/trunk/; revision=42669
2009-08-14 19:44:01 +00:00
Johannes Anderwald 11a3ac6f28 [KS]
- Proper implement KsValidateConnectRequest
- Dataformat isnt not yet checked

svn path=/trunk/; revision=42664
2009-08-14 09:27:24 +00:00
Cameron Gutman a1a8e7a706 - Fix several bugs so select() will now recognize when a connection gets closed
svn path=/trunk/; revision=42661
2009-08-14 00:09:59 +00:00
Cameron Gutman 42e498c4b0 - Fix a handle leak
- Fix a potential NULL pointer dereference if ExAllocatePool fails
 - Fix a potential NULL pointer dereference that causes AFD to crash when the socket is closed with waiting send IRPs
 - Fix another NULL pointer dereference if NdisOpenConfiguration fails
 - Move ASSERT before accessing Status
 - Add some sanity checks
 - Most of these were found by Amine Khaldi

svn path=/trunk/; revision=42659
2009-08-13 23:38:57 +00:00
Johannes Anderwald 2bddd27873 [SPLITTER]
- Implement Splitter (WIP)

svn path=/trunk/; revision=42650
2009-08-13 10:05:42 +00:00
Johannes Anderwald d8fa27fec7 [KS]
- Check if irp was allocated
- Unimplement KsPinGetConnectedPinFileObject

svn path=/trunk/; revision=42649
2009-08-13 09:54:51 +00:00
Johannes Anderwald 3f99bec9f5 - Implement IPortDMus_fnNewRegistryKey
svn path=/trunk/; revision=42648
2009-08-13 09:53:13 +00:00