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
February 2015
----- 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
16 participants
372 discussions
Start a n
N
ew thread
[tfaber] 66277: [KMTESTS:KE] - Enable KeSpinLock test that apparently never made it into testlist.c for some reason?
by tfaber@svn.reactos.org
Author: tfaber Date: Sun Feb 15 09:29:32 2015 New Revision: 66277 URL:
http://svn.reactos.org/svn/reactos?rev=66277&view=rev
Log: [KMTESTS:KE] - Enable KeSpinLock test that apparently never made it into testlist.c for some reason? Modified: trunk/rostests/kmtests/kmtest_drv/testlist.c Modified: trunk/rostests/kmtests/kmtest_drv/testlist.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/kmtest_drv/testli…
============================================================================== --- trunk/rostests/kmtests/kmtest_drv/testlist.c [iso-8859-1] (original) +++ trunk/rostests/kmtests/kmtest_drv/testlist.c [iso-8859-1] Sun Feb 15 09:29:32 2015 @@ -36,6 +36,7 @@ KMT_TESTFUNC Test_KeIrql; KMT_TESTFUNC Test_KeMutex; KMT_TESTFUNC Test_KeProcessor; +KMT_TESTFUNC Test_KeSpinLock; KMT_TESTFUNC Test_KeTimer; KMT_TESTFUNC Test_KernelType; KMT_TESTFUNC Test_MmSection; @@ -93,6 +94,7 @@ { "KeIrql", Test_KeIrql }, { "KeMutex", Test_KeMutex }, { "-KeProcessor", Test_KeProcessor }, + { "KeSpinLock", Test_KeSpinLock }, { "KeTimer", Test_KeTimer }, { "-KernelType", Test_KernelType }, { "MmSection", Test_MmSection },
9 years, 10 months
1
0
0
0
[janderwald] 66276: [INF] - add wdmaudio.inf
by janderwald@svn.reactos.org
Author: janderwald Date: Sun Feb 15 09:03:08 2015 New Revision: 66276 URL:
http://svn.reactos.org/svn/reactos?rev=66276&view=rev
Log: [INF] - add wdmaudio.inf Added: trunk/reactos/media/inf/wdmaudio.inf (with props) Modified: trunk/reactos/media/inf/CMakeLists.txt Modified: trunk/reactos/media/inf/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/inf/CMakeLists.txt?r…
============================================================================== --- trunk/reactos/media/inf/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/media/inf/CMakeLists.txt [iso-8859-1] Sun Feb 15 09:03:08 2015 @@ -39,6 +39,7 @@ usb.inf usbport.inf usbstor.inf + wdmaudio.inf xboxdisp.inf) foreach(item ${INF_FILES}) Added: trunk/reactos/media/inf/wdmaudio.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/inf/wdmaudio.inf?rev…
============================================================================== Binary file - no diff available. Propchange: trunk/reactos/media/inf/wdmaudio.inf ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream
9 years, 10 months
1
0
0
0
[hbelusca] 66275: [WINLOGON][USER32] Fix the explanations of how Windows/ReactOS should shut down (it's winlogon itself that calls NtShutdownSystem, not something else; that story about "SMSS API #...
by hbelusca@svn.reactos.org
Author: hbelusca Date: Sun Feb 15 02:07:23 2015 New Revision: 66275 URL:
http://svn.reactos.org/svn/reactos?rev=66275&view=rev
Log: [WINLOGON][USER32] Fix the explanations of how Windows/ReactOS should shut down (it's winlogon itself that calls NtShutdownSystem, not something else; that story about "SMSS API #1" concerns the SMSS API SmpSessionCompleteApi called by the helper function SmSessionComplete which is in turn called by CSRSS function CsrDereferenceNtSession, when all win32 processes are gone, as it should). The webpage
http://www.reactos.org/wiki/ShutdownProcess
should be corrected for. [USER32] Whitespace fixes for winstation code. Modified: trunk/reactos/base/system/winlogon/sas.c trunk/reactos/win32ss/user/user32/misc/exit.c trunk/reactos/win32ss/user/user32/misc/winsta.c Modified: trunk/reactos/base/system/winlogon/sas.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/sas.c…
============================================================================== --- trunk/reactos/base/system/winlogon/sas.c [iso-8859-1] (original) +++ trunk/reactos/base/system/winlogon/sas.c [iso-8859-1] Sun Feb 15 02:07:23 2015 @@ -898,7 +898,8 @@ /* Destroy SAS window */ UninitializeSAS(Session); - FIXME("FIXME: Call SMSS API #1\n"); + /* Now we can shut down NT */ + ERR("Shutting down NT...\n"); RtlAdjustPrivilege(SE_SHUTDOWN_PRIVILEGE, TRUE, FALSE, &Old); if (wlxAction == WLX_SAS_ACTION_SHUTDOWN_REBOOT) { Modified: trunk/reactos/win32ss/user/user32/misc/exit.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/e…
============================================================================== --- trunk/reactos/win32ss/user/user32/misc/exit.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/user32/misc/exit.c [iso-8859-1] Sun Feb 15 02:07:23 2015 @@ -17,10 +17,10 @@ * * - App (usually explorer) calls ExitWindowsEx() * - ExitWindowsEx() sends a message to CSRSS - * - CSRSS impersonates the caller and sends a message to a hidden WinLogon window - * - WinLogon checks if the caller has the required privileges - * - WinLogon enters pending log-out state - * - WinLogon impersonates the interactive user and calls ExitWindowsEx() again, + * - CSRSS impersonates the caller and sends a message to a hidden Winlogon window + * - Winlogon checks if the caller has the required privileges + * - Winlogon enters pending log-out state + * - Winlogon impersonates the interactive user and calls ExitWindowsEx() again, * passing some special internal flags * - CSRSS loops over all processes of the interactive user (sorted by their * SetProcessShutdownParameters() level), sending WM_QUERYENDSESSION and @@ -39,28 +39,24 @@ * If the handler doesn't respond in time the same activities as for GUI * apps (i.e. display dialog box etc) take place. This also happens if * the handler returns TRUE. - * - This ends the processing for the first ExitWindowsEx() call from WinLogon. - * Execution continues in WinLogon, which calls ExitWindowsEx() again to + * - This ends the processing for the first ExitWindowsEx() call from Winlogon. + * Execution continues in Winlogon, which calls ExitWindowsEx() again to * terminate COM processes in the interactive user's session. - * - WinLogon stops impersonating the interactive user (whose processes are + * - Winlogon stops impersonating the interactive user (whose processes are * all dead by now). and enters log-out state - * - If the ExitWindowsEx() request was for a logoff, WinLogon sends a SAS - * event (to display the "press ctrl+alt+del") to the GINA. WinLogon then + * - If the ExitWindowsEx() request was for a logoff, Winlogon sends a SAS + * event (to display the "press ctrl+alt+del") to the GINA. Winlogon then * waits for the GINA to send a SAS event to login. - * - If the ExitWindowsEx() request was for shutdown/restart, WinLogon calls + * - If the ExitWindowsEx() request was for shutdown/restart, Winlogon calls * ExitWindowsEx() again in the system process context. * - CSRSS goes through the motions of sending WM_QUERYENDSESSION/WM_ENDSESSION * to GUI processes running in the system process context but won't display * dialog boxes or kill threads/processes. Same for console processes, * using the CTRL_SHUTDOWN_EVENT. The Service Control Manager is one of * these console processes and has a special timeout value WaitToKillServiceTimeout. - * - WinLogon issues a "InitiateSystemShutdown" request to the SM (SMSS API # 1) - * - the SM propagates the shutdown request to every environment subsystem it - * started since bootstrap time (still active ones, of course) - * - each environment subsystem, on shutdown request, releases every resource - * it aquired during its life (processes, memory etc), then dies - * - when every environment subsystem has gone to bed, the SM actually initiates - * the kernel and executive shutdown by calling NtShutdownSystem. + * - After CSRSS has finished its pass notifying processes that system is shutting down, + * Winlogon finishes the shutdown process by calling the executive subsystem + * function NtShutdownSystem. */ typedef struct Modified: trunk/reactos/win32ss/user/user32/misc/winsta.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/w…
============================================================================== --- trunk/reactos/win32ss/user/user32/misc/winsta.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/user32/misc/winsta.c [iso-8859-1] Sun Feb 15 02:07:23 2015 @@ -19,9 +19,9 @@ */ HWINSTA WINAPI CreateWindowStationA(LPCSTR lpwinsta, - DWORD dwReserved, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa) + DWORD dwReserved, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa) { UNICODE_STRING WindowStationNameU; HWINSTA hWinSta; @@ -53,55 +53,55 @@ */ HWINSTA WINAPI CreateWindowStationW(LPCWSTR lpwinsta, - DWORD dwReserved, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa) -{ - UNICODE_STRING WindowStationName; - UNICODE_STRING WindowStationsDir = RTL_CONSTANT_STRING(L"\\Windows\\WindowStations"); - OBJECT_ATTRIBUTES ObjectAttributes; - HANDLE hWindowStationsDir; - NTSTATUS Status; - HWINSTA hwinsta; - - /* Open WindowStations directory */ - InitializeObjectAttributes(&ObjectAttributes, - &WindowStationsDir, - OBJ_CASE_INSENSITIVE, - 0, - 0); - - Status = NtOpenDirectoryObject(&hWindowStationsDir, - DIRECTORY_CREATE_OBJECT, - &ObjectAttributes); - if(!NT_SUCCESS(Status)) - { - ERR("Failed to open WindowStations directory\n"); - return NULL; - } - - RtlInitUnicodeString(&WindowStationName, lpwinsta); - - /* Create the window station object */ - InitializeObjectAttributes(&ObjectAttributes, - &WindowStationName, - OBJ_CASE_INSENSITIVE, - hWindowStationsDir, - 0); - - /* Check if the handle should be inheritable */ - if (lpsa && lpsa->bInheritHandle) - { - ObjectAttributes.Attributes |= OBJ_INHERIT; - } - - hwinsta = NtUserCreateWindowStation(&ObjectAttributes, - dwDesiredAccess, - 0, 0, 0, 0, 0); - - NtClose(hWindowStationsDir); - - return hwinsta; + DWORD dwReserved, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa) +{ + UNICODE_STRING WindowStationName; + UNICODE_STRING WindowStationsDir = RTL_CONSTANT_STRING(L"\\Windows\\WindowStations"); + OBJECT_ATTRIBUTES ObjectAttributes; + HANDLE hWindowStationsDir; + NTSTATUS Status; + HWINSTA hwinsta; + + /* Open WindowStations directory */ + InitializeObjectAttributes(&ObjectAttributes, + &WindowStationsDir, + OBJ_CASE_INSENSITIVE, + 0, + 0); + + Status = NtOpenDirectoryObject(&hWindowStationsDir, + DIRECTORY_CREATE_OBJECT, + &ObjectAttributes); + if(!NT_SUCCESS(Status)) + { + ERR("Failed to open WindowStations directory\n"); + return NULL; + } + + RtlInitUnicodeString(&WindowStationName, lpwinsta); + + /* Create the window station object */ + InitializeObjectAttributes(&ObjectAttributes, + &WindowStationName, + OBJ_CASE_INSENSITIVE, + hWindowStationsDir, + 0); + + /* Check if the handle should be inheritable */ + if (lpsa && lpsa->bInheritHandle) + { + ObjectAttributes.Attributes |= OBJ_INHERIT; + } + + hwinsta = NtUserCreateWindowStation(&ObjectAttributes, + dwDesiredAccess, + 0, 0, 0, 0, 0); + + NtClose(hWindowStationsDir); + + return hwinsta; } /* @@ -110,87 +110,78 @@ BOOL FASTCALL EnumNamesW(HWINSTA WindowStation, NAMEENUMPROCW EnumFunc, - LPARAM Context, + LPARAM Context, BOOL Desktops) { - char Buffer[256]; - PVOID NameList; - PWCHAR Name; - NTSTATUS Status; - ULONG RequiredSize; - ULONG CurrentEntry, EntryCount; - BOOL Ret; - - /* - * Check parameters - */ - if (NULL == WindowStation && Desktops) - { - WindowStation = GetProcessWindowStation(); - } - - /* - * Try with fixed-size buffer - */ - Status = NtUserBuildNameList(WindowStation, sizeof(Buffer), Buffer, &RequiredSize); - if (NT_SUCCESS(Status)) - { - /* Fixed-size buffer is large enough */ - NameList = (PWCHAR) Buffer; - } - else if (Status == STATUS_BUFFER_TOO_SMALL) - { - /* Allocate a larger buffer */ - NameList = HeapAlloc(GetProcessHeap(), 0, RequiredSize); - if (NULL == NameList) - { - return FALSE; - } - /* Try again */ - Status = NtUserBuildNameList(WindowStation, RequiredSize, NameList, NULL); - if (! NT_SUCCESS(Status)) - { - HeapFree(GetProcessHeap(), 0, NameList); - SetLastError(RtlNtStatusToDosError(Status)); - return FALSE; - } - } - else - { - /* Some unrecognized error occured */ - SetLastError(RtlNtStatusToDosError(Status)); - return FALSE; - } - - /* - * Enum the names one by one - */ - EntryCount = *((DWORD *) NameList); - Name = (PWCHAR) ((PCHAR) NameList + sizeof(DWORD)); - Ret = TRUE; - for (CurrentEntry = 0; CurrentEntry < EntryCount && Ret; ++CurrentEntry) - { - Ret = (*EnumFunc)(Name, Context); - Name += wcslen(Name) + 1; - } - - /* - * Cleanup - */ - if (NameList != Buffer) - { - HeapFree(GetProcessHeap(), 0, NameList); - } - - return Ret; + CHAR Buffer[256]; + PVOID NameList; + PWCHAR Name; + NTSTATUS Status; + ULONG RequiredSize; + ULONG CurrentEntry, EntryCount; + BOOL Ret; + + /* Check parameters */ + if (WindowStation == NULL && Desktops) + { + WindowStation = GetProcessWindowStation(); + } + + /* Try with fixed-size buffer */ + Status = NtUserBuildNameList(WindowStation, sizeof(Buffer), Buffer, &RequiredSize); + if (NT_SUCCESS(Status)) + { + /* Fixed-size buffer is large enough */ + NameList = (PWCHAR) Buffer; + } + else if (Status == STATUS_BUFFER_TOO_SMALL) + { + /* Allocate a larger buffer */ + NameList = HeapAlloc(GetProcessHeap(), 0, RequiredSize); + if (NameList == NULL) + return FALSE; + + /* Try again */ + Status = NtUserBuildNameList(WindowStation, RequiredSize, NameList, NULL); + if (!NT_SUCCESS(Status)) + { + HeapFree(GetProcessHeap(), 0, NameList); + SetLastError(RtlNtStatusToDosError(Status)); + return FALSE; + } + } + else + { + /* Some unrecognized error occured */ + SetLastError(RtlNtStatusToDosError(Status)); + return FALSE; + } + + /* Enum the names one by one */ + EntryCount = *((DWORD *) NameList); + Name = (PWCHAR) ((PCHAR) NameList + sizeof(DWORD)); + Ret = TRUE; + for (CurrentEntry = 0; CurrentEntry < EntryCount && Ret; ++CurrentEntry) + { + Ret = (*EnumFunc)(Name, Context); + Name += wcslen(Name) + 1; + } + + /* Cleanup */ + if (NameList != Buffer) + { + HeapFree(GetProcessHeap(), 0, NameList); + } + + return Ret; } /* For W->A conversion */ typedef struct tagENUMNAMESASCIICONTEXT { - NAMEENUMPROCA UserEnumFunc; - LPARAM UserContext; + NAMEENUMPROCA UserEnumFunc; + LPARAM UserContext; } ENUMNAMESASCIICONTEXT, *PENUMNAMESASCIICONTEXT; /* @@ -200,65 +191,59 @@ BOOL CALLBACK EnumNamesCallback(LPWSTR Name, LPARAM Param) { - PENUMNAMESASCIICONTEXT Context = (PENUMNAMESASCIICONTEXT) Param; - char FixedNameA[32]; - LPSTR NameA; - int Len; - BOOL Ret; - - /* - * Determine required size of Ascii string and see if we can use - * fixed buffer - */ - Len = WideCharToMultiByte(CP_ACP, 0, Name, -1, NULL, 0, NULL, NULL); - if (Len <= 0) - { - /* Some strange error occured */ - return FALSE; - } - else if (Len <= sizeof(FixedNameA)) - { - /* Fixed-size buffer is large enough */ - NameA = FixedNameA; - } - else - { - /* Allocate a larger buffer */ - NameA = HeapAlloc(GetProcessHeap(), 0, Len); - if (NULL == NameA) - { - SetLastError(ERROR_NOT_ENOUGH_MEMORY); - return FALSE; - } - } - - /* - * Do the Unicode ->Ascii conversion - */ - if (0 == WideCharToMultiByte(CP_ACP, 0, Name, -1, NameA, Len, NULL, NULL)) - { - /* Something went wrong, clean up */ - if (NameA != FixedNameA) - { - HeapFree(GetProcessHeap(), 0, NameA); - } - return FALSE; - } - - /* - * Call user callback - */ - Ret = Context->UserEnumFunc(NameA, Context->UserContext); - - /* - * Clean up - */ - if (NameA != FixedNameA) - { - HeapFree(GetProcessHeap(), 0, NameA); - } - - return Ret; + PENUMNAMESASCIICONTEXT Context = (PENUMNAMESASCIICONTEXT) Param; + CHAR FixedNameA[32]; + LPSTR NameA; + INT Len; + BOOL Ret; + + /* + * Determine required size of Ascii string and see + * if we can use fixed buffer. + */ + Len = WideCharToMultiByte(CP_ACP, 0, Name, -1, NULL, 0, NULL, NULL); + if (Len <= 0) + { + /* Some strange error occured */ + return FALSE; + } + else if (Len <= sizeof(FixedNameA)) + { + /* Fixed-size buffer is large enough */ + NameA = FixedNameA; + } + else + { + /* Allocate a larger buffer */ + NameA = HeapAlloc(GetProcessHeap(), 0, Len); + if (NULL == NameA) + { + SetLastError(ERROR_NOT_ENOUGH_MEMORY); + return FALSE; + } + } + + /* Do the Unicode ->Ascii conversion */ + if (0 == WideCharToMultiByte(CP_ACP, 0, Name, -1, NameA, Len, NULL, NULL)) + { + /* Something went wrong, clean up */ + if (NameA != FixedNameA) + { + HeapFree(GetProcessHeap(), 0, NameA); + } + return FALSE; + } + + /* Call user callback */ + Ret = Context->UserEnumFunc(NameA, Context->UserContext); + + /* Cleanup */ + if (NameA != FixedNameA) + { + HeapFree(GetProcessHeap(), 0, NameA); + } + + return Ret; } /* @@ -267,15 +252,15 @@ BOOL FASTCALL EnumNamesA(HWINSTA WindowStation, NAMEENUMPROCA EnumFunc, - LPARAM Context, + LPARAM Context, BOOL Desktops) { - ENUMNAMESASCIICONTEXT PrivateContext; - - PrivateContext.UserEnumFunc = EnumFunc; - PrivateContext.UserContext = Context; - - return EnumNamesW(WindowStation, EnumNamesCallback, (LPARAM) &PrivateContext, Desktops); + ENUMNAMESASCIICONTEXT PrivateContext; + + PrivateContext.UserEnumFunc = EnumFunc; + PrivateContext.UserContext = Context; + + return EnumNamesW(WindowStation, EnumNamesCallback, (LPARAM) &PrivateContext, Desktops); } /* @@ -283,9 +268,9 @@ */ BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA EnumFunc, - LPARAM Context) -{ - return EnumNamesA(NULL, EnumFunc, Context, FALSE); + LPARAM Context) +{ + return EnumNamesA(NULL, EnumFunc, Context, FALSE); } @@ -294,9 +279,9 @@ */ BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW EnumFunc, - LPARAM Context) -{ - return EnumNamesW(NULL, EnumFunc, Context, FALSE); + LPARAM Context) +{ + return EnumNamesW(NULL, EnumFunc, Context, FALSE); } @@ -305,8 +290,8 @@ */ HWINSTA WINAPI OpenWindowStationA(LPCSTR lpszWinSta, - BOOL fInherit, - ACCESS_MASK dwDesiredAccess) + BOOL fInherit, + ACCESS_MASK dwDesiredAccess) { UNICODE_STRING WindowStationNameU; HWINSTA hWinSta; @@ -340,48 +325,48 @@ BOOL fInherit, ACCESS_MASK dwDesiredAccess) { - UNICODE_STRING WindowStationName; - UNICODE_STRING WindowStationsDir = RTL_CONSTANT_STRING(L"\\Windows\\WindowStations"); - OBJECT_ATTRIBUTES ObjectAttributes; - HANDLE hWindowStationsDir; - NTSTATUS Status; - HWINSTA hwinsta; - - /* Open WindowStations directory */ - InitializeObjectAttributes(&ObjectAttributes, - &WindowStationsDir, - OBJ_CASE_INSENSITIVE, - 0, - 0); - - Status = NtOpenDirectoryObject(&hWindowStationsDir, - DIRECTORY_TRAVERSE, - &ObjectAttributes); - if(!NT_SUCCESS(Status)) - { - ERR("Failed to open WindowStations directory\n"); - return NULL; - } - - /* Open the window station object */ - RtlInitUnicodeString(&WindowStationName, lpszWinSta); - - InitializeObjectAttributes(&ObjectAttributes, - &WindowStationName, - OBJ_CASE_INSENSITIVE, - hWindowStationsDir, - 0); - - if( fInherit ) - { - ObjectAttributes.Attributes |= OBJ_INHERIT; - } - - hwinsta = NtUserOpenWindowStation(&ObjectAttributes, dwDesiredAccess); - - NtClose(hWindowStationsDir); - - return hwinsta; + UNICODE_STRING WindowStationName; + UNICODE_STRING WindowStationsDir = RTL_CONSTANT_STRING(L"\\Windows\\WindowStations"); + OBJECT_ATTRIBUTES ObjectAttributes; + HANDLE hWindowStationsDir; + NTSTATUS Status; + HWINSTA hwinsta; + + /* Open WindowStations directory */ + InitializeObjectAttributes(&ObjectAttributes, + &WindowStationsDir, + OBJ_CASE_INSENSITIVE, + 0, + 0); + + Status = NtOpenDirectoryObject(&hWindowStationsDir, + DIRECTORY_TRAVERSE, + &ObjectAttributes); + if(!NT_SUCCESS(Status)) + { + ERR("Failed to open WindowStations directory\n"); + return NULL; + } + + /* Open the window station object */ + RtlInitUnicodeString(&WindowStationName, lpszWinSta); + + InitializeObjectAttributes(&ObjectAttributes, + &WindowStationName, + OBJ_CASE_INSENSITIVE, + hWindowStationsDir, + 0); + + if(fInherit) + { + ObjectAttributes.Attributes |= OBJ_INHERIT; + } + + hwinsta = NtUserOpenWindowStation(&ObjectAttributes, dwDesiredAccess); + + NtClose(hWindowStationsDir); + + return hwinsta; } @@ -390,15 +375,12 @@ */ BOOL WINAPI -SetWindowStationUser( - HWINSTA hWindowStation, - PLUID pluid, - PSID psid, - DWORD size - ) -{ - return NtUserSetWindowStationUser(hWindowStation, pluid, psid, size); +SetWindowStationUser(HWINSTA hWindowStation, + PLUID pluid, + PSID psid, + DWORD size) +{ + return NtUserSetWindowStationUser(hWindowStation, pluid, psid, size); } /* EOF */ -
9 years, 10 months
1
0
0
0
[tkreuzer] 66274: [NTOSKRNL] Demote the "HACK: RemainingAccess = 0x%08lx DesiredAccess = 0x%08lx\n" from DPRINT1 to DPRINT, since it's massively spamming the log. See CORE-9184
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sun Feb 15 00:26:41 2015 New Revision: 66274 URL:
http://svn.reactos.org/svn/reactos?rev=66274&view=rev
Log: [NTOSKRNL] Demote the "HACK: RemainingAccess = 0x%08lx DesiredAccess = 0x%08lx\n" from DPRINT1 to DPRINT, since it's massively spamming the log. See CORE-9184 Modified: trunk/reactos/ntoskrnl/se/accesschk.c Modified: trunk/reactos/ntoskrnl/se/accesschk.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/accesschk.c?re…
============================================================================== --- trunk/reactos/ntoskrnl/se/accesschk.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/se/accesschk.c [iso-8859-1] Sun Feb 15 00:26:41 2015 @@ -250,7 +250,7 @@ /* Fail if some rights have not been granted */ if (RemainingAccess != 0) { - DPRINT1("HACK: RemainingAccess = 0x%08lx DesiredAccess = 0x%08lx\n", RemainingAccess, DesiredAccess); + DPRINT("HACK: RemainingAccess = 0x%08lx DesiredAccess = 0x%08lx\n", RemainingAccess, DesiredAccess); #if 0 /* HACK HACK HACK */ Status = STATUS_ACCESS_DENIED;
9 years, 10 months
1
0
0
0
[tkreuzer] 66273: [WIN32K] In NtGdiGetDIBitsInternal limit the size of what is being copied back to to usermode to the cjMaxInfo parameter. Fixes crash of Firefox when downloading files. CORE-8895 ...
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sun Feb 15 00:05:50 2015 New Revision: 66273 URL:
http://svn.reactos.org/svn/reactos?rev=66273&view=rev
Log: [WIN32K] In NtGdiGetDIBitsInternal limit the size of what is being copied back to to usermode to the cjMaxInfo parameter. Fixes crash of Firefox when downloading files. CORE-8895 #resolve Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dibobj.c…
============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] Sun Feb 15 00:05:50 2015 @@ -674,7 +674,7 @@ RGBQUAD* rgbQuads; VOID* colorPtr; - DPRINT("Entered NtGdiGetDIBitsInternal()\n"); + DPRINT("Entered GreGetDIBitsInternal()\n"); if ((Usage && Usage != DIB_PAL_COLORS) || !Info || !hBitmap) return 0; @@ -1090,7 +1090,7 @@ _SEH2_TRY { /* Copy the data back */ - cjMaxInfo = DIB_BitmapInfoSize(pbmi, (WORD)iUsage); + cjMaxInfo = min(cjMaxInfo, DIB_BitmapInfoSize(pbmi, (WORD)iUsage)); ProbeForWrite(pbmiUser, cjMaxInfo, 1); RtlCopyMemory(pbmiUser, pbmi, cjMaxInfo); }
9 years, 10 months
1
0
0
0
[pschweitzer] 66272: [NTFS] Query the value of NtfsMftZoneReservation on mount. Not used yet. CORE-8725
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sat Feb 14 20:55:47 2015 New Revision: 66272 URL:
http://svn.reactos.org/svn/reactos?rev=66272&view=rev
Log: [NTFS] Query the value of NtfsMftZoneReservation on mount. Not used yet. CORE-8725 Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c trunk/reactos/drivers/filesystems/ntfs/ntfs.h Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Sat Feb 14 20:55:47 2015 @@ -168,6 +168,28 @@ static +ULONG +NtfsQueryMftZoneReservation(VOID) +{ + ULONG ZoneReservation = 1; + RTL_QUERY_REGISTRY_TABLE QueryTable[2]; + + RtlZeroMemory(QueryTable, sizeof(QueryTable)); + QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT; + QueryTable[0].Name = L"NtfsMftZoneReservation"; + QueryTable[0].EntryContext = &ZoneReservation; + + RtlQueryRegistryValues(RTL_REGISTRY_CONTROL, + L"FileSystem", + QueryTable, + NULL, + NULL); + + return ZoneReservation; +} + + +static NTSTATUS NtfsGetVolumeData(PDEVICE_OBJECT DeviceObject, PDEVICE_EXTENSION DeviceExt) @@ -361,6 +383,8 @@ } ExFreePool(VolumeRecord); + + NtfsInfo->MftZoneReservation = NtfsQueryMftZoneReservation(); return Status; } Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Sat Feb 14 20:55:47 2015 @@ -75,6 +75,7 @@ UCHAR MinorVersion; USHORT Flags; + ULONG MftZoneReservation; } NTFS_INFO, *PNTFS_INFO; #define NTFS_TYPE_CCB '20SF'
9 years, 10 months
1
0
0
0
[hbelusca] 66271: [SHELL32] - magic_value--; - Don't assign a desktop background colour by default. So that we can get the safe-mode background working (in safe mode), while having the default desk...
by hbelusca@svn.reactos.org
Author: hbelusca Date: Sat Feb 14 19:56:04 2015 New Revision: 66271 URL:
http://svn.reactos.org/svn/reactos?rev=66271&view=rev
Log: [SHELL32] - magic_value--; - Don't assign a desktop background colour by default. So that we can get the safe-mode background working (in safe mode), while having the default desktop background colours in normal situations. Patch by Giannis. Modified: trunk/reactos/dll/win32/shell32/CDesktopBrowser.cpp Modified: trunk/reactos/dll/win32/shell32/CDesktopBrowser.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CDesktop…
============================================================================== --- trunk/reactos/dll/win32/shell32/CDesktopBrowser.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/CDesktopBrowser.cpp [iso-8859-1] Sat Feb 14 19:56:04 2015 @@ -22,7 +22,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(desktop); -#define SHDESK_TAG 0x4b534544 +#define SHDESK_TAG 'KSED' static const WCHAR szProgmanClassName [] = L"Progman"; static const WCHAR szProgmanWindowName [] = L"Program Manager"; @@ -551,7 +551,7 @@ wcProgman.hInstance = shell32_hInstance; wcProgman.hIcon = NULL; wcProgman.hCursor = LoadCursorW(NULL, IDC_ARROW); - wcProgman.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1); + wcProgman.hbrBackground = NULL; wcProgman.lpszMenuName = NULL; wcProgman.lpszClassName = szProgmanClassName;
9 years, 10 months
1
0
0
0
[tfaber] 66270: [RTL] - Implement RtlIpv4StringToAddressExW. Patch by Mark Jansen. CORE-6490
by tfaber@svn.reactos.org
Author: tfaber Date: Sat Feb 14 19:14:32 2015 New Revision: 66270 URL:
http://svn.reactos.org/svn/reactos?rev=66270&view=rev
Log: [RTL] - Implement RtlIpv4StringToAddressExW. Patch by Mark Jansen. CORE-6490 Modified: trunk/reactos/lib/rtl/network.c Modified: trunk/reactos/lib/rtl/network.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/network.c?rev=6627…
============================================================================== --- trunk/reactos/lib/rtl/network.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/network.c [iso-8859-1] Sat Feb 14 19:14:32 2015 @@ -337,17 +337,52 @@ } /* -* @unimplemented -*/ -NTSTATUS -NTAPI -RtlIpv4StringToAddressExW(IN PCWSTR AddressString, - IN BOOLEAN Strict, - OUT struct in_addr *Address, - OUT PUSHORT Port) -{ - UNIMPLEMENTED; - return STATUS_NOT_IMPLEMENTED; +* @implemented +*/ +NTSTATUS +NTAPI +RtlIpv4StringToAddressExW( + _In_ PCWSTR AddressString, + _In_ BOOLEAN Strict, + _Out_ struct in_addr *Address, + _Out_ PUSHORT Port) +{ + PCWSTR CurrentChar; + ULONG ConvertedPort; + NTSTATUS Status; + + if (!AddressString || !Address || !Port) + return STATUS_INVALID_PARAMETER; + + Status = RtlIpv4StringToAddressW(AddressString, + Strict, + &CurrentChar, + Address); + if (!NT_SUCCESS(Status)) + return Status; + + if (!*CurrentChar) + { + *Port = 0; + return STATUS_SUCCESS; + } + + if (*CurrentChar != L':') + return STATUS_INVALID_PARAMETER; + ++CurrentChar; + + Status = RtlpStringToUlong(CurrentChar, + FALSE, + &CurrentChar, + &ConvertedPort); + if (!NT_SUCCESS(Status)) + return Status; + + if (*CurrentChar || !ConvertedPort || ConvertedPort > 0xffff) + return STATUS_INVALID_PARAMETER; + + *Port = WN2H(ConvertedPort); + return STATUS_SUCCESS; } /*
9 years, 10 months
1
0
0
0
[tkreuzer] 66269: [DRIVERS] Fix a few MSVC warnings
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Feb 14 19:07:36 2015 New Revision: 66269 URL:
http://svn.reactos.org/svn/reactos?rev=66269&view=rev
Log: [DRIVERS] Fix a few MSVC warnings Modified: trunk/reactos/drivers/bus/acpi/busmgr/power.c trunk/reactos/drivers/usb/usbhub/fdo.c trunk/reactos/drivers/usb/usbhub/pdo.c trunk/reactos/drivers/usb/usbstor/fdo.c Modified: trunk/reactos/drivers/bus/acpi/busmgr/power.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/busmgr/po…
============================================================================== --- trunk/reactos/drivers/bus/acpi/busmgr/power.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/acpi/busmgr/power.c [iso-8859-1] Sat Feb 14 19:07:36 2015 @@ -28,7 +28,7 @@ * 1. via "Device Specific (D-State) Control" * 2. via "Power Resource Control". * This module is used to manage devices relying on Power Resource Control. - * + * * An ACPI "power resource object" describes a software controllable power * plane, clock plane, or other resource used by a power managed device. * A device may rely on multiple power resources, and a power resource @@ -37,7 +37,7 @@ /* * Modified for ReactOS and latest ACPICA - * Copyright (C)2009 Samuel Serapion + * Copyright (C)2009 Samuel Serapion */ #include <precomp.h> @@ -346,13 +346,14 @@ /* * Prepare a wakeup device, two steps (Ref ACPI 2.0:P229): - * 1. Power on the power resources required for the wakeup device + * 1. Power on the power resources required for the wakeup device * 2. Execute _DSW (Device Sleep Wake) or (deprecated in ACPI 3.0) _PSW (Power * State Wake) for the device, if present */ int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state) { - int i, err = 0; + unsigned int i; + int err = 0; if (!dev || !dev->wakeup.flags.valid) return -1; @@ -396,7 +397,8 @@ */ int acpi_disable_wakeup_device_power(struct acpi_device *dev) { - int i, err = 0; + unsigned int i; + int err = 0; if (!dev || !dev->wakeup.flags.valid) return -1; @@ -486,7 +488,7 @@ int result = 0; struct acpi_handle_list *cl = NULL; /* Current Resources */ struct acpi_handle_list *tl = NULL; /* Target Resources */ - int i = 0; + unsigned int i = 0; if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3)) return_VALUE(-1); @@ -589,14 +591,14 @@ break; } - + DPRINT("%s [%s] (%s)\n", acpi_device_name(device), acpi_device_bid(device), state?"on":"off"); end: if (result) ExFreePool(resource); - + return result; } @@ -654,7 +656,7 @@ return 0; } -int +int acpi_power_init (void) { int result = 0; Modified: trunk/reactos/drivers/usb/usbhub/fdo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbhub/fdo.c?r…
============================================================================== --- trunk/reactos/drivers/usb/usbhub/fdo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/usbhub/fdo.c [iso-8859-1] Sat Feb 14 19:07:36 2015 @@ -210,7 +210,7 @@ PHUB_DEVICE_EXTENSION HubDeviceExtension; PWORK_ITEM_DATA WorkItemData; PORT_STATUS_CHANGE PortStatus; - LONG PortId; + ULONG PortId; BOOLEAN SignalResetComplete = FALSE; DPRINT("Entered DeviceStatusChangeThread, Context %x\n", Context); Modified: trunk/reactos/drivers/usb/usbhub/pdo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbhub/pdo.c?r…
============================================================================== --- trunk/reactos/drivers/usb/usbhub/pdo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/usbhub/pdo.c [iso-8859-1] Sat Feb 14 19:07:36 2015 @@ -307,7 +307,7 @@ case IOCTL_INTERNAL_USB_GET_PORT_STATUS: { PORT_STATUS_CHANGE PortStatus; - LONG PortId; + ULONG PortId; PUCHAR PortStatusBits; PortStatusBits = (PUCHAR)Stack->Parameters.Others.Argument1; Modified: trunk/reactos/drivers/usb/usbstor/fdo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbstor/fdo.c?…
============================================================================== --- trunk/reactos/drivers/usb/usbstor/fdo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/usbstor/fdo.c [iso-8859-1] Sat Feb 14 19:07:36 2015 @@ -40,7 +40,7 @@ IN OUT PIRP Irp) { ULONG DeviceCount = 0; - ULONG Index; + LONG Index; PDEVICE_RELATIONS DeviceRelations; PIO_STACK_LOCATION IoStack; @@ -63,7 +63,7 @@ // // go through array and count device objects // - for(Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++) + for (Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++) { if (DeviceExtension->ChildPDO[Index]) { @@ -391,7 +391,7 @@ case IRP_MN_QUERY_CAPABILITIES: { // - // FIXME: set custom capabilities + // FIXME: set custom capabilities // IoSkipCurrentIrpStackLocation(Irp); return IoCallDriver(DeviceExtension->LowerDeviceObject, Irp);
9 years, 10 months
1
0
0
0
[tkreuzer] 66268: [CMAKE] Disable MSVC linker warning LNK4078 (multiple sections found with different attributes) for INIT sections.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Feb 14 18:58:52 2015 New Revision: 66268 URL:
http://svn.reactos.org/svn/reactos?rev=66268&view=rev
Log: [CMAKE] Disable MSVC linker warning LNK4078 (multiple sections found with different attributes) for INIT sections. Modified: trunk/reactos/cmake/msvc.cmake Modified: trunk/reactos/cmake/msvc.cmake URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=66268…
============================================================================== --- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original) +++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Sat Feb 14 18:58:52 2015 @@ -229,9 +229,10 @@ if((${TYPE} STREQUAL "win32dll") OR (${TYPE} STREQUAL "win32ocx") OR (${TYPE} STREQUAL "cpl")) add_target_link_flags(${MODULE} "/DLL") elseif(${TYPE} STREQUAL "kernelmodedriver") - add_target_link_flags(${MODULE} "/DRIVER") + # Disable linker warning 4078 (multiple sections found with different attributes) for INIT section use + add_target_link_flags(${MODULE} "/DRIVER /IGNORE:4078") elseif(${TYPE} STREQUAL "wdmdriver") - add_target_link_flags(${MODULE} "/DRIVER:WDM") + add_target_link_flags(${MODULE} "/DRIVER:WDM /IGNORE:4078") endif() if(RUNTIME_CHECKS)
9 years, 10 months
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
38
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
Results per page:
10
25
50
100
200