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
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
March 2009
----- 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
28 participants
483 discussions
Start a n
N
ew thread
[cgutman] 39923: - Replace TcpipBugCheck(0) with ASSERT(FALSE) so memtrack doesn't crash release builds - Remove bug.c and supporting files
by cgutman@svn.reactos.org
Author: cgutman Date: Mon Mar 9 23:07:33 2009 New Revision: 39923 URL:
http://svn.reactos.org/svn/reactos?rev=39923&view=rev
Log: - Replace TcpipBugCheck(0) with ASSERT(FALSE) so memtrack doesn't crash release builds - Remove bug.c and supporting files Removed: branches/aicom-network-fixes/drivers/network/tcpip/include/bug.h branches/aicom-network-fixes/drivers/network/tcpip/tcpip/bug.c branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbug.c Modified: branches/aicom-network-fixes/drivers/network/tcpip/include/precomp.h branches/aicom-network-fixes/drivers/network/tcpip/tcpip.rbuild branches/aicom-network-fixes/lib/drivers/ip/network/memtrack.c Removed: branches/aicom-network-fixes/drivers/network/tcpip/include/bug.h URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/tcpip/include/bug.h [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/tcpip/include/bug.h (removed) @@ -1,6 +1,0 @@ -#ifndef _TCPIP_BUG_H -#define _TCPIP_BUG_H - -VOID TcpipBugCheck( ULONG BugCode ); - -#endif/*_TCPIP_BUG_H*/ Modified: branches/aicom-network-fixes/drivers/network/tcpip/include/precomp.h URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/tcpip/include/precomp.h [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/tcpip/include/precomp.h [iso-8859-1] Mon Mar 9 23:07:33 2009 @@ -32,7 +32,6 @@ #include <fileobjs.h> #include <lock.h> #include <wait.h> -#include <bug.h> #include <memtrack.h> #include <oskittcp.h> #include <interface.h> Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/tcpip/tcpip.rbuild [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip.rbuild [iso-8859-1] Mon Mar 9 23:07:33 2009 @@ -24,7 +24,6 @@ </directory> <directory name="tcpip"> <file>buffer.c</file> - <file>bug.c</file> <file>dispatch.c</file> <file>fileobjs.c</file> <file>iinfo.c</file> Removed: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/bug.c URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/bug.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/bug.c (removed) @@ -1,11 +1,0 @@ -/* - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS TCP/IP protocol driver - * FILE: tcpip/bug.c - * PURPOSE: Bugcheck - * PROGRAMMERS: Art Yerkes - * REVISIONS: - */ -#include "precomp.h" - -VOID TcpipBugCheck( ULONG BugCode ) { KeBugCheck( BugCode ); } Removed: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbug.c URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
============================================================================== --- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbug.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbug.c (removed) @@ -1,14 +1,0 @@ -/* - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS TCP/IP protocol driver - * FILE: tcpip/bug.c - * PURPOSE: Bugcheck - * PROGRAMMERS: Art Yerkes - * REVISIONS: - */ -#include "precomp.h" - -VOID TcpipBugCheck( ULONG BugCode ) { - DbgPrint("BugCheck called: %x\n", BugCode); - ASSERT(0); -} Modified: branches/aicom-network-fixes/lib/drivers/ip/network/memtrack.c URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
============================================================================== --- branches/aicom-network-fixes/lib/drivers/ip/network/memtrack.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/lib/drivers/ip/network/memtrack.c [iso-8859-1] Mon Mar 9 23:07:33 2009 @@ -124,7 +124,7 @@ if ( ThingInList->Tag != Tag ) { DbgPrint("UNTRACK: TAG DOES NOT MATCH (%x)\n", Thing); ShowTrackedThing("Tag Mismatch (Item in list)", ThingInList, TRUE); - TcpipBugCheck( 0 ); + ASSERT( FALSE ); } ExFreeToNPagedLookasideList( &AllocatedObjectsLookasideList, @@ -139,7 +139,7 @@ } TcpipReleaseSpinLock( &AllocatedObjectsLock, OldIrql ); DbgPrint("UNTRACK: SPECIFIED ALREADY FREE ITEM %x\n", Thing); - TcpipBugCheck( 0 ); + ASSERT( FALSE ); } VOID TrackDumpFL( PCHAR File, DWORD Line ) {
15 years, 9 months
1
0
0
0
[khornicek] 39922: - fix glEdgeFlagPointe prototype - clean up opengl32.h a bit
by khornicek@svn.reactos.org
Author: khornicek Date: Mon Mar 9 22:55:00 2009 New Revision: 39922 URL:
http://svn.reactos.org/svn/reactos?rev=39922&view=rev
Log: - fix glEdgeFlagPointe prototype - clean up opengl32.h a bit Modified: trunk/reactos/dll/win32/opengl32/glfuncs.h trunk/reactos/dll/win32/opengl32/opengl32.h Modified: trunk/reactos/dll/win32/opengl32/glfuncs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/glfuncs…
============================================================================== --- trunk/reactos/dll/win32/opengl32/glfuncs.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/opengl32/glfuncs.h [iso-8859-1] Mon Mar 9 22:55:00 2009 @@ -86,7 +86,7 @@ X(glDrawElements, void, (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices), (mode,count,type,indices), 311, 149, 16) \ X(glDrawPixels, void, (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels), (width,height,format,type,pixels), 257, -1, 20) \ X(glEdgeFlag, void, (GLboolean flag), (flag), 41, 35, 4) \ - X(glEdgeFlagPointer, void, (GLsizei stride, const GLboolean *pointer), (stride,pointer), 312, 150, 8) \ + X(glEdgeFlagPointer, void, (GLsizei stride, const GLvoid *pointer), (stride,pointer), 312, 150, 8) \ X(glEdgeFlagv, void, (const GLboolean *flag), (flag), 42, 36, 4) \ X(glEnable, void, (GLenum cap), (cap), 215, 117, 4) \ X(glEnableClientState, void, (GLenum array), (array), 313, 151, 4) \ Modified: trunk/reactos/dll/win32/opengl32/opengl32.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/opengl3…
============================================================================== --- trunk/reactos/dll/win32/opengl32/opengl32.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/opengl32/opengl32.h [iso-8859-1] Mon Mar 9 22:55:00 2009 @@ -33,14 +33,13 @@ #define WIN32_LEAN_AND_MEAN #define WIN32_NO_STATUS #include <windows.h> - #include <winreg.h> #define NTOS_MODE_USER -#include <ddraw.h> -#include <ddrawi.h> #include <winddi.h> #include <ndk/ntndk.h> + +#include <GL/gl.h> /* gl function list */ #include "glfuncs.h" @@ -61,7 +60,6 @@ /* debug macros */ # ifdef DEBUG_OPENGL32 -ULONG DbgPrint(PCH Format,...); # include <debug.h> # define DBGPRINT( fmt, args... ) \ DPRINT( "OpenGL32.DLL: %s: "fmt"\n", __FUNCTION__, ##args ) @@ -106,27 +104,6 @@ #undef APIENTRY #endif /* APIENTRY */ #define APIENTRY EXPORT __stdcall - -/* gl function list */ -#include "glfuncs.h" - -/* GL data types - x86 typedefs */ -typedef unsigned int GLenum; -typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; -typedef signed char GLbyte; -typedef short GLshort; -typedef int GLint; -typedef int GLsizei; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned int GLuint; -typedef unsigned short GLhalf; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void GLvoid; /* Called by the driver to set the dispatch table */ typedef DWORD (WINAPI *SetContextCallBack)( const ICDTable * );
15 years, 9 months
1
0
0
0
[khornicek] 39921: - fix some prototypes, remove dxroslayer from dsound - sync dsound with wine head, it now works again (tested on win xp and reactos)
by khornicek@svn.reactos.org
Author: khornicek Date: Mon Mar 9 22:46:37 2009 New Revision: 39921 URL:
http://svn.reactos.org/svn/reactos?rev=39921&view=rev
Log: - fix some prototypes, remove dxroslayer from dsound - sync dsound with wine head, it now works again (tested on win xp and reactos) Added: trunk/reactos/dll/directx/dsound/dsound_convert.c (with props) Removed: trunk/reactos/dll/directx/dsound/dxroslayer/ Modified: trunk/reactos/dll/directx/dsound/buffer.c trunk/reactos/dll/directx/dsound/capture.c trunk/reactos/dll/directx/dsound/dsound.c trunk/reactos/dll/directx/dsound/dsound.rbuild trunk/reactos/dll/directx/dsound/dsound_main.c trunk/reactos/dll/directx/dsound/dsound_private.h trunk/reactos/dll/directx/dsound/duplex.c trunk/reactos/dll/directx/dsound/mixer.c trunk/reactos/dll/directx/dsound/primary.c trunk/reactos/dll/directx/dsound/propset.c trunk/reactos/dll/directx/dsound/regsvr.c trunk/reactos/dll/directx/dsound/sound3d.c trunk/reactos/dll/directx/dsound/version.rc trunk/reactos/include/psdk/dsdriver.h trunk/reactos/include/psdk/dsound.h trunk/reactos/include/reactos/wine/mmsystem.h trunk/reactos/lib/sdk/dxguid/dxguid-mingw.c [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/reactos/dll/directx/dsound/buffer.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/buffer.…
Modified: trunk/reactos/dll/directx/dsound/capture.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/capture…
Modified: trunk/reactos/dll/directx/dsound/dsound.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/dsound.…
Modified: trunk/reactos/dll/directx/dsound/dsound.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/dsound.…
Added: trunk/reactos/dll/directx/dsound/dsound_convert.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/dsound_…
Modified: trunk/reactos/dll/directx/dsound/dsound_main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/dsound_…
Modified: trunk/reactos/dll/directx/dsound/dsound_private.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/dsound_…
Modified: trunk/reactos/dll/directx/dsound/duplex.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/duplex.…
Modified: trunk/reactos/dll/directx/dsound/mixer.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/mixer.c…
Modified: trunk/reactos/dll/directx/dsound/primary.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/primary…
Modified: trunk/reactos/dll/directx/dsound/propset.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/propset…
Modified: trunk/reactos/dll/directx/dsound/regsvr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/regsvr.…
Modified: trunk/reactos/dll/directx/dsound/sound3d.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/sound3d…
Modified: trunk/reactos/dll/directx/dsound/version.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound/version…
Modified: trunk/reactos/include/psdk/dsdriver.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/dsdriver.h?re…
Modified: trunk/reactos/include/psdk/dsound.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/dsound.h?rev=…
Modified: trunk/reactos/include/reactos/wine/mmsystem.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/mmsys…
Modified: trunk/reactos/lib/sdk/dxguid/dxguid-mingw.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/dxguid/dxguid-ming…
15 years, 9 months
1
0
0
0
[khornicek] 39920: - fix the class name, vbox guest additions installer proceeds a bit further now
by khornicek@svn.reactos.org
Author: khornicek Date: Mon Mar 9 22:34:37 2009 New Revision: 39920 URL:
http://svn.reactos.org/svn/reactos?rev=39920&view=rev
Log: - fix the class name, vbox guest additions installer proceeds a bit further now Modified: trunk/reactos/media/inf/audio.inf Modified: trunk/reactos/media/inf/audio.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/inf/audio.inf?rev=39…
============================================================================== --- trunk/reactos/media/inf/audio.inf [iso-8859-1] (original) +++ trunk/reactos/media/inf/audio.inf [iso-8859-1] Mon Mar 9 22:34:37 2009 @@ -6,7 +6,7 @@ Signature = "$Windows NT$" ;Signature = "$ReactOS$" LayoutFile = layout.inf -Class = AUDIO +Class = MEDIA ClassGUID = {4d36e96c-e325-11ce-bfc1-08002be10318} Provider = %ReactOS% DriverVer = 10/19/1999,5.00.2157.1
15 years, 9 months
1
0
0
0
[khornicek] 39919: - fix logic, global mouse and keyboard hooks are supported, dinput now works again
by khornicek@svn.reactos.org
Author: khornicek Date: Mon Mar 9 22:01:11 2009 New Revision: 39919 URL:
http://svn.reactos.org/svn/reactos?rev=39919&view=rev
Log: - fix logic, global mouse and keyboard hooks are supported, dinput now works again Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hook.c Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hook.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] Mon Mar 9 22:01:11 2009 @@ -1051,7 +1051,7 @@ Global = TRUE; } - if ( ( Global && (HookId != WH_KEYBOARD_LL || HookId != WH_MOUSE_LL) ) || + if ( ( Global && (HookId != WH_KEYBOARD_LL && HookId != WH_MOUSE_LL) ) || WH_DEBUG == HookId || WH_JOURNALPLAYBACK == HookId || WH_JOURNALRECORD == HookId)
15 years, 9 months
1
0
0
0
[fireball] 39918: - Fix wrong placement of KEYBOARD_DEVICE_EXTENSION structure. - Fix wrong include order. - Fixes build.
by fireball@svn.reactos.org
Author: fireball Date: Mon Mar 9 21:49:47 2009 New Revision: 39918 URL:
http://svn.reactos.org/svn/reactos?rev=39918&view=rev
Log: - Fix wrong placement of KEYBOARD_DEVICE_EXTENSION structure. - Fix wrong include order. - Fixes build. Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.h Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbd…
============================================================================== --- trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c [iso-8859-1] Mon Mar 9 21:49:47 2009 @@ -7,7 +7,6 @@ */ #include "usbdriver.h" -#include "kbdmou.h" NTSTATUS AddRegistryEntry(IN PCWSTR PortTypeName, Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbd…
============================================================================== --- trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.h [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.h [iso-8859-1] Mon Mar 9 21:49:47 2009 @@ -1,5 +1,7 @@ #ifndef __KEYBOARD_H__ #define __KEYBOARD_H__ + +#include "kbdmou.h" typedef struct _KEYBOARD_DRVR_EXTENSION { @@ -17,6 +19,15 @@ struct _KEYBOARD_DEVICE_EXTENSION *device_ext; // back pointer } KEYBOARD_DRVR_EXTENSION, *PKEYBOARD_DRVR_EXTENSION; +typedef struct _KEYBOARD_DEVICE_EXTENSION +{ + DEVEXT_HEADER hdr; // mandatory header + PKEYBOARD_DRVR_EXTENSION DriverExtension; + KEYBOARD_INDICATOR_PARAMETERS KeyboardIndicators; + CONNECT_DATA ConnectData; + PDEVICE_OBJECT Fdo; +} KEYBOARD_DEVICE_EXTENSION, *PKEYBOARD_DEVICE_EXTENSION; + BOOLEAN kbd_driver_init(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdriver);
15 years, 9 months
1
0
0
0
[janderwald] 39917: - Disable message flood when playing audio files as it is very time critical and makes audio stutter - Free remaining irps and make sure that the dpc finished before stopping the audio stream. This fixing stuttering when there are too few audio buffers available. - Complete the IRPs when they are actually have played. This should make audio playback position become more accurate and prevents application to feed in too much audio buffers - VLC 0.9.8a can now playback audio fil
by janderwald@svn.reactos.org
Author: janderwald Date: Mon Mar 9 21:05:56 2009 New Revision: 39917 URL:
http://svn.reactos.org/svn/reactos?rev=39917&view=rev
Log: - Disable message flood when playing audio files as it is very time critical and makes audio stutter - Free remaining irps and make sure that the dpc finished before stopping the audio stream. This fixing stuttering when there are too few audio buffers available. - Complete the IRPs when they are actually have played. This should make audio playback position become more accurate and prevents application to feed in too much audio buffers - VLC 0.9.8a can now playback audio files (no window is shown -> different issue) Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/dispatcher.c trunk/reactos/drivers/wdm/audio/backpln/portcls/interfaces.h trunk/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.c trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c trunk/reactos/drivers/wdm/audio/sysaudio/pin.c trunk/reactos/include/reactos/libs/sound/mmebuddy.h trunk/reactos/lib/drivers/sound/mmebuddy/mmebuddy.rbuild Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/dispatcher.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/dispatcher.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/dispatcher.c [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -216,7 +216,7 @@ PDEVICE_OBJECT DeviceObject) { IIrpTarget * IrpTarget; - DPRINT1("Dispatch_fnFastWrite called DeviceObject %p Irp %p\n", DeviceObject); + //DPRINT1("Dispatch_fnFastWrite called DeviceObject %p Irp %p\n", DeviceObject); IrpTarget = (IIrpTarget *)FileObject->FsContext2; Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/interfaces.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/interfaces.h [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/interfaces.h [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -214,6 +214,8 @@ STDMETHOD_(BOOL, MinimumDataAvailable)(THIS); + STDMETHOD_(BOOL, CancelBuffers)(THIS); + }; Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -85,7 +85,6 @@ DPRINT1("Freed %u Buffers / IRP Available Mappings %u\n", Count, This->NumMappings); } - NTSTATUS NTAPI IIrpQueue_fnQueryInterface( @@ -170,7 +169,7 @@ Mapping->Irp = Irp; Mapping->Next = NULL; - DPRINT1("FirstMap %p LastMap %p NumMappings %u\n", This->FirstMap, This->LastMap, This->NumMappings); + //DPRINT1("FirstMap %p LastMap %p NumMappings %u\n", This->FirstMap, This->LastMap, This->NumMappings); if (!This->FirstMap) This->FirstMap = Mapping; @@ -190,7 +189,7 @@ This->NumDataAvailable += Mapping->Header->DataUsed; - DPRINT1("IIrpQueue_fnAddMapping NumMappings %u SizeOfMapping %lu NumDataAvailable %lu\n", This->NumMappings, Mapping->Header->DataUsed, This->NumDataAvailable); + DPRINT1("IIrpQueue_fnAddMapping NumMappings %u SizeOfMapping %lu NumDataAvailable %lu Irp %p\n", This->NumMappings, Mapping->Header->DataUsed, This->NumDataAvailable, Irp); return STATUS_SUCCESS; } @@ -230,6 +229,9 @@ This->CurrentOffset = 0; Mapping = This->FirstMap; This->FirstMap = This->FirstMap->Next; + + if (!This->FirstMap) + This->LastMap = NULL; This->FreeCount++; @@ -245,8 +247,7 @@ This->NumDataAvailable -= Mapping->Header->DataUsed; - if ((This->FreeDataSize > This->DataFormat->WaveFormatEx.nAvgBytesPerSec || This->FreeCount > 25) && - This->DpcActive == FALSE) + if (This->FreeCount > 5 && This->DpcActive == FALSE) { Mapping = This->FreeMapHead; This->FreeMapHead = NULL; @@ -292,7 +293,34 @@ return Result; } - +BOOL +NTAPI +IIrpQueue_fnCancelBuffers( + IN IIrpQueue *iface) +{ + PIRP_MAPPING Mapping; + IIrpQueueImpl * This = (IIrpQueueImpl*)iface; + + if (This->DpcActive) + return FALSE; + + ASSERT(This->FirstMap == NULL); + ASSERT(This->LastMap == NULL); + + if (This->FreeMapHead == NULL) + { + ASSERT(This->FreeMapTail == NULL); + This->FreeMapTail = NULL; + return TRUE; + } + + Mapping = This->FreeMapHead; + This->FreeMapHead = NULL; + This->FreeMapTail = NULL; + This->DpcActive = TRUE; + KeInsertQueueDpc(&This->Dpc, (PVOID)Mapping, NULL); + return FALSE; +} static IIrpQueueVtbl vt_IIrpQueue = { @@ -305,7 +333,8 @@ IIrpQueue_fnUpdateMapping, IIrpQueue_fnNumMappings, IIrpQueue_fnMinMappings, - IIrpQueue_fnMinimumDataAvailable + IIrpQueue_fnMinimumDataAvailable, + IIrpQueue_fnCancelBuffers }; Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.c [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -26,7 +26,6 @@ ULONG ActiveIrpBufferSize; ULONG ActiveIrpOffset; ULONG DelayedRequestInProgress; - ULONG RetryCount; ULONG FrameSize; }IPortPinWaveCyclicImpl; @@ -176,20 +175,19 @@ Status = This->IrpQueue->lpVtbl->GetMapping(This->IrpQueue, &Buffer, &BufferSize); if (!NT_SUCCESS(Status)) { - This->RetryCount++; - if (This->RetryCount > 30) + if (!This->IrpQueue->lpVtbl->CancelBuffers(This->IrpQueue)) { - DPRINT1("Stopping %u\n", This->IrpQueue->lpVtbl->NumMappings(This->IrpQueue)); - This->Stream->lpVtbl->SetState(This->Stream, KSSTATE_STOP); - This->RetryCount = 0; - This->State = KSSTATE_STOP; + /* there is an active dpc pending + * wait untill this dpc is done, in order to complete the remaining irps + */ return; } - DPRINT("IServiceSink_fnRequestService> Waiting for mapping\n"); - This->ServiceGroup->lpVtbl->RequestDelayedService(This->ServiceGroup, -10000000L); + DPRINT1("Stopping %u\n", This->IrpQueue->lpVtbl->NumMappings(This->IrpQueue)); + + This->Stream->lpVtbl->SetState(This->Stream, KSSTATE_PAUSE); + This->State = KSSTATE_PAUSE; return; } - This->RetryCount = 0; if (KeGetCurrentIrql() == DISPATCH_LEVEL) return; @@ -381,6 +379,7 @@ if (This->Stream) { + This->IrpQueue->lpVtbl->CancelBuffers(This->IrpQueue); This->Stream->lpVtbl->SetState(This->Stream, KSSTATE_STOP); This->State = KSSTATE_STOP; @@ -653,13 +652,13 @@ PIRP Irp; IPortPinWaveCyclicImpl * This = (IPortPinWaveCyclicImpl*)iface; - DPRINT1("IPortPinWaveCyclic_fnFastWrite entered\n"); + //DPRINT1("IPortPinWaveCyclic_fnFastWrite entered\n"); Packet = (PCONTEXT_WRITE)Buffer; - //if (This->IrpQueue->lpVtbl->MinimumDataAvailable(This->IrpQueue)) - // Irp = Packet->Irp; - //else + if (This->IrpQueue->lpVtbl->MinimumDataAvailable(This->IrpQueue)) + Irp = Packet->Irp; + else Irp = NULL; Status = This->IrpQueue->lpVtbl->AddMapping(This->IrpQueue, Buffer, Length, Irp); @@ -678,7 +677,7 @@ if (!Irp) { - DPRINT1("Completing Irp %p\n", Packet->Irp); + //DPRINT1("Completing Irp %p\n", Packet->Irp); Packet->Irp->IoStatus.Status = STATUS_SUCCESS; Packet->Irp->IoStatus.Information = Packet->Header.DataUsed; Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/w…
============================================================================== --- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -650,7 +650,7 @@ IoStack = IoGetCurrentIrpStackLocation(Irp); - DPRINT1("WdmAudWrite entered\n"); + //DPRINT("WdmAudWrite entered\n"); if (IoStack->Parameters.Write.Length < sizeof(WDMAUD_DEVICE_INFO)) { @@ -670,7 +670,7 @@ } - DPRINT1("DeviceInfo %p %p %p\n", DeviceInfo, Irp->MdlAddress->StartVa, Irp->MdlAddress->MappedSystemVa); + //DPRINT("DeviceInfo %p %p %p\n", DeviceInfo, Irp->MdlAddress->StartVa, Irp->MdlAddress->MappedSystemVa); if (DeviceInfo->DeviceType < MIN_SOUND_DEVICE_TYPE || DeviceInfo->DeviceType > MAX_SOUND_DEVICE_TYPE) { /* invalid parameter */ @@ -735,7 +735,5 @@ return IoStatusBlock.Status; - - //return SetIrpIoStatus(Irp, STATUS_SUCCESS, 0); -} - +} + Modified: trunk/reactos/drivers/wdm/audio/sysaudio/pin.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/sysaudio…
============================================================================== --- trunk/reactos/drivers/wdm/audio/sysaudio/pin.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/sysaudio/pin.c [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -218,7 +218,8 @@ { PDISPATCH_CONTEXT Context; NTSTATUS Status; - DPRINT1("Pin_fnFastWrite called DeviceObject %p Irp %p\n", DeviceObject); + + //DPRINT1("Pin_fnFastWrite called DeviceObject %p Irp %p\n", DeviceObject); Context = (PDISPATCH_CONTEXT)FileObject->FsContext2; Status = KsStreamIo(Context->FileObject, NULL, NULL, NULL, NULL, 0, IoStatus, Buffer, Length, KSSTREAM_WRITE, KernelMode); Modified: trunk/reactos/include/reactos/libs/sound/mmebuddy.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/sound…
============================================================================== --- trunk/reactos/include/reactos/libs/sound/mmebuddy.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/libs/sound/mmebuddy.h [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -56,7 +56,7 @@ { \ if ( ! ( condition ) ) \ { \ - SND_ERR(L"ASSERT FAILED: %hS\n", #condition); \ + SND_ERR(L"ASSERT FAILED: %hS File %hS Line %u\n", #condition, __FILE__, __LINE__); \ POPUP(L"ASSERT FAILED: %hS\n", #condition); \ ExitProcess(1); \ } \ @@ -80,6 +80,7 @@ #define SND_WARN(...) do {} while ( 0 ) #define SND_TRACE(...) do {} while ( 0 ) #define SND_ASSERT(condition) do {} while ( 0 ) + #define DUMP_WAVEHDR_QUEUE(condition) do {} while ( 0 ) #endif /* Modified: trunk/reactos/lib/drivers/sound/mmebuddy/mmebuddy.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmebuddy…
============================================================================== --- trunk/reactos/lib/drivers/sound/mmebuddy/mmebuddy.rbuild [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/sound/mmebuddy/mmebuddy.rbuild [iso-8859-1] Mon Mar 9 21:05:56 2009 @@ -2,7 +2,7 @@ <!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd"> <module name="mmebuddy" type="staticlibrary" allowwarnings="false" unicode="yes"> <include base="ReactOS">include/reactos/libs/sound</include> - <define name="DEBUG_NT4">1</define> + <define name="NDEBUG">1</define> <file>capabilities.c</file> <file>devicelist.c</file> <file>deviceinstance.c</file>
15 years, 9 months
1
0
0
0
[dgoette] 39916: * convert templates, instead of just change type * load backends of current instance instead of roscms master * show language selection in user interface again * minor adjustments
by dgoette@svn.reactos.org
Author: dgoette Date: Mon Mar 9 19:55:04 2009 New Revision: 39916 URL:
http://svn.reactos.org/svn/reactos?rev=39916&view=rev
Log: * convert templates, instead of just change type * load backends of current instance instead of roscms master * show language selection in user interface again * minor adjustments Modified:
branches/danny-web/reactos.org/htdocs/roscms/convert3to4.sql
branches/danny-web/reactos.org/htdocs/roscms/js/cms_maintain.js
branches/danny-web/reactos.org/htdocs/roscms/js/cms_website.js
branches/danny-web/reactos.org/htdocs/roscms/lib/HTML_User.class.php
branches/danny-web/reactos.org/htdocs/roscms/lib/RosCMS.class.php
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Maintain.cla…
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Website.clas…
branches/danny-web/reactos.org/htdocs/roscms/roscms_instance_example.php
Modified:
branches/danny-web/reactos.org/htdocs/roscms/convert3to4.sql
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/convert3to4.sql
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/convert3to4.sql
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -323,7 +323,7 @@ -- -------------------------------------------------------- CREATE TABLE roscms_entries ( id bigint(20) unsigned NOT NULL auto_increment, - type enum('page','content','dynamic','script','system') collate utf8_unicode_ci NOT NULL, + type enum('page','content','dynamic','script','system', 'template') collate utf8_unicode_ci NOT NULL, name varchar(64) collate utf8_unicode_ci NOT NULL, access_id bigint(20) unsigned COMMENT '->access(id)', old_id int(11) NOT NULL, @@ -343,16 +343,7 @@ s.id, d.data_id, TRUE -FROM data_a d JOIN roscms_entries_access s ON d.data_acl=s.name_short WHERE data_type != 'template' -UNION -SELECT - NULL, - 'content', - d.data_name, - s.id, - d.data_id, - TRUE -FROM data_a d JOIN roscms_entries_access s ON d.data_acl=s.name_short WHERE data_type = 'template' +FROM data_a d JOIN roscms_entries_access s ON d.data_acl=s.name_short UNION SELECT NULL, @@ -361,16 +352,7 @@ s.id, d.data_id, FALSE -FROM data_ d JOIN roscms_entries_access s ON d.data_acl=s.name_short WHERE data_type != 'template' -UNION -SELECT - NULL, - 'template', - d.data_name, - s.id, - d.data_id, - FALSE -FROM data_ d JOIN roscms_entries_access s ON d.data_acl=s.name_short WHERE data_type = 'template'; +FROM data_ d JOIN roscms_entries_access s ON d.data_acl=s.name_short; @@ -725,12 +707,37 @@ -- -------------------------------------------------------- +-- convert templates +-- -------------------------------------------------------- +INSERT INTO roscms_entries_tags +SELECT + NULL, + r.id, + -1, + 'kind', + 'template' +FROM roscms_entries d +JOIN roscms_entries_revisions r ON r.data_id=d.id +WHERE d.type = 'template'; + +-- remove from texts +UPDATE roscms_entries_text +SET content = REPLACE(content, '[#templ_', '[#cont_'); + +-- update entries +UPDATE roscms_entries +SET type = 'content' WHERE type ='template'; + + + +-- -------------------------------------------------------- -- remove converter specific fields -- -------------------------------------------------------- ALTER TABLE roscms_entries DROP old_id, DROP old_archive, - ADD UNIQUE KEY type_name ( type , name ); + ADD UNIQUE KEY type_name ( type , name ), + CHANGE `type` `type` ENUM( 'page', 'content', 'dynamic', 'script', 'system' ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE roscms_entries_revisions DROP old_id; ALTER TABLE roscms_entries_access DROP name_short; Modified:
branches/danny-web/reactos.org/htdocs/roscms/js/cms_maintain.js
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/js/cms_maintain.js
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/js/cms_maintain.js
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -1053,7 +1053,7 @@ if (kind === 'POST') { var parameters = getFormData(); - http_request.open('POST', url, true); + http_request.open('POST', roscms_intern_link+url, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", parameters.length); http_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); // Bypass the IE Cache @@ -1061,7 +1061,7 @@ http_request.send(parameters); } else { - http_request.open('GET', url, true); + http_request.open('GET', roscms_intern_link+url, true); http_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); // Bypass the IE Cache http_request.send(null); } Modified:
branches/danny-web/reactos.org/htdocs/roscms/js/cms_website.js
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/js/cms_website.js
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/js/cms_website.js
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -1510,7 +1510,7 @@ }; // internal function end if (kind === 'POST') { - http_request.open('POST', roscms_intern_webserver_roscms+url, true); + http_request.open('POST', roscms_intern_link+url, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", parameters.length); http_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); // Bypass the IE Cache @@ -1518,7 +1518,7 @@ http_request.send(parameters); } else { - http_request.open('GET', roscms_intern_webserver_roscms+url, true); + http_request.open('GET', roscms_intern_link+url, true); http_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); // Bypass the IE Cache http_request.send(null); } Modified:
branches/danny-web/reactos.org/htdocs/roscms/lib/HTML_User.class.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/lib/HTML_User.class.php
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/lib/HTML_User.class.php
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -133,7 +133,7 @@ // print current language $stmt=&DBConnection::getInstance()->prepare("SELECT id, name FROM ".ROSCMST_LANGUAGES." WHERE id = :lang_id"); - $stmt->bindParam('lang_id',$_GET['lang'],PDO::PARAM_INT); + $stmt->bindParam('lang_id',$thisuser->language(),PDO::PARAM_INT); $stmt->execute(); $current_lang = $stmt->fetchOnce(PDO::FETCH_ASSOC); Modified:
branches/danny-web/reactos.org/htdocs/roscms/lib/RosCMS.class.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/lib/RosCMS.class.php
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/lib/RosCMS.class.php
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -55,7 +55,7 @@ private $limit_password_max = 50; private $system_brand = 'RosCMS 4'; - private $system_version = '4.0.0 alpha'; + private $system_version = '4.0.0 beta'; private $applied = false; Modified:
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Maintain.cla…
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Maintain.cla…
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Maintain.cla…
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -69,6 +69,7 @@ <script type="text/javascript"> <!--'." var roscms_intern_webserver_roscms = '".RosCMS::getInstance()->pathRosCMS()."'; + var roscms_intern_link = '".RosCMS::getInstance()->pathInstance()."'; // access restrictions var roscms_access = new Object(); Modified:
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Website.clas…
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Website.clas…
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/lib/view/HTML_CMS_Website.clas…
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -95,7 +95,7 @@ var roscms_standard_language = '".Language::getStandardId()."'; var roscms_intern_login_check_username = '".$thisuser->name()."'; var roscms_intern_webserver_roscms = '".RosCMS::getInstance()->pathRosCMS()."'; - var roscms_intern_page_link = '".RosCMS::getInstance()->pathInstance()."?page='; + var roscms_intern_link = '".RosCMS::getInstance()->pathInstance()."'; var roscms_get_edit = '".(isset($_GET['edit']) ? $_GET['edit'] : '')."'; // access restrictions Modified:
branches/danny-web/reactos.org/htdocs/roscms/roscms_instance_example.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/ro…
============================================================================== ---
branches/danny-web/reactos.org/htdocs/roscms/roscms_instance_example.php
[iso-8859-1] (original) +++
branches/danny-web/reactos.org/htdocs/roscms/roscms_instance_example.php
[iso-8859-1] Mon Mar 9 19:55:04 2009 @@ -40,7 +40,8 @@ /////////////////////////////////////////////////////// // Config start /////////////////////////////////////// - + +// use this settings to force that the user has to login seperatly from original roscms $config->setCookieUserKey('roscmsusrkey'); // session key $config->setCookieUserName('roscmsusrname'); // user_name $config->setCookiePassword('rospassword'); // user_password (used for keep login function) @@ -55,11 +56,14 @@ // RosCMS Table Names -$config->setTable('ROSCMST_ENTRIES' , 'roscms_entries'); -$config->setTable('ROSCMST_REVISIONS' , 'roscms_entries_revisions'); -$config->setTable('ROSCMST_STEXT' , 'roscms_entries_stext'); -$config->setTable('ROSCMST_TAGS' , 'roscms_entries_tags'); -$config->setTable('ROSCMST_TEXT' , 'roscms_entries_text'); +$config->setTable('ROSCMST_ENTRIES' , 'other_entries'); +$config->setTable('ROSCMST_DEPENDENCIES' , 'other_rel_revisions_dependencies'); +$config->setTable('ROSCMST_REVISIONS' , 'other_entries_revisions'); +$config->setTable('ROSCMST_STEXT' , 'other_entries_stext'); +$config->setTable('ROSCMST_TAGS' , 'other_entries_tags'); +$config->setTable('ROSCMST_TEXT' , 'other_entries_text'); + +// see config.php in original RosCMS for more possible settings // Config end ///////////////////////////////////////// ///////////////////////////////////////////////////////
15 years, 9 months
1
0
0
0
[janderwald] 39915: - Register default sound schemes when an new audio adapter is installed - Pass the full filename to PlaySound as the sound might not be in standard location
by janderwald@svn.reactos.org
Author: janderwald Date: Mon Mar 9 14:51:28 2009 New Revision: 39915 URL:
http://svn.reactos.org/svn/reactos?rev=39915&view=rev
Log: - Register default sound schemes when an new audio adapter is installed - Pass the full filename to PlaySound as the sound might not be in standard location Modified: trunk/reactos/dll/cpl/mmsys/mmsys.c trunk/reactos/dll/cpl/mmsys/resource.h trunk/reactos/dll/cpl/mmsys/sounds.c Modified: trunk/reactos/dll/cpl/mmsys/mmsys.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/mmsys.c?rev=…
============================================================================== --- trunk/reactos/dll/cpl/mmsys/mmsys.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/mmsys/mmsys.c [iso-8859-1] Mon Mar 9 14:51:28 2009 @@ -30,6 +30,62 @@ HWPD_MAX = HWPD_LARGELIST } HWPAGE_DISPLAYMODE, *PHWPAGE_DISPLAYMODE; +typedef struct +{ + LPWSTR LabelName; + LPWSTR DefaultName; + UINT LocalizedResId; + LPWSTR FileName; +}EVENT_LABEL_ITEM; + +typedef struct +{ + LPWSTR LabelName; + LPWSTR DefaultName; + UINT IconId; +}SYSTEM_SCHEME_ITEM; + +static EVENT_LABEL_ITEM EventLabels[] = +{ + { + L"WindowsLogon", + L"ReactOS Logon", + IDS_REACTOS_LOGON, + L"ReactOS_Logon.wav" + }, + { + L"WindowsLogoff", + L"ReactOS Logoff", + IDS_REACTOS_LOGOFF, + L"ReactOS_Logoff.wav" + }, + { + NULL, + NULL, + 0, + NULL + } +}; + +static SYSTEM_SCHEME_ITEM SystemSchemes[] = +{ + { + L".Default", + L"ReactOS Standard", + IDS_REACTOS_DEFAULT_SCHEME + }, + { + L".None", + L"No Sounds", + -1 + }, + { + NULL, + NULL + } +}; + + HWND WINAPI DeviceCreateHardwarePageEx(HWND hWndParent, LPGUID lpGuids, @@ -155,6 +211,127 @@ { DPRINT1("ShowFullControlPanel() stubs\n"); } + +VOID +InstallSystemSoundLabels(HKEY hKey) +{ + UINT i = 0; + HKEY hSubKey; + WCHAR Buffer[40]; + + do + { + if (RegCreateKeyExW(hKey, EventLabels[i].LabelName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hSubKey, NULL) == ERROR_SUCCESS) + { + RegSetValueExW(hSubKey, NULL, 0, REG_SZ, (LPBYTE)EventLabels[i].DefaultName, (wcslen(EventLabels[i].DefaultName)+1) * sizeof(WCHAR)); + swprintf(Buffer, L"@mmsys.cpl,-%u", EventLabels[i].LocalizedResId); + RegSetValueExW(hSubKey, L"DispFileName", 0, REG_SZ, (LPBYTE)Buffer, (wcslen(Buffer)+1) * sizeof(WCHAR)); + + RegCloseKey(hSubKey); + } + i++; + }while(EventLabels[i].LabelName); +} + +VOID +InstallSystemSoundSchemeNames(HKEY hKey) +{ + UINT i = 0; + HKEY hSubKey; + + do + { + if (RegCreateKeyExW(hKey, SystemSchemes[i].LabelName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hSubKey, NULL) == ERROR_SUCCESS) + { + RegSetValueExW(hSubKey, NULL, 0, REG_SZ, (LPBYTE)SystemSchemes[i].DefaultName, (wcslen(SystemSchemes[i].DefaultName)+1) * sizeof(WCHAR)); + RegCloseKey(hSubKey); + } + i++; + }while(SystemSchemes[i].LabelName); +} + +VOID +InstallDefaultSystemSoundScheme(HKEY hRootKey) +{ + HKEY hKey, hSubKey; + WCHAR Path[MAX_PATH]; + UINT i = 0; + + if (RegCreateKeyExW(hRootKey, L".Default", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, NULL) != ERROR_SUCCESS) + return; + + RegSetValueExW(hKey, NULL, 0, REG_SZ, (LPBYTE)SystemSchemes[0].DefaultName, (wcslen(SystemSchemes[0].DefaultName)+1) * sizeof(WCHAR)); + swprintf(Path, L"@mmsys.cpl,-%u", SystemSchemes[0].IconId); + RegSetValueExW(hKey, L"DispFileName", 0, REG_SZ, (LPBYTE)Path, (wcslen(Path)+1) * sizeof(WCHAR)); + + do + { + if (RegCreateKeyExW(hKey, EventLabels[i].LabelName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hSubKey, NULL) == ERROR_SUCCESS) + { + HKEY hScheme; + + swprintf(Path, L"%%SystemRoot%%\\media\\%s", EventLabels[i].FileName); + if (RegCreateKeyExW(hSubKey, L".Current", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hScheme, NULL) == ERROR_SUCCESS) + { + RegSetValueExW(hScheme, NULL, 0, REG_SZ, (LPBYTE)Path, (wcslen(Path)+1) * sizeof(WCHAR)); + RegCloseKey(hScheme); + } + + if (RegCreateKeyExW(hSubKey, L".Default", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hScheme, NULL) == ERROR_SUCCESS) + { + RegSetValueExW(hScheme, NULL, 0, REG_SZ, (LPBYTE)Path, (wcslen(Path)+1) * sizeof(WCHAR)); + RegCloseKey(hScheme); + } + RegCloseKey(hSubKey); + } + i++; + }while(EventLabels[i].LabelName); + + RegCloseKey(hKey); +} + + +VOID +InstallSystemSoundScheme() +{ + HKEY hKey, hSubKey; + DWORD dwDisposition; + + if (RegCreateKeyExW(HKEY_CURRENT_USER, L"AppEvents", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, NULL) != ERROR_SUCCESS) + return; + + if (RegCreateKeyExW(hKey, L"EventLabels", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hSubKey, NULL) == ERROR_SUCCESS) + { + InstallSystemSoundLabels(hSubKey); + RegCloseKey(hSubKey); + } + + if (RegCreateKeyExW(hKey, L"Schemes", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hSubKey, &dwDisposition) == ERROR_SUCCESS) + { + HKEY hNames; + + if (RegCreateKeyExW(hSubKey, L"Names", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hNames, NULL) == ERROR_SUCCESS) + { + InstallSystemSoundSchemeNames(hNames); + RegCloseKey(hNames); + } + + if (RegCreateKeyExW(hSubKey, L"Apps", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hNames, NULL) == ERROR_SUCCESS) + { + InstallDefaultSystemSoundScheme(hNames); + RegCloseKey(hNames); + if (dwDisposition & REG_CREATED_NEW_KEY) + { + RegSetValueExW(hSubKey, NULL, 0, REG_SZ, (LPBYTE)L".Default", (wcslen(L".Default")+1) * sizeof(WCHAR)); //FIXME + } + } + + RegCloseKey(hSubKey); + } + + RegCloseKey(hKey); +} + DWORD MMSYS_InstallDevice(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pspDevInfoData) @@ -263,6 +440,7 @@ } RegCloseKey(hKey); } + InstallSystemSoundScheme(); return ERROR_DI_DO_DEFAULT; Modified: trunk/reactos/dll/cpl/mmsys/resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/resource.h?r…
============================================================================== --- trunk/reactos/dll/cpl/mmsys/resource.h [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/mmsys/resource.h [iso-8859-1] Mon Mar 9 14:51:28 2009 @@ -66,6 +66,11 @@ #define IDC_SPEAKIMG 4625 #define IDC_MUTE_ICON 4626 +#define IDS_REACTOS_LOGON 5853 +#define IDS_REACTOS_LOGOFF 5852 +#define IDS_REACTOS_DEFAULT_SCHEME 5856 + + /* Strings */ #define IDS_CPLNAME 1000 #define IDS_CPLDESCRIPTION 1001 Modified: trunk/reactos/dll/cpl/mmsys/sounds.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/sounds.c?rev…
============================================================================== --- trunk/reactos/dll/cpl/mmsys/sounds.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/mmsys/sounds.c [iso-8859-1] Mon Mar 9 14:51:28 2009 @@ -826,15 +826,17 @@ case IDC_PLAY_SOUND: { LRESULT lIndex; - TCHAR szValue[MAX_PATH]; - lIndex = SendDlgItemMessage(hwndDlg, IDC_SOUND_LIST, CB_GETCURSEL, (WPARAM)0, (LPARAM)0); if (lIndex == CB_ERR) { break; } - SendDlgItemMessage(hwndDlg, IDC_SOUND_LIST, CB_GETLBTEXT, (WPARAM)lIndex, (LPARAM)szValue); - PlaySound(szValue, NULL, SND_FILENAME); + + lIndex = SendDlgItemMessage(hwndDlg, IDC_SOUND_LIST, CB_GETITEMDATA, (WPARAM)lIndex, (LPARAM)0); + if (lIndex != CB_ERR) + { + PlaySound((TCHAR*)lIndex, NULL, SND_FILENAME); + } break; } case IDC_SOUND_SCHEME:
15 years, 9 months
1
0
0
0
[fireball] 39914: - Move USB keyboard LEDs managing code into an own function.
by fireball@svn.reactos.org
Author: fireball Date: Mon Mar 9 13:11:24 2009 New Revision: 39914 URL:
http://svn.reactos.org/svn/reactos?rev=39914&view=rev
Log: - Move USB keyboard LEDs managing code into an own function. Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbd…
============================================================================== --- trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/nt4compat/usbdriver/keyboard.c [iso-8859-1] Mon Mar 9 13:11:24 2009 @@ -18,7 +18,6 @@ BOOLEAN kbd_disconnect(PUSB_DEV_MANAGER dev_mgr, DEV_HANDLE dev_handle); BOOLEAN kbd_stop(PUSB_DEV_MANAGER dev_mgr, DEV_HANDLE dev_handle); VOID kbd_irq(PURB purb, PVOID pcontext); -VOID kbd_led(PURB purb, PVOID pcontext); static NTSTATUS KeyboardCreateDevice(IN PDRIVER_OBJECT DriverObject, IN PKEYBOARD_DRVR_EXTENSION DriverExtension); void * memscan(void * addr, int c, size_t size); @@ -130,7 +129,6 @@ PKEYBOARD_DRVR_EXTENSION pdev_ext; PUSB_ENDPOINT_DESC pendp_desc = NULL; ULONG MaxPacketSize; - PUSB_CTRL_SETUP_PACKET psetup; usb_dbg_print(DBGLVL_MAXIMUM, ("kbd_connect(): entering...\n")); @@ -183,41 +181,6 @@ purb = NULL; } - // Set LEDs request - purb = usb_alloc_mem(NonPagedPool, sizeof(URB)); - if (purb == NULL) return FALSE; - RtlZeroMemory(purb, sizeof(URB)); - - pdev_ext->leds_old = 0; - pdev_ext->leds = 7; - - // Build a URB for setting LEDs - psetup = (PUSB_CTRL_SETUP_PACKET) (purb)->setup_packet; - urb_init((purb)); - - purb->endp_handle = usb_make_handle((dev_handle >> 16), 0, 0) | 0xffff; - purb->data_buffer = &pdev_ext->leds; - purb->data_length = 1; - purb->completion = NULL; - purb->context = NULL; - purb->reference = (LONG)pdrvr; - psetup->bmRequestType = USB_DT_HID; - psetup->bRequest = USB_REQ_SET_CONFIGURATION; - psetup->wValue = USB_DT_CONFIG << 8; - psetup->wIndex = param->if_desc->bInterfaceNumber; - psetup->wLength = 1; - - // Call USB driver stack - status = usb_submit_urb(pdev_ext->dev_mgr, purb); - if (status != STATUS_PENDING) - { - usb_free_mem(purb); - purb = NULL; - } - - usb_dbg_print(DBGLVL_MAXIMUM, ("kbd_connect(): leds urb status 0x%x, Interface number %d\n", - status, param->if_desc->bInterfaceNumber)); - return TRUE; } @@ -362,7 +325,43 @@ VOID kbd_setleds(PKEYBOARD_DEVICE_EXTENSION DeviceExtension) { - //DPRINT("%x\n", DevExt->KeyboardIndicators.LedFlags); + PURB Urb; + PUSB_CTRL_SETUP_PACKET Setup; + NTSTATUS Status; + + // Set LEDs request + Urb = usb_alloc_mem(NonPagedPool, sizeof(URB)); + if (!Urb) return; + RtlZeroMemory(Urb, sizeof(URB)); + + DeviceExtension->DriverExtension->leds_old = 0; + DeviceExtension->DriverExtension->leds = 7; + + // Convert from LedFlags to USB format + //DeviceExtension->KeyboardIndicators.LedFlags + + // Build a URB for setting LEDs + Setup = (PUSB_CTRL_SETUP_PACKET)Urb->setup_packet; + urb_init((Urb)); + + Urb->endp_handle = usb_make_handle((DeviceExtension->DriverExtension->dev_handle >> 16), 0, 0) | 0xffff; + Urb->data_buffer = &DeviceExtension->DriverExtension->leds; + Urb->data_length = 1; + Urb->completion = NULL; + Urb->context = NULL; + Urb->reference = 0; + Setup->bmRequestType = USB_DT_HID; + Setup->bRequest = USB_REQ_SET_CONFIGURATION; + Setup->wValue = USB_DT_CONFIG << 8; + Setup->wIndex = 0; + Setup->wLength = 1; + + // Call USB driver stack + Status = usb_submit_urb(DeviceExtension->DriverExtension->dev_mgr, Urb); + if (Status != STATUS_PENDING) + { + usb_free_mem(Urb); + } } // Dispatch routine for our IRPs
15 years, 9 months
1
0
0
0
← Newer
1
...
36
37
38
39
40
41
42
...
49
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
Results per page:
10
25
50
100
200