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
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
August 2009
----- 2024 -----
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
21 participants
654 discussions
Start a n
N
ew thread
[hpoussin] 42495: [lsasrv] Do not launch a thread to listen for incoming calls, but do it directly Better LsarClose stub, which tries to do the right thing Fix a few prototypes See issue #4689 for more details.
by hpoussin@svn.reactos.org
Author: hpoussin Date: Sat Aug 8 09:27:37 2009 New Revision: 42495 URL:
http://svn.reactos.org/svn/reactos?rev=42495&view=rev
Log: [lsasrv] Do not launch a thread to listen for incoming calls, but do it directly Better LsarClose stub, which tries to do the right thing Fix a few prototypes See issue #4689 for more details. Modified: trunk/reactos/dll/win32/lsasrv/lsarpc.c trunk/reactos/include/reactos/idl/lsa.idl Modified: trunk/reactos/dll/win32/lsasrv/lsarpc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/lsarpc.c?…
============================================================================== --- trunk/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] Sat Aug 8 09:27:37 2009 @@ -6,7 +6,6 @@ #define NTOS_MODE_USER #include <ndk/ntndk.h> -#include "lsasrv.h" #include "lsa_s.h" #include <wine/debug.h> @@ -26,10 +25,11 @@ /* FUNCTIONS ***************************************************************/ -/*static*/ NTSTATUS -ReferencePolicyHandle(IN LSAPR_HANDLE ObjectHandle, - IN ACCESS_MASK DesiredAccess, - OUT PLSAR_POLICY_HANDLE *Policy) +static NTSTATUS +ReferencePolicyHandle( + IN LSA_HANDLE ObjectHandle, + IN ACCESS_MASK DesiredAccess, + OUT PLSAR_POLICY_HANDLE *Policy) { PLSAR_POLICY_HANDLE ReferencedPolicy; NTSTATUS Status = STATUS_SUCCESS; @@ -58,10 +58,10 @@ return Status; } - -/*static*/ VOID -DereferencePolicyHandle(IN OUT PLSAR_POLICY_HANDLE Policy, - IN BOOLEAN Delete) +static VOID +DereferencePolicyHandle( + IN OUT PLSAR_POLICY_HANDLE Policy, + IN BOOLEAN Delete) { RtlEnterCriticalSection(&PolicyHandleTableLock); @@ -83,13 +83,17 @@ RtlLeaveCriticalSection(&PolicyHandleTableLock); } - -DWORD WINAPI -LsapRpcThreadRoutine(LPVOID lpParameter) +VOID +LsarStartRpcServer(VOID) { RPC_STATUS Status; - TRACE("LsapRpcThreadRoutine() called"); + RtlInitializeCriticalSection(&PolicyHandleTableLock); + RtlInitializeHandleTable(0x1000, + sizeof(LSAR_POLICY_HANDLE), + &PolicyHandleTable); + + TRACE("LsarStartRpcServer() called"); Status = RpcServerUseProtseqEpW(L"ncacn_np", 10, @@ -98,7 +102,7 @@ if (Status != RPC_S_OK) { WARN("RpcServerUseProtseqEpW() failed (Status %lx)\n", Status); - return 0; + return; } Status = RpcServerRegisterIf(lsarpc_v0_0_s_ifspec, @@ -107,51 +111,17 @@ if (Status != RPC_S_OK) { WARN("RpcServerRegisterIf() failed (Status %lx)\n", Status); - return 0; + return; } - Status = RpcServerListen(1, 20, FALSE); + Status = RpcServerListen(1, 20, TRUE); if (Status != RPC_S_OK) { WARN("RpcServerListen() failed (Status %lx)\n", Status); - return 0; + return; } - TRACE("LsapRpcThreadRoutine() done\n"); - - return 0; -} - - -VOID -LsarStartRpcServer(VOID) -{ - HANDLE hThread; - - TRACE("LsarStartRpcServer() called"); - - RtlInitializeCriticalSection(&PolicyHandleTableLock); - RtlInitializeHandleTable(0x1000, - sizeof(LSAR_POLICY_HANDLE), - &PolicyHandleTable); - - hThread = CreateThread(NULL, - 0, - (LPTHREAD_START_ROUTINE) - LsapRpcThreadRoutine, - NULL, - 0, - NULL); - if (!hThread) - { - WARN("Starting LsapRpcThreadRoutine-Thread failed!\n"); - } - else - { - CloseHandle(hThread); - } - - TRACE("LsarStartRpcServer() done"); + TRACE("LsarStartRpcServer() done\n"); } @@ -162,16 +132,24 @@ /* Function 0 */ -NTSTATUS -LsarClose(LSAPR_HANDLE *ObjectHandle) -{ -#if 0 +NTSTATUS LsarClose( + LSAPR_HANDLE *ObjectHandle) +{ PLSAR_POLICY_HANDLE Policy = NULL; NTSTATUS Status; TRACE("0x%p\n", ObjectHandle); - Status = ReferencePolicyHandle(*ObjectHandle, +#if 1 + /* This is our fake handle, don't go too much long way */ + if (*ObjectHandle == (LSA_HANDLE)0xcafe) + { + *ObjectHandle = NULL; + Status = STATUS_SUCCESS; + } +#endif + + Status = ReferencePolicyHandle((LSA_HANDLE)*ObjectHandle, 0, &Policy); if (NT_SUCCESS(Status)) @@ -182,28 +160,12 @@ } return Status; -#endif - NTSTATUS Status = STATUS_NOT_IMPLEMENTED; - - TRACE("LsarClose called!\n"); - - /* This is our fake handle, don't go too much long way */ - if (*ObjectHandle == (LSA_HANDLE)0xcafe) - { - *ObjectHandle = NULL; - Status = STATUS_SUCCESS; - } - - - TRACE("LsarClose done (Status: 0x%08lx)!\n", Status); - - return Status; } /* Function 1 */ -NTSTATUS -LsarDelete(LSAPR_HANDLE ObjectHandle) +NTSTATUS LsarDelete( + LSAPR_HANDLE ObjectHandle) { /* Deprecated */ return STATUS_NOT_SUPPORTED; @@ -246,7 +208,7 @@ /* Function 5 */ NTSTATUS LsarChangePassword( - handle_t hBinding, /* FIXME */ + handle_t IDL_handle, PRPC_UNICODE_STRING String1, PRPC_UNICODE_STRING String2, PRPC_UNICODE_STRING String3, @@ -265,6 +227,7 @@ ACCESS_MASK DesiredAccess, LSAPR_HANDLE *PolicyHandle) { +#if 1 TRACE("LsarOpenPolicy called!\n"); *PolicyHandle = (LSAPR_HANDLE)0xcafe; @@ -272,6 +235,10 @@ TRACE("LsarOpenPolicy done!\n"); return STATUS_SUCCESS; +#else + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +#endif } @@ -572,7 +539,11 @@ /* Function 33 */ NTSTATUS LsarLookupPrivilegeDisplayName( - LSAPR_HANDLE PolicyHandle, /* FIXME */ + LSAPR_HANDLE PolicyHandle, + PRPC_UNICODE_STRING Name, + USHORT ClientLanguage, + USHORT ClientSystemDefaultLanguage, + PRPC_UNICODE_STRING *DisplayName, USHORT *LanguageReturned) { UNIMPLEMENTED; @@ -1044,7 +1015,7 @@ /* Function 76 */ NTSTATUS LsarLookupSids3( - handle_t hBinding, + LSAPR_HANDLE PolicyHandle, PLSAPR_SID_ENUM_BUFFER SidEnumBuffer, PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains, PLSAPR_TRANSLATED_NAMES_EX TranslatedNames, @@ -1060,7 +1031,6 @@ /* Function 77 */ NTSTATUS LsarLookupNames4( - handle_t hBinding, handle_t RpcHandle, DWORD Count, PRPC_UNICODE_STRING Names, @@ -1111,4 +1081,121 @@ return STATUS_NOT_IMPLEMENTED; } + +/* Function 82 */ +NTSTATUS CredrFindBestCredential( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 83 */ +NTSTATUS LsarSetAuditPolicy( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 84 */ +NTSTATUS LsarQueryAuditPolicy( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 85 */ +NTSTATUS LsarEnumerateAuditPolicy( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 86 */ +NTSTATUS LsarEnumerateAuditCategories( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 87 */ +NTSTATUS LsarEnumerateAuditSubCategories( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 88 */ +NTSTATUS LsarLookupAuditCategoryName( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 89 */ +NTSTATUS LsarLookupAuditSubCategoryName( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 90 */ +NTSTATUS LsarSetAuditSecurity( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 91 */ +NTSTATUS LsarQueryAuditSecurity( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 92 */ +NTSTATUS CredReadByTokenHandle( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 93 */ +NTSTATUS CredrRestoreCredentials( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + +/* Function 94 */ +NTSTATUS CredrBackupCredentials( + handle_t hBinding) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + /* EOF */ Modified: trunk/reactos/include/reactos/idl/lsa.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/idl/lsa.id…
============================================================================== --- trunk/reactos/include/reactos/idl/lsa.idl [iso-8859-1] (original) +++ trunk/reactos/include/reactos/idl/lsa.idl [iso-8859-1] Sat Aug 8 09:27:37 2009 @@ -622,7 +622,6 @@ /* Function 5 */ NTSTATUS LsarChangePassword( - [in] handle_t hBinding, /* FIXME */ [in] PRPC_UNICODE_STRING String1, [in] PRPC_UNICODE_STRING String2, [in] PRPC_UNICODE_STRING String3, @@ -805,11 +804,11 @@ /* Function 33 */ NTSTATUS LsarLookupPrivilegeDisplayName( - [in] LSAPR_HANDLE PolicyHandle, /* FIXME */ - /*[in] PRPC_UNICODE_STRING Name, + [in] LSAPR_HANDLE PolicyHandle, + [in] PRPC_UNICODE_STRING Name, [in] USHORT ClientLanguage, [in] USHORT ClientSystemDefaultLanguage, - [out] PRPC_UNICODE_STRING *DisplayName,*/ + [out] PRPC_UNICODE_STRING *DisplayName, [out] USHORT *LanguageReturned); /* Function 34 */ @@ -1078,7 +1077,7 @@ /* Function 76 */ NTSTATUS LsarLookupSids3( - [in] handle_t hBinding, /* FIXME */ + [in] LSAPR_HANDLE PolicyHandle, [in] PLSAPR_SID_ENUM_BUFFER SidEnumBuffer, [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains, [in, out] PLSAPR_TRANSLATED_NAMES_EX TranslatedNames, @@ -1089,8 +1088,7 @@ /* Function 77 */ NTSTATUS LsarLookupNames4( - [in] handle_t hBinding, /* FIXME */ - [in] handle_t RpcHandle, + [in] LSAPR_HANDLE PolicyHandle, [in] DWORD Count, [in, size_is(Count)] PRPC_UNICODE_STRING Names, [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
15 years, 3 months
1
0
0
0
[cwittich] 42494: delete obsolete diff
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Aug 8 09:20:55 2009 New Revision: 42494 URL:
http://svn.reactos.org/svn/reactos?rev=42494&view=rev
Log: delete obsolete diff Removed: trunk/reactos/dll/win32/rsaenh/rsaenh_ros.diff Removed: trunk/reactos/dll/win32/rsaenh/rsaenh_ros.diff URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/rsaenh/rsaenh_ro…
============================================================================== --- trunk/reactos/dll/win32/rsaenh/rsaenh_ros.diff [iso-8859-1] (original) +++ trunk/reactos/dll/win32/rsaenh/rsaenh_ros.diff (removed) @@ -1,30 +1,0 @@ -Index: handle.h -=================================================================== ---- handle.h (revision 30501) -+++ handle.h (working copy) -@@ -48,6 +48,10 @@ - unsigned int iNextFree; - } HANDLETABLEENTRY; - -+/* Prevent conflict with wingdi.h */ -+#define tagHANDLETABLE tagHANDLETABLE_RSA -+#define HANDLETABLE HANDLETABLE_RSA -+ - typedef struct tagHANDLETABLE - { - unsigned int iEntries; -Index: rsaenh.c -=================================================================== ---- rsaenh.c (revision 30501) -+++ rsaenh.c (working copy) -@@ -34,9 +34,9 @@ - #include "winbase.h" - #include "winreg.h" - #include "wincrypt.h" -+#include "objbase.h" - #include "handle.h" - #include "implglue.h" --#include "objbase.h" - - WINE_DEFAULT_DEBUG_CHANNEL(crypt); -
15 years, 3 months
1
0
0
0
[cwittich] 42493: allow warnings for idl
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Aug 8 09:06:52 2009 New Revision: 42493 URL:
http://svn.reactos.org/svn/reactos?rev=42493&view=rev
Log: allow warnings for idl Modified: trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild Modified: trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/rpcrt4/rpcrt4.r…
============================================================================== --- trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild [iso-8859-1] (original) +++ trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild [iso-8859-1] Sat Aug 8 09:06:52 2009 @@ -2,11 +2,9 @@ <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> <group> <module name="rpcrt4_winetest_server" type="rpcserver" allowwarnings="true"> - <define name="__ROS_LONG64__" /> <file>server.idl</file> </module> - <module name="rpcrt4_winetest_client" type="rpcclient"> - <define name="__ROS_LONG64__" /> + <module name="rpcrt4_winetest_client" type="rpcclient" allowwarnings="true"> <file>server.idl</file> </module> <module name="rpcrt4_winetest" type="win32cui" installbase="bin" installname="rpcrt4_winetest.exe" allowwarnings="true">
15 years, 3 months
1
0
0
0
[cwittich] 42492: try to re enable rpc4rt winetest
by cwittich@svn.reactos.org
Author: cwittich Date: Sat Aug 8 08:47:51 2009 New Revision: 42492 URL:
http://svn.reactos.org/svn/reactos?rev=42492&view=rev
Log: try to re enable rpc4rt winetest Modified: trunk/rostests/winetests/directory.rbuild trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild Modified: trunk/rostests/winetests/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/directory.rbuil…
============================================================================== --- trunk/rostests/winetests/directory.rbuild [iso-8859-1] (original) +++ trunk/rostests/winetests/directory.rbuild [iso-8859-1] Sat Aug 8 08:47:51 2009 @@ -167,7 +167,7 @@ <xi:include href="riched32/riched32.rbuild" /> </directory> <directory name="rpcrt4"> - <!-- xi:include href="rpcrt4/rpcrt4.rbuild" / --> + <xi:include href="rpcrt4/rpcrt4.rbuild" /> </directory> <directory name="rsabase"> <xi:include href="rsabase/rsabase.rbuild" /> Modified: trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/rpcrt4/rpcrt4.r…
============================================================================== --- trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild [iso-8859-1] (original) +++ trunk/rostests/winetests/rpcrt4/rpcrt4.rbuild [iso-8859-1] Sat Aug 8 08:47:51 2009 @@ -2,9 +2,11 @@ <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> <group> <module name="rpcrt4_winetest_server" type="rpcserver" allowwarnings="true"> + <define name="__ROS_LONG64__" /> <file>server.idl</file> </module> <module name="rpcrt4_winetest_client" type="rpcclient"> + <define name="__ROS_LONG64__" /> <file>server.idl</file> </module> <module name="rpcrt4_winetest" type="win32cui" installbase="bin" installname="rpcrt4_winetest.exe" allowwarnings="true">
15 years, 3 months
1
0
0
0
[cgutman] 42491: - Stop trying to find more adapters if it failed to avoid spamming the debug log - Should fix buildbot test 2nd stage
by cgutman@svn.reactos.org
Author: cgutman Date: Sat Aug 8 05:18:41 2009 New Revision: 42491 URL:
http://svn.reactos.org/svn/reactos?rev=42491&view=rev
Log: - Stop trying to find more adapters if it failed to avoid spamming the debug log - Should fix buildbot test 2nd stage Modified: trunk/reactos/base/services/dhcp/adapter.c trunk/reactos/base/services/dhcp/dispatch.c trunk/reactos/base/services/dhcp/include/rosdhcp.h Modified: trunk/reactos/base/services/dhcp/adapter.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/adapter…
============================================================================== --- trunk/reactos/base/services/dhcp/adapter.c [iso-8859-1] (original) +++ trunk/reactos/base/services/dhcp/adapter.c [iso-8859-1] Sat Aug 8 05:18:41 2009 @@ -229,12 +229,13 @@ /* * XXX Figure out the way to bind a specific adapter to a socket. */ -void AdapterDiscover() { +BOOLEAN AdapterDiscover() { PMIB_IFTABLE Table = (PMIB_IFTABLE) malloc(sizeof(MIB_IFTABLE)); DWORD Error, Size = sizeof(MIB_IFTABLE); PDHCP_ADAPTER Adapter = NULL; struct interface_info *ifi = NULL; int i; + BOOLEAN ret = TRUE; DH_DbgPrint(MID_TRACE,("Getting Adapter List...\n")); @@ -245,7 +246,10 @@ Table = (PMIB_IFTABLE) malloc( Size ); } - if( Error != NO_ERROR ) goto term; + if( Error != NO_ERROR ) { + ret = FALSE; + goto term; + } DH_DbgPrint(MID_TRACE,("Got Adapter List (%d entries)\n", Table->dwNumEntries)); @@ -335,6 +339,7 @@ term: if( Table ) free( Table ); + return ret; } void AdapterStop() { Modified: trunk/reactos/base/services/dhcp/dispatch.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/dispatc…
============================================================================== --- trunk/reactos/base/services/dhcp/dispatch.c [iso-8859-1] (original) +++ trunk/reactos/base/services/dhcp/dispatch.c [iso-8859-1] Sat Aug 8 05:18:41 2009 @@ -77,7 +77,10 @@ * a timeout registered, time out the select call then. */ another: - AdapterDiscover(); + if (!AdapterDiscover()) { + AdapterStop(); + break; + } for (l = protocols, nfds = 0; l; l = l->next) nfds++; Modified: trunk/reactos/base/services/dhcp/include/rosdhcp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/dhcp/include…
============================================================================== --- trunk/reactos/base/services/dhcp/include/rosdhcp.h [iso-8859-1] (original) +++ trunk/reactos/base/services/dhcp/include/rosdhcp.h [iso-8859-1] Sat Aug 8 05:18:41 2009 @@ -73,7 +73,8 @@ #define srandom srand void AdapterInit(VOID); -void AdapterDiscover(VOID); +BOOLEAN AdapterDiscover(VOID); +void AdapterStop(VOID); HANDLE PipeInit(VOID); extern PDHCP_ADAPTER AdapterGetFirst(); extern PDHCP_ADAPTER AdapterGetNext(PDHCP_ADAPTER);
15 years, 3 months
1
0
0
0
[tkreuzer] 42490: NtUserGetIconInfo: Move lockingunlocking out of SEH, as this is a bad idea. Get rid of RETURN(). Add a comment.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Aug 8 04:47:32 2009 New Revision: 42490 URL:
http://svn.reactos.org/svn/reactos?rev=42490&view=rev
Log: NtUserGetIconInfo: Move lockingunlocking out of SEH, as this is a bad idea. Get rid of RETURN(). Add a comment. Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] Sat Aug 8 04:47:32 2009 @@ -434,6 +434,7 @@ /* Copy bitmaps and size info */ if (Indirect) { + // FIXME: WTF? CurIcon->IconInfo.hbmMask = BITMAP_CopyBitmap(CurIcon->IconInfo.hbmMask); CurIcon->IconInfo.hbmColor = BITMAP_CopyBitmap(CurIcon->IconInfo.hbmColor); } @@ -496,10 +497,9 @@ { ICONINFO ii; PCURICON_OBJECT CurIcon; - PWINSTATION_OBJECT WinSta; NTSTATUS Status = STATUS_SUCCESS; BOOL Ret = FALSE; - DECLARE_RETURN(BOOL); + DWORD colorBpp = 0; DPRINT("Enter NtUserGetIconInfo\n"); UserEnterExclusive(); @@ -507,19 +507,12 @@ if (!IconInfo) { SetLastWin32Error(ERROR_INVALID_PARAMETER); - RETURN(FALSE); - } - - WinSta = IntGetWinStaObj(); - if (WinSta == NULL) - { - RETURN(FALSE); + goto leave; } if (!(CurIcon = UserGetCurIconObject(hCurIcon))) { - ObDereferenceObject(WinSta); - RETURN(FALSE); + goto leave; } RtlCopyMemory(&ii, &CurIcon->IconInfo, sizeof(ICONINFO)); @@ -528,6 +521,18 @@ ii.hbmMask = BITMAP_CopyBitmap(CurIcon->IconInfo.hbmMask); ii.hbmColor = BITMAP_CopyBitmap(CurIcon->IconInfo.hbmColor); + if (pbpp) + { + PSURFACE psurfBmp; + + psurfBmp = SURFACE_LockSurface(CurIcon->IconInfo.hbmColor); + if (psurfBmp) + { + colorBpp = BitsPerFormat(psurfBmp->SurfObj.iBitmapFormat); + SURFACE_UnlockSurface(psurfBmp); + } + } + /* Copy fields */ _SEH2_TRY { @@ -536,21 +541,9 @@ if (pbpp) { - PSURFACE psurfBmp; - int colorBpp = 0; - ProbeForWrite(pbpp, sizeof(DWORD), 1); - - psurfBmp = SURFACE_LockSurface(CurIcon->IconInfo.hbmColor); - if (psurfBmp) - { - colorBpp = BitsPerFormat(psurfBmp->SurfObj.iBitmapFormat); - SURFACE_UnlockSurface(psurfBmp); - } - - RtlCopyMemory(pbpp, &colorBpp, sizeof(DWORD)); - } - + *pbpp = colorBpp; + } } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { @@ -564,13 +557,12 @@ SetLastNtError(Status); UserDereferenceObject(CurIcon); - ObDereferenceObject(WinSta); - RETURN(Ret); - -CLEANUP: - DPRINT("Leave NtUserGetIconInfo, ret=%i\n",_ret_); + +leave: + DPRINT("Leave NtUserGetIconInfo, ret=%i\n", Ret); UserLeave(); - END_CLEANUP; + + return Ret; }
15 years, 3 months
1
0
0
0
[tkreuzer] 42489: [win32k] - Use DIB_GetDIBWidthBytes and BitsPerFormat instead of switch - Add SPS_CHANGE flag when calling IntEngSetPointerShape - Fixes VMWare Driver mouse pointer regression
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Aug 8 04:42:41 2009 New Revision: 42489 URL:
http://svn.reactos.org/svn/reactos?rev=42489&view=rev
Log: [win32k] - Use DIB_GetDIBWidthBytes and BitsPerFormat instead of switch - Add SPS_CHANGE flag when calling IntEngSetPointerShape - Fixes VMWare Driver mouse pointer regression Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] Sat Aug 8 04:42:41 2009 @@ -382,30 +382,8 @@ pgp->HotSpot.y = yHot; /* Calculate lDelta for our surfaces. */ - switch (pso->iBitmapFormat) - { - case BMF_1BPP: - lDelta = pgp->Size.cx >> 3; - break; - case BMF_4BPP: - lDelta = pgp->Size.cx >> 1; - break; - case BMF_8BPP: - lDelta = pgp->Size.cx; - break; - case BMF_16BPP: - lDelta = pgp->Size.cx << 1; - break; - case BMF_24BPP: - lDelta = pgp->Size.cx * 3; - break; - case BMF_32BPP: - lDelta = pgp->Size.cx << 2; - break; - default: - lDelta = 0; - break; - } + lDelta = DIB_GetDIBWidthBytes(pgp->Size.cx, + BitsPerFormat(pso->iBitmapFormat)); rcl.left = 0; rcl.top = 0; @@ -690,7 +668,7 @@ x, y, &pdc->ppdev->Pointer.Exclude, - fl); + fl | SPS_CHANGE); /* Cleanup */ if (hbmColor)
15 years, 3 months
1
0
0
0
[tkreuzer] 42488: Comment out rpcrt4 winetest, as it breaks testcd.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Aug 8 03:35:06 2009 New Revision: 42488 URL:
http://svn.reactos.org/svn/reactos?rev=42488&view=rev
Log: Comment out rpcrt4 winetest, as it breaks testcd. Modified: trunk/rostests/winetests/directory.rbuild Modified: trunk/rostests/winetests/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/directory.rbuil…
============================================================================== --- trunk/rostests/winetests/directory.rbuild [iso-8859-1] (original) +++ trunk/rostests/winetests/directory.rbuild [iso-8859-1] Sat Aug 8 03:35:06 2009 @@ -167,7 +167,7 @@ <xi:include href="riched32/riched32.rbuild" /> </directory> <directory name="rpcrt4"> - <xi:include href="rpcrt4/rpcrt4.rbuild" /> + <!-- xi:include href="rpcrt4/rpcrt4.rbuild" / --> </directory> <directory name="rsabase"> <xi:include href="rsabase/rsabase.rbuild" />
15 years, 3 months
1
0
0
0
[tkreuzer] 42487: Update the fill brush, in NtGdiFillPath.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sat Aug 8 02:50:42 2009 New Revision: 42487 URL:
http://svn.reactos.org/svn/reactos?rev=42487&view=rev
Log: Update the fill brush, in NtGdiFillPath. Modified: trunk/reactos/subsystems/win32/win32k/objects/path.c Modified: trunk/reactos/subsystems/win32/win32k/objects/path.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] Sat Aug 8 02:50:42 2009 @@ -2298,6 +2298,9 @@ if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY)) DC_vUpdateLineBrush(dc); + if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY)) + DC_vUpdateFillBrush(dc); + ret = PATH_FillPath( dc, pPath ); if ( ret ) {
15 years, 3 months
1
0
0
0
[sginsberg] 42486: - Don't use dllexport for dxapi -- we have a .spec
by sginsberg@svn.reactos.org
Author: sginsberg Date: Fri Aug 7 23:53:26 2009 New Revision: 42486 URL:
http://svn.reactos.org/svn/reactos?rev=42486&view=rev
Log: - Don't use dllexport for dxapi -- we have a .spec Modified: trunk/reactos/drivers/directx/dxapi/main.c trunk/reactos/include/ddk/ddkmapi.h Modified: trunk/reactos/drivers/directx/dxapi/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/directx/dxapi/main…
============================================================================== --- trunk/reactos/drivers/directx/dxapi/main.c [iso-8859-1] (original) +++ trunk/reactos/drivers/directx/dxapi/main.c [iso-8859-1] Fri Aug 7 23:53:26 2009 @@ -45,8 +45,8 @@ * none * *--*/ -DXAPI -ULONG PASCAL +ULONG +PASCAL DxApiGetVersion() { /* MSDN say this always return Direct Sound version 4.02 */ @@ -98,8 +98,8 @@ * *--*/ -DXAPI -DWORD PASCAL +DWORD +PASCAL DxApi(IN DWORD dwFunctionNum, IN LPVOID lpvInBuffer, IN DWORD cbInBuffer, Modified: trunk/reactos/include/ddk/ddkmapi.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ddkmapi.h?rev=…
============================================================================== --- trunk/reactos/include/ddk/ddkmapi.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/ddkmapi.h [iso-8859-1] Fri Aug 7 23:53:26 2009 @@ -23,7 +23,7 @@ #if defined(_DXAPI_) - #define DXAPI DECLSPEC_EXPORT + #define DXAPI #else #define DXAPI DECLSPEC_IMPORT #endif
15 years, 3 months
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
66
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Results per page:
10
25
50
100
200