ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
August 2009
----- 2025 -----
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
21 participants
654 discussions
Start a n
N
ew thread
[tkreuzer] 42626: [win32k] - EngSetPointerShape: Don't dereference psoMask without checking it
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Aug 11 21:03:51 2009 New Revision: 42626 URL:
http://svn.reactos.org/svn/reactos?rev=42626&view=rev
Log: [win32k] - EngSetPointerShape: Don't dereference psoMask without checking it Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] Tue Aug 11 21:03:51 2009 @@ -358,7 +358,7 @@ } } } - else + else if (psoMask) { pgp->Size.cx = psoMask->sizlBitmap.cx; pgp->Size.cy = psoMask->sizlBitmap.cy / 2;
15 years, 4 months
1
0
0
0
[tkreuzer] 42625: [win32k] - GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized. - Found by Amine Khaldi
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Aug 11 20:42:30 2009 New Revision: 42625 URL:
http://svn.reactos.org/svn/reactos?rev=42625&view=rev
Log: [win32k] - GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized. - Found by Amine Khaldi Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] Tue Aug 11 20:42:30 2009 @@ -686,11 +686,11 @@ fl | SPS_CHANGE); /* Cleanup */ - if (hbmColor) + if (psurfColor) + { EXLATEOBJ_vCleanup(&exlo); - - if (psurfColor) SURFACE_ShareUnlockSurface(psurfColor); + } if (psurfMask) SURFACE_ShareUnlockSurface(psurfMask);
15 years, 4 months
1
0
0
0
[pschweitzer] 42624: Other resync. Now branch builds up to gdi32.
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Tue Aug 11 19:08:58 2009 New Revision: 42624 URL:
http://svn.reactos.org/svn/reactos?rev=42624&view=rev
Log: Other resync. Now branch builds up to gdi32. Modified: branches/pierre-fsd/drivers/filesystems/fastfat/fastio.c branches/pierre-fsd/drivers/filesystems/fs_rec/fs_rec.h branches/pierre-fsd/include/ddk/winddk.h Modified: branches/pierre-fsd/drivers/filesystems/fastfat/fastio.c URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/drivers/filesystems/…
============================================================================== --- branches/pierre-fsd/drivers/filesystems/fastfat/fastio.c [iso-8859-1] (original) +++ branches/pierre-fsd/drivers/filesystems/fastfat/fastio.c [iso-8859-1] Tue Aug 11 19:08:58 2009 @@ -114,7 +114,7 @@ static BOOLEAN NTAPI VfatFastIoUnlockAllByKey(IN PFILE_OBJECT FileObject, - PEPROCESS ProcessId, + PVOID ProcessId, ULONG Key, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject) Modified: branches/pierre-fsd/drivers/filesystems/fs_rec/fs_rec.h URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/drivers/filesystems/…
============================================================================== --- branches/pierre-fsd/drivers/filesystems/fs_rec/fs_rec.h [iso-8859-1] (original) +++ branches/pierre-fsd/drivers/filesystems/fs_rec/fs_rec.h [iso-8859-1] Tue Aug 11 19:08:58 2009 @@ -25,6 +25,12 @@ // #define UDFS_VRS_START_OFFSET 32768 #define UDFS_AVDP_SECTOR 256 + +// +// Ext2 Magic +// Taken from Linux Kernel +// +#define EXT2_SUPER_MAGIC 0xEF53 // // Non-standard rounding macros Modified: branches/pierre-fsd/include/ddk/winddk.h URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/include/ddk/winddk.h…
============================================================================== --- branches/pierre-fsd/include/ddk/winddk.h [iso-8859-1] (original) +++ branches/pierre-fsd/include/ddk/winddk.h [iso-8859-1] Tue Aug 11 19:08:58 2009 @@ -2157,6 +2157,7 @@ #define DO_POWER_PAGABLE 0x00002000 #define DO_POWER_INRUSH 0x00004000 #define DO_LOW_PRIORITY_FILESYSTEM 0x00010000 +#define DO_XIP 0x00020000 /* DEVICE_OBJECT.Characteristics */ @@ -3289,7 +3290,7 @@ typedef BOOLEAN (DDKAPI *PFAST_IO_UNLOCK_ALL_BY_KEY)( IN struct _FILE_OBJECT *FileObject, - PEPROCESS ProcessId, + PVOID ProcessId, ULONG Key, OUT PIO_STATUS_BLOCK IoStatus, IN struct _DEVICE_OBJECT *DeviceObject); @@ -4548,6 +4549,9 @@ #define IO_FORCE_ACCESS_CHECK 0x001 #define IO_NO_PARAMETER_CHECKING 0x100 +#define IO_REPARSE 0x0 +#define IO_REMOUNT 0x1 + typedef NTSTATUS (DDKAPI *PIO_QUERY_DEVICE_ROUTINE)( IN PVOID Context,
15 years, 4 months
1
0
0
0
[jmorlan] 42623: Fix a buffer overflow in ConvertULargeInteger
by jmorlan@svn.reactos.org
Author: jmorlan Date: Tue Aug 11 18:21:46 2009 New Revision: 42623 URL:
http://svn.reactos.org/svn/reactos?rev=42623&view=rev
Log: Fix a buffer overflow in ConvertULargeInteger Modified: trunk/reactos/base/shell/cmd/cmd.c Modified: trunk/reactos/base/shell/cmd/cmd.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=4…
============================================================================== --- trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] Tue Aug 11 18:21:46 2009 @@ -182,7 +182,7 @@ INT ConvertULargeInteger(ULONGLONG num, LPTSTR des, INT len, BOOL bPutSeperator) { - TCHAR temp[32]; + TCHAR temp[39]; /* maximum length with nNumberGroups == 1 */ UINT n, iTarget; if (len <= 1) @@ -198,15 +198,15 @@ if (iTarget == n && bPutSeperator) { iTarget += nNumberGroups + 1; - temp[31 - n++] = cThousandSeparator; - } - temp[31 - n++] = (TCHAR)(num % 10) + _T('0'); + temp[38 - n++] = cThousandSeparator; + } + temp[38 - n++] = (TCHAR)(num % 10) + _T('0'); num /= 10; } while (num > 0); if (n > len-1) n = len-1; - memcpy(des, temp + 32 - n, n * sizeof(TCHAR)); + memcpy(des, temp + 39 - n, n * sizeof(TCHAR)); des[n] = _T('\0'); return n;
15 years, 4 months
1
0
0
0
[janderwald] 42622: - Filter dispatch is optional, handle it when creating new filters
by janderwald@svn.reactos.org
Author: janderwald Date: Tue Aug 11 17:22:06 2009 New Revision: 42622 URL:
http://svn.reactos.org/svn/reactos?rev=42622&view=rev
Log: - Filter dispatch is optional, handle it when creating new filters Modified: trunk/reactos/drivers/ksfilter/ks/filter.c Modified: trunk/reactos/drivers/ksfilter/ks/filter.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/filter…
============================================================================== --- trunk/reactos/drivers/ksfilter/ks/filter.c [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/filter.c [iso-8859-1] Tue Aug 11 17:22:06 2009 @@ -442,6 +442,13 @@ /* free object header */ KsFreeObjectHeader(This->ObjectHeader); + } + else + { + /* complete and forget */ + Irp->IoStatus.Status = Status; + /* complete irp */ + IoCompleteRequest(Irp, IO_NO_INCREMENT); } /* done */ @@ -1085,21 +1092,29 @@ return Status; } - /* now let driver initialize the filter instance */ - Status = Factory->FilterDescriptor->Dispatch->Create(&This->Filter, Irp); - - if (!NT_SUCCESS(Status) && Status != STATUS_PENDING) - { - /* driver failed to initialize */ - DPRINT1("Driver: Status %x\n", Status); - - /* remove filter instance from filter factory */ - iface->lpVtbl->RemoveFilterInstance(iface, (IKsFilter*)&This->lpVtbl); - - /* free filter instance */ - FreeItem(This); - FreeItem(CreateItem); - return Status; + /* does the filter have a filter dispatch */ + if (Factory->FilterDescriptor->Dispatch) + { + /* does it have a create routine */ + if (Factory->FilterDescriptor->Dispatch->Create) + { + /* now let driver initialize the filter instance */ + Status = Factory->FilterDescriptor->Dispatch->Create(&This->Filter, Irp); + + if (!NT_SUCCESS(Status) && Status != STATUS_PENDING) + { + /* driver failed to initialize */ + DPRINT1("Driver: Status %x\n", Status); + + /* remove filter instance from filter factory */ + iface->lpVtbl->RemoveFilterInstance(iface, (IKsFilter*)&This->lpVtbl); + + /* free filter instance */ + FreeItem(This); + FreeItem(CreateItem); + return Status; + } + } } /* now allocate the object header */
15 years, 4 months
1
0
0
0
[gschneider] 42621: Re-add r42536, it didn't break the build server
by gschneider@svn.reactos.org
Author: gschneider Date: Tue Aug 11 17:03:41 2009 New Revision: 42621 URL:
http://svn.reactos.org/svn/reactos?rev=42621&view=rev
Log: Re-add r42536, it didn't break the build server Modified: trunk/reactos/dll/win32/kernel32/misc/commdcb.c Modified: trunk/reactos/dll/win32/kernel32/misc/commdcb.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/co…
============================================================================== --- trunk/reactos/dll/win32/kernel32/misc/commdcb.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/misc/commdcb.c [iso-8859-1] Tue Aug 11 17:03:41 2009 @@ -627,7 +627,7 @@ DWORD dwErr; dwErr = ERROR_INVALID_PARAMETER; - cchAscii = WideCharToMultiByte(20127, 0, lpDef, -1, NULL, 0, NULL, NULL); + cchAscii = WideCharToMultiByte(CP_ACP, 0, lpDef, -1, NULL, 0, NULL, NULL); bRet = cchAscii > 0; @@ -641,7 +641,7 @@ if(bRet) { bInvalidChars = FALSE; - cchAscii = WideCharToMultiByte(20127, 0, lpDef, -1, pszAscii, cchAscii, NULL, &bInvalidChars); + cchAscii = WideCharToMultiByte(CP_ACP, 0, lpDef, -1, pszAscii, cchAscii, NULL, &bInvalidChars); bRet = cchAscii > 0 && !bInvalidChars;
15 years, 4 months
1
0
0
0
[janderwald] 42620: - Start implementing splitter - Add a device descriptor
by janderwald@svn.reactos.org
Author: janderwald Date: Tue Aug 11 17:03:33 2009 New Revision: 42620 URL:
http://svn.reactos.org/svn/reactos?rev=42620&view=rev
Log: - Start implementing splitter - Add a device descriptor Added: trunk/reactos/drivers/wdm/audio/filters/splitter/filter.c (with props) trunk/reactos/drivers/wdm/audio/filters/splitter/pin.c (with props) trunk/reactos/drivers/wdm/audio/filters/splitter/precomp.h (with props) trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.c (with props) trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.rbuild (with props) Added: trunk/reactos/drivers/wdm/audio/filters/splitter/filter.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/filters/splitter/filter.c (added) +++ trunk/reactos/drivers/wdm/audio/filters/splitter/filter.c [iso-8859-1] Tue Aug 11 17:03:33 2009 @@ -1,0 +1,20 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Kernel Streaming + * FILE: drivers/wdm/audio/filters/splitter/filter.c + * PURPOSE: Filter File Context Handling + * PROGRAMMER: Johannes Anderwald + */ + +#include "precomp.h" + +NTSTATUS +NTAPI +FilterProcess( + IN PKSFILTER Filter, + IN PKSPROCESSPIN_INDEXENTRY ProcessPinsIndex) +{ + UNIMPLEMENTED + return STATUS_NOT_IMPLEMENTED; +} + Propchange: trunk/reactos/drivers/wdm/audio/filters/splitter/filter.c ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/drivers/wdm/audio/filters/splitter/pin.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/filters/splitter/pin.c (added) +++ trunk/reactos/drivers/wdm/audio/filters/splitter/pin.c [iso-8859-1] Tue Aug 11 17:03:33 2009 @@ -1,0 +1,76 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Kernel Streaming + * FILE: drivers/wdm/audio/filters/splitter/pin.c + * PURPOSE: Pin Context Handling + * PROGRAMMER: Johannes Anderwald + */ + +#include "precomp.h" + +NTSTATUS +NTAPI +PinCreate( + IN PKSPIN Pin, + IN PIRP Irp) +{ + UNIMPLEMENTED + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +NTAPI +PinClose( + IN PKSPIN Pin, + IN PIRP Irp) +{ + UNIMPLEMENTED + return STATUS_NOT_IMPLEMENTED; +} + +VOID +NTAPI +PinReset( + IN PKSPIN Pin) +{ + UNIMPLEMENTED +} + +NTSTATUS +NTAPI +PinState( + IN PKSPIN Pin, + IN KSSTATE ToState, + IN KSSTATE FromState) +{ + UNIMPLEMENTED + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +NTAPI +AudioPositionPropertyHandler( + IN PIRP Irp, + IN PKSIDENTIFIER Request, + IN OUT PVOID Data) +{ + UNIMPLEMENTED + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +NTAPI +PinIntersectHandler( + IN PVOID Context, + IN PIRP Irp, + IN PKSP_PIN Pin, + IN PKSDATARANGE DataRange, + IN PKSDATARANGE MatchingDataRange, + IN ULONG DataBufferSize, + OUT PVOID Data OPTIONAL, + OUT PULONG DataSize) +{ + UNIMPLEMENTED + return STATUS_NOT_IMPLEMENTED; +} + Propchange: trunk/reactos/drivers/wdm/audio/filters/splitter/pin.c ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/drivers/wdm/audio/filters/splitter/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/filters/splitter/precomp.h (added) +++ trunk/reactos/drivers/wdm/audio/filters/splitter/precomp.h [iso-8859-1] Tue Aug 11 17:03:33 2009 @@ -1,0 +1,61 @@ +#ifndef PRECOMP_H__ +#define PRECOMP_H__ + +#include <ntddk.h> +#include <portcls.h> +#include <ks.h> +#include <ksmedia.h> +#include <debug.h> + +/* filter.c */ +NTSTATUS +NTAPI +FilterProcess( + IN PKSFILTER Filter, + IN PKSPROCESSPIN_INDEXENTRY ProcessPinsIndex); + +/* pin.c */ +NTSTATUS +NTAPI +PinCreate( + IN PKSPIN Pin, + IN PIRP Irp); + +NTSTATUS +NTAPI +PinClose( + IN PKSPIN Pin, + IN PIRP Irp); + +VOID +NTAPI +PinReset( + IN PKSPIN Pin); + +NTSTATUS +NTAPI +PinState( + IN PKSPIN Pin, + IN KSSTATE ToState, + IN KSSTATE FromState); + +NTSTATUS +NTAPI +AudioPositionPropertyHandler( + IN PIRP Irp, + IN PKSIDENTIFIER Request, + IN OUT PVOID Data); + +NTSTATUS +NTAPI +PinIntersectHandler( + IN PVOID Context, + IN PIRP Irp, + IN PKSP_PIN Pin, + IN PKSDATARANGE DataRange, + IN PKSDATARANGE MatchingDataRange, + IN ULONG DataBufferSize, + OUT PVOID Data OPTIONAL, + OUT PULONG DataSize); + +#endif Propchange: trunk/reactos/drivers/wdm/audio/filters/splitter/precomp.h ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.c (added) +++ trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.c [iso-8859-1] Tue Aug 11 17:03:33 2009 @@ -1,0 +1,272 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Kernel Streaming + * FILE: drivers/wdm/audio/filters/splitter/splitter.c + * PURPOSE: Splitter entry point + * PROGRAMMER: Johannes Anderwald + */ + +#include "precomp.h" + +const GUID PIN_VIDEO_CAPTURE = {0xfb6c4281, 0x0353, 0x11d1, {0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba}}; +const GUID KSPROPSETID_Audio = {0x45FFAAA0, 0x6E1B, 0x11D0, {0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}}; +const GUID KSCATEGORY_AUDIO_SPLITTER = {0x9EA331FA, 0xB91B, 0x45F8, {0x92, 0x85, 0xBD, 0x2B, 0xC7, 0x7A, 0xFC, 0xDE}}; +const GUID KSNAME_Filter = {0x9b365890, 0x165f, 0x11d0, {0xa1, 0x95, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4}}; + +KSPROPERTY_ITEM +PinPropertyTable[] = +{ + { + KSPROPERTY_AUDIO_POSITION, + {AudioPositionPropertyHandler}, + sizeof(KSPROPERTY), + sizeof(KSAUDIO_POSITION), + {AudioPositionPropertyHandler}, + NULL, + 0, + NULL, + NULL, + 0 + } +}; + +const +KSPROPERTY_SET +PinPropertySet[] = +{ + { + &KSPROPSETID_Audio, + 1, + PinPropertyTable, + 0, + NULL + } +}; + + +const +KSAUTOMATION_TABLE +PinAutomation = +{ + 1, + sizeof(PinPropertySet) / sizeof(KSPROPERTY_SET), + (const KSPROPERTY_SET*)&PinPropertySet, + 0, + sizeof(KSMETHOD_SET), + NULL, + 0, + sizeof(KSEVENT_SET), + NULL +}; + +const +KSPIN_DISPATCH +PinDispatch = +{ + PinCreate, + PinClose, + NULL, /* filter centric processing */ + PinReset, + NULL, + PinState, + NULL, + NULL, + NULL, + NULL +}; + + +const +KSFILTER_DISPATCH +FilterDispatch = +{ + NULL, + NULL, + FilterProcess, + NULL +}; + +KSDATARANGE +PinDataFormatRange = +{ + { + sizeof(KSDATARANGE), + 0, + 0, + 0, + {STATIC_KSDATAFORMAT_TYPE_AUDIO}, + {STATIC_GUID_NULL}, + {STATIC_GUID_NULL} + } +}; + +const +PKSDATARANGE +PinDataFormatRanges[] = +{ + &PinDataFormatRange +}; + +#if 0 +const +KSALLOCATOR_FRAMING_EX +AllocatorFraming = +{ + 1, + 0, + { + 1, + 1, + 0 + }, + 0, + { + {STATIC_KSMEMORY_TYPE_KERNEL_PAGED}, + {STATIC_GUID_NULL}, + KSALLOCATOR_REQUIREMENTF_MUST_ALLOCATE, + 0, + 0, //KSALLOCATOR_REQUIREMENTF_PREFERENCES_ONLY | KSALLOCATOR_FLAG_INSIST_ON_FRAMESIZE_RATIO | KSALLOCATOR_OPTIONF_VALID + 8, + FILE_64_BYTE_ALIGNMENT, + 0, + { + 0, + (ULONG)-1, + 1 + }, + { + { + 1536, // (48000khz * 2 channels * 16bit / 1000 ) * 8 frames + 1536, + 1 + }, + 0, + 0 + } + } +}; +#endif + +const +KSPIN_DESCRIPTOR_EX +PinDescriptors[] = +{ + { + &PinDispatch, + &PinAutomation, + { + 0, //no interfaces + NULL, + 0, // no mediums + NULL, + sizeof(PinDataFormatRange) / sizeof(PKSDATARANGE), + (const PKSDATARANGE*)&PinDataFormatRange, + KSPIN_DATAFLOW_OUT, + KSPIN_COMMUNICATION_BOTH, + NULL, + (const GUID*)&PIN_VIDEO_CAPTURE, + { + 0, + } + }, + KSPIN_FLAG_DISPATCH_LEVEL_PROCESSING | KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL | + KSPIN_FLAG_FRAMES_NOT_REQUIRED_FOR_PROCESSING | KSPIN_FLAG_PROCESS_IF_ANY_IN_RUN_STATE, + (ULONG)-1, + 1, + NULL, //&AllocatorFraming, + PinIntersectHandler + }, + { + &PinDispatch, + &PinAutomation, + { + 0, //no interfaces + NULL, + 0, // no mediums + NULL, + 1, + (const PKSDATARANGE*)&PinDataFormatRange, + KSPIN_DATAFLOW_IN, + KSPIN_COMMUNICATION_BOTH, + NULL, + NULL, + { + 0 + } + }, + KSPIN_FLAG_DISPATCH_LEVEL_PROCESSING | KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL | KSPIN_FLAG_PROCESS_IF_ANY_IN_RUN_STATE, + 1, + 1, + NULL, //&AllocatorFraming, + PinIntersectHandler + } +}; +const +GUID +Categories[] = +{ + {STATIC_KSCATEGORY_AUDIO}, + {STATIC_KSCATEGORY_AUDIO_SPLITTER} +}; + + +const +KSNODE_DESCRIPTOR +NodeDescriptor[] = +{ + { + NULL, //automation table + &KSCATEGORY_AUDIO_SPLITTER, //type + NULL // name + } +}; + + +const +KSFILTER_DESCRIPTOR +FilterDescriptor = +{ + &FilterDispatch, + NULL, + KSFILTER_DESCRIPTOR_VERSION, + KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING, + &KSNAME_Filter, + 2, + sizeof(KSPIN_DESCRIPTOR_EX), + (const KSPIN_DESCRIPTOR_EX*)&PinDescriptors, + sizeof(Categories) / sizeof(GUID), + (const GUID* )&Categories, + sizeof(NodeDescriptor) / sizeof(KSNODE_DESCRIPTOR), + sizeof(KSNODE_DESCRIPTOR), + (const KSNODE_DESCRIPTOR*)&NodeDescriptor, + DEFINE_KSFILTER_DEFAULT_CONNECTIONS, + NULL +}; + +const +KSFILTER_DESCRIPTOR * +FilterDescriptors = +{ + (const KSFILTER_DESCRIPTOR *)&FilterDescriptor +}; + +const +KSDEVICE_DESCRIPTOR +DeviceDescriptor = +{ + NULL, //no pnp notifications needed + 1, // filter descriptor count + (const KSFILTER_DESCRIPTOR * const *)&FilterDescriptors, + 0, // pre KSDEVICE_DESCRIPTOR_VERSION + 0 +}; + + +NTSTATUS +NTAPI +DriverEntry( + PDRIVER_OBJECT DriverObject, + PUNICODE_STRING RegistryPathName) +{ + return KsInitializeDriver(DriverObject, RegistryPathName, &DeviceDescriptor); +} Propchange: trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.c ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/filters/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.rbuild (added) +++ trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.rbuild [iso-8859-1] Tue Aug 11 17:03:33 2009 @@ -1,0 +1,9 @@ +<?xml version="1.0"?> +<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> +<module name="splitter" type="kernelmodedriver" installbase="system32/drivers" installname="splitter.sys"> + <library>ntoskrnl</library> + <library>ks</library> + <file>splitter.c</file> + <file>filter.c</file> + <file>pin.c</file> +</module> Propchange: trunk/reactos/drivers/wdm/audio/filters/splitter/splitter.rbuild ------------------------------------------------------------------------------ svn:eol-style = native
15 years, 4 months
1
0
0
0
[janderwald] 42619: - Add few macros, constants for splitter
by janderwald@svn.reactos.org
Author: janderwald Date: Tue Aug 11 16:52:22 2009 New Revision: 42619 URL:
http://svn.reactos.org/svn/reactos?rev=42619&view=rev
Log: - Add few macros, constants for splitter Modified: trunk/reactos/include/psdk/ks.h trunk/reactos/include/psdk/ksmedia.h Modified: trunk/reactos/include/psdk/ks.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/ks.h?rev=4261…
============================================================================== --- trunk/reactos/include/psdk/ks.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/ks.h [iso-8859-1] Tue Aug 11 16:52:22 2009 @@ -90,10 +90,20 @@ #define STATIC_GUID_NULL \ -0x00000000L, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x00000000L, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} DEFINE_GUIDSTRUCT("00000000-0000-0000-0000-000000000000", GUID_NULL); #define GUID_NULL DEFINE_GUIDNAMED(GUID_NULL) + +#define STATIC_KSNAME_Filter\ + 0x9b365890L, 0x165f, 0x11d0, {0xa1, 0x95, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4} +DEFINE_GUIDSTRUCT("9b365890-165f-11d0-a195-0020afd156e4", KSNAME_Filter); +#define KSNAME_Filter DEFINE_GUIDNAMED(KSNAME_Filter) + +#define STATIC_KSMEMORY_TYPE_KERNEL_PAGED \ + 0xd833f8f8L, 0x7894, 0x11d1, {0xb0, 0x69, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02} +DEFINE_GUIDSTRUCT("d833f8f8-7894-11d1-b069-00a0c9062802", KSMEMORY_TYPE_KERNEL_PAGED); +#define KSMEMORY_TYPE_KERNEL_PAGED DEFINE_GUIDNAMED(KSMEMORY_TYPE_KERNEL_PAGED) /* =============================================================== I/O Control Codes @@ -2169,28 +2179,40 @@ PFNKSINTERSECTHANDLEREX IntersectHandler; } KSPIN_DESCRIPTOR_EX, *PKSPIN_DESCRIPTOR_EX; -/* TODO */ -#define KSPIN_FLAG_DISPATCH_LEVEL_PROCESSING -#define KSPIN_FLAG_CRITICAL_PROCESSING -#define KSPIN_FLAG_HYPERCRITICAL_PROCESSING -#define KSPIN_FLAG_ASYNCHRONOUS_PROCESSING -#define KSPIN_FLAG_DO_NOT_INITIATE_PROCESSING -#define KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL -#define KSPIN_FLAG_FRAMES_NOT_REQUIRED_FOR_PROCESSING -#define KSPIN_FLAG_ENFORCE_FIFO -#define KSPIN_FLAG_GENERATE_MAPPINGS -#define KSPIN_FLAG_DISTINCT_TRAILING_EDGE -#define KSPIN_FLAG_PROCESS_IN_RUN_STATE_ONLY -#define KSPIN_FLAG_SPLITTER -#define KSPIN_FLAG_USE_STANDARD_TRANSPORT -#define KSPIN_FLAG_DO_NOT_USE_STANDARD_TRANSPORT -#define KSPIN_FLAG_FIXED_FORMAT -#define KSPIN_FLAG_GENERATE_EOS_EVENTS -#define KSPIN_FLAG_RENDERER -#define KSPIN_FLAG_SOME_FRAMES_REQUIRED_FOR_PROCESSING -#define KSPIN_FLAG_PROCESS_IF_ANY_IN_RUN_STATE -#define KSPIN_FLAG_DENY_USERMODE_ACCESS -#define KSPIN_FLAG_IMPLEMENT_CLOCK +#define KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING 0x00000001 +#define KSFILTER_FLAG_CRITICAL_PROCESSING 0x00000002 +#define KSFILTER_FLAG_HYPERCRITICAL_PROCESSING 0x00000004 +#define KSFILTER_FLAG_RECEIVE_ZERO_LENGTH_SAMPLES 0x00000008 +#if (NTDDI_VERSION >= NTDDI_WINXPSP2) +#define KSFILTER_FLAG_DENY_USERMODE_ACCESS 0x80000000 +#endif + + +#define KSPIN_FLAG_DISPATCH_LEVEL_PROCESSING KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING +#define KSPIN_FLAG_CRITICAL_PROCESSING KSFILTER_FLAG_CRITICAL_PROCESSING +#define KSPIN_FLAG_HYPERCRITICAL_PROCESSING KSFILTER_FLAG_HYPERCRITICAL_PROCESSING +#define KSPIN_FLAG_ASYNCHRONOUS_PROCESSING 0x00000008 +#define KSPIN_FLAG_DO_NOT_INITIATE_PROCESSING 0x00000010 +#define KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL 0x00000020 +#define KSPIN_FLAG_FRAMES_NOT_REQUIRED_FOR_PROCESSING 0x00000040 +#define KSPIN_FLAG_ENFORCE_FIFO 0x00000080 + +#define KSPIN_FLAG_GENERATE_MAPPINGS 0x00000100 +#define KSPIN_FLAG_DISTINCT_TRAILING_EDGE 0x00000200 + +#define KSPIN_FLAG_PROCESS_IN_RUN_STATE_ONLY 0x00010000 +#define KSPIN_FLAG_SPLITTER 0x00020000 +#define KSPIN_FLAG_USE_STANDARD_TRANSPORT 0x00040000 +#define KSPIN_FLAG_DO_NOT_USE_STANDARD_TRANSPORT 0x00080000 +#define KSPIN_FLAG_FIXED_FORMAT 0x00100000 +#define KSPIN_FLAG_GENERATE_EOS_EVENTS 0x00200000 +#define KSPIN_FLAG_RENDERER (KSPIN_FLAG_PROCESS_IN_RUN_STATE_ONLY|KSPIN_FLAG_GENERATE_EOS_EVENTS) +#define KSPIN_FLAG_IMPLEMENT_CLOCK 0x00400000 +#define KSPIN_FLAG_SOME_FRAMES_REQUIRED_FOR_PROCESSING 0x00800000 +#define KSPIN_FLAG_PROCESS_IF_ANY_IN_RUN_STATE 0x01000000 +#if (NTDDI_VERSION >= NTDDI_WINXPSP2) +#define KSPIN_FLAG_DENY_USERMODE_ACCESS 0x80000000 +#endif struct _KSPIN { @@ -2757,6 +2779,8 @@ const KSCOMPONENTID* ComponentId; }; +#define KSFILTER_DESCRIPTOR_VERSION ((ULONG)-1) + struct _KSDEVICE_DESCRIPTOR { const KSDEVICE_DISPATCH* Dispatch; @@ -2771,6 +2795,44 @@ KSOBJECT_BAG Bag; PVOID Context; }; + +#define DEFINE_KSFILTER_DESCRIPTOR(descriptor)\ + const KSFILTER_DESCRIPTOR descriptor = + +#define DEFINE_KSFILTER_PIN_DESCRIPTORS(table)\ + SIZEOF_ARRAY(table),\ + sizeof(table[0]),\ + table + +#define DEFINE_KSFILTER_CATEGORIES(table)\ + SIZEOF_ARRAY(table),\ + table + +#define DEFINE_KSFILTER_CATEGORY(category)\ + 1,\ + &(category) + +#define DEFINE_KSFILTER_CATEGORIES_NULL\ + 0,\ + NULL + +#define DEFINE_KSFILTER_NODE_DESCRIPTORS(table)\ + SIZEOF_ARRAY(table),\ + sizeof(table[0]),\ + table + +#define DEFINE_KSFILTER_NODE_DESCRIPTORS_NULL\ + 0,\ + sizeof(KSNODE_DESCRIPTOR),\ + NULL + +#define DEFINE_KSFILTER_CONNECTIONS(table)\ + SIZEOF_ARRAY(table),\ + table + +#define DEFINE_KSFILTER_DEFAULT_CONNECTIONS\ + 0,\ + NULL #endif /* =============================================================== Modified: trunk/reactos/include/psdk/ksmedia.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/ksmedia.h?rev…
============================================================================== --- trunk/reactos/include/psdk/ksmedia.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/ksmedia.h [iso-8859-1] Tue Aug 11 16:52:22 2009 @@ -23,6 +23,14 @@ 0xFBF6F530L, 0x07B9, 0x11D2, {0xA7, 0x1E, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88} DEFINE_GUIDSTRUCT("FBF6F530-07B9-11D2-A71E-0000F8004788", KSCATEGORY_AUDIO_DEVICE); #define KSCATEGORY_AUDIO_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_DEVICE) + +/* video */ +#define STATIC_PINNAME_VIDEO_CAPTURE \ + 0xfb6c4281, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba +#define STATIC_PINNAME_CAPTURE STATIC_PINNAME_VIDEO_CAPTURE +DEFINE_GUIDSTRUCT("FB6C4281-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_CAPTURE); +#define PINNAME_VIDEO_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_CAPTURE) +#define PINNAME_CAPTURE PINNAME_VIDEO_CAPTURE /* Preferred devices */
15 years, 4 months
1
0
0
0
[gschneider] 42618: Free memory on error
by gschneider@svn.reactos.org
Author: gschneider Date: Tue Aug 11 16:37:52 2009 New Revision: 42618 URL:
http://svn.reactos.org/svn/reactos?rev=42618&view=rev
Log: Free memory on error Modified: trunk/reactos/lib/sdk/crt/stdio/file.c Modified: trunk/reactos/lib/sdk/crt/stdio/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/file.c?r…
============================================================================== --- trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] Tue Aug 11 16:37:52 2009 @@ -1489,7 +1489,7 @@ free(patha); return retval; } - + free(patha); _dosmaperr(GetLastError()); return -1; }
15 years, 4 months
1
0
0
0
[gschneider] 42617: Return INVALID_FILE_ATTRIBUTES when no filename is passed
by gschneider@svn.reactos.org
Author: gschneider Date: Tue Aug 11 16:19:43 2009 New Revision: 42617 URL:
http://svn.reactos.org/svn/reactos?rev=42617&view=rev
Log: Return INVALID_FILE_ATTRIBUTES when no filename is passed Modified: trunk/reactos/dll/win32/kernel32/file/file.c Modified: trunk/reactos/dll/win32/kernel32/file/file.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/fi…
============================================================================== --- trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] Tue Aug 11 16:19:43 2009 @@ -996,9 +996,9 @@ { WIN32_FILE_ATTRIBUTE_DATA FileAttributeData; PWSTR FileNameW; - BOOL ret; - - if (!(FileNameW = FilenameA2W(lpFileName, FALSE))) + BOOL ret; + + if (!lpFileName || !(FileNameW = FilenameA2W(lpFileName, FALSE))) return INVALID_FILE_ATTRIBUTES; ret = GetFileAttributesExW(FileNameW, GetFileExInfoStandard, &FileAttributeData);
15 years, 4 months
1
0
0
0
← Newer
1
...
33
34
35
36
37
38
39
...
66
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Results per page:
10
25
50
100
200