winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
March 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
844 discussions
Start a n
N
ew thread
Alexandre Julliard : server: Use the common pattern for async I/ O parameters in named pipe requests.
by Alexandre Julliard
21 Mar '07
21 Mar '07
Module: wine Branch: master Commit: eb3728d34e87730db10bb4043e7e3b9f8b0fdfdb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eb3728d34e87730db10bb4043…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Mar 20 19:21:15 2007 +0100 server: Use the common pattern for async I/O parameters in named pipe requests. --- dlls/ntdll/file.c | 12 +++++++----- include/wine/server_protocol.h | 12 +++++++----- server/named_pipe.c | 13 ++++++------- server/protocol.def | 10 ++++++---- server/trace.c | 10 ++++++---- 5 files changed, 32 insertions(+), 25 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 3d7c3eb..65b4783 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -982,9 +982,10 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc } SERVER_START_REQ(connect_named_pipe) { - req->handle = handle; - req->event = event ? event : internal_event; - req->func = pipe_completion_wait; + req->handle = handle; + req->io_apc = pipe_completion_wait; + req->io_sb = io; + req->io_user = event ? event : internal_event; io->u.Status = wine_server_call(req); } SERVER_END_REQ; @@ -1018,8 +1019,9 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc req->handle = handle; req->timeout = buff->TimeoutSpecified ? buff->Timeout.QuadPart / -10000L : NMPWAIT_USE_DEFAULT_WAIT; - req->event = event ? event : internal_event; - req->func = pipe_completion_wait; + req->io_apc = pipe_completion_wait; + req->io_sb = io; + req->io_user = event ? event : internal_event; wine_server_add_data( req, buff->Name, buff->NameLength ); io->u.Status = wine_server_call( req ); } diff --git a/include/wine/server_protocol.h b/include/wine/server_protocol.h index db9309a..93087cf 100644 --- a/include/wine/server_protocol.h +++ b/include/wine/server_protocol.h @@ -2709,8 +2709,9 @@ struct connect_named_pipe_request { struct request_header __header; obj_handle_t handle; - obj_handle_t event; - void* func; + void* io_apc; + void* io_sb; + void* io_user; }; struct connect_named_pipe_reply { @@ -2724,8 +2725,9 @@ struct wait_named_pipe_request struct request_header __header; obj_handle_t handle; unsigned int timeout; - obj_handle_t event; - void* func; + void* io_apc; + void* io_sb; + void* io_user; /* VARARG(name,unicode_str); */ }; struct wait_named_pipe_reply @@ -4692,6 +4694,6 @@ union generic_reply struct allocate_locally_unique_id_reply allocate_locally_unique_id_reply; }; -#define SERVER_PROTOCOL_VERSION 280 +#define SERVER_PROTOCOL_VERSION 281 #endif /* __WINE_WINE_SERVER_PROTOCOL_H */ diff --git a/server/named_pipe.c b/server/named_pipe.c index 173290f..5eba500 100644 --- a/server/named_pipe.c +++ b/server/named_pipe.c @@ -824,8 +824,7 @@ DECL_HANDLER(connect_named_pipe) case ps_wait_connect: assert( !server->fd ); server->state = ps_wait_open; - create_async( current, NULL, &server->wait_q, - req->func, req->event, NULL ); + create_async( current, NULL, &server->wait_q, req->io_apc, req->io_user, req->io_sb ); async_terminate_queue( &server->pipe->waiters, STATUS_SUCCESS ); break; case ps_connected_server: @@ -873,9 +872,9 @@ DECL_HANDLER(wait_named_pipe) /* there's already a server waiting for a client to connect */ memset( &data, 0, sizeof(data) ); data.type = APC_ASYNC_IO; - data.async_io.func = req->func; - data.async_io.user = req->event; - data.async_io.sb = NULL; + data.async_io.func = req->io_apc; + data.async_io.user = req->io_user; + data.async_io.sb = req->io_sb; data.async_io.status = STATUS_SUCCESS; thread_queue_apc( current, NULL, &data ); release_object( server ); @@ -884,13 +883,13 @@ DECL_HANDLER(wait_named_pipe) { if (req->timeout == NMPWAIT_WAIT_FOREVER) create_async( current, NULL, &pipe->waiters, - req->func, req->event, NULL ); + req->io_apc, req->io_user, req->io_sb ); else { struct timeval when = current_time; if (req->timeout == NMPWAIT_USE_DEFAULT_WAIT) add_timeout( &when, pipe->timeout ); else add_timeout( &when, req->timeout ); - create_async( current, &when, &pipe->waiters, req->func, req->event, NULL ); + create_async( current, &when, &pipe->waiters, req->io_apc, req->io_user, req->io_sb ); } } diff --git a/server/protocol.def b/server/protocol.def index f3175a3..d335d0a 100644 --- a/server/protocol.def +++ b/server/protocol.def @@ -1997,8 +1997,9 @@ enum message_type /* Connect to a named pipe */ @REQ(connect_named_pipe) obj_handle_t handle; - obj_handle_t event; - void* func; + void* io_apc; /* APC routine to queue upon end of async */ + void* io_sb; /* I/O status block */ + void* io_user; /* data to pass back to caller */ @END @@ -2006,8 +2007,9 @@ enum message_type @REQ(wait_named_pipe) obj_handle_t handle; unsigned int timeout; - obj_handle_t event; - void* func; + void* io_apc; /* APC routine to queue upon end of async */ + void* io_sb; /* I/O status block */ + void* io_user; /* data to pass back to caller */ VARARG(name,unicode_str); /* pipe name */ @END diff --git a/server/trace.c b/server/trace.c index 8475466..b5aab1a 100644 --- a/server/trace.c +++ b/server/trace.c @@ -2425,16 +2425,18 @@ static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req ) { fprintf( stderr, " handle=%p,", req->handle ); - fprintf( stderr, " event=%p,", req->event ); - fprintf( stderr, " func=%p", req->func ); + fprintf( stderr, " io_apc=%p,", req->io_apc ); + fprintf( stderr, " io_sb=%p,", req->io_sb ); + fprintf( stderr, " io_user=%p", req->io_user ); } static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req ) { fprintf( stderr, " handle=%p,", req->handle ); fprintf( stderr, " timeout=%08x,", req->timeout ); - fprintf( stderr, " event=%p,", req->event ); - fprintf( stderr, " func=%p,", req->func ); + fprintf( stderr, " io_apc=%p,", req->io_apc ); + fprintf( stderr, " io_sb=%p,", req->io_sb ); + fprintf( stderr, " io_user=%p,", req->io_user ); fprintf( stderr, " name=" ); dump_varargs_unicode_str( cur_size ); }
1
0
0
0
Andrew Talbot : msvcrt: Replace inline static with static inline.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 7b10348088947ab772140d37aeb915333a6e2d7e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b10348088947ab772140d37a…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Mon Mar 19 19:48:07 2007 +0000 msvcrt: Replace inline static with static inline. --- dlls/msvcrt/cppexcept.c | 10 +++++----- dlls/msvcrt/except.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/msvcrt/cppexcept.c b/dlls/msvcrt/cppexcept.c index 81f4779..3b25438 100644 --- a/dlls/msvcrt/cppexcept.c +++ b/dlls/msvcrt/cppexcept.c @@ -49,7 +49,7 @@ DWORD CDECL cxx_frame_handler( PEXCEPTION_RECORD rec, cxx_exception_frame* frame EXCEPTION_REGISTRATION_RECORD* nested_frame, int nested_trylevel ); /* call a function with a given ebp */ -inline static void *call_ebp_func( void *func, void *ebp ) +static inline void *call_ebp_func( void *func, void *ebp ) { void *ret; int dummy; @@ -65,7 +65,7 @@ inline static void *call_ebp_func( void *func, void *ebp ) } /* call a copy constructor */ -inline static void call_copy_ctor( void *func, void *this, void *src, int has_vbase ) +static inline void call_copy_ctor( void *func, void *this, void *src, int has_vbase ) { TRACE( "calling copy ctor %p object %p src %p\n", func, this, src ); if (has_vbase) @@ -78,13 +78,13 @@ inline static void call_copy_ctor( void *func, void *this, void *src, int has_vb } /* call the destructor of the exception object */ -inline static void call_dtor( void *func, void *object ) +static inline void call_dtor( void *func, void *object ) { __asm__ __volatile__("call *%0" : : "r" (func), "c" (object) : "eax", "edx", "memory" ); } /* continue execution to the specified address after exception is caught */ -inline static void DECLSPEC_NORETURN continue_after_catch( cxx_exception_frame* frame, void *addr ) +static inline void DECLSPEC_NORETURN continue_after_catch( cxx_exception_frame* frame, void *addr ) { __asm__ __volatile__("movl -4(%0),%%esp; leal 12(%0),%%ebp; jmp *%1" : : "r" (frame), "a" (addr) ); @@ -276,7 +276,7 @@ static DWORD catch_function_nested_handler( EXCEPTION_RECORD *rec, EXCEPTION_REG /* find and call the appropriate catch block for an exception */ /* returns the address to continue execution to after the catch block was called */ -inline static void call_catch_block( PEXCEPTION_RECORD rec, cxx_exception_frame *frame, +static inline void call_catch_block( PEXCEPTION_RECORD rec, cxx_exception_frame *frame, const cxx_function_descr *descr, int nested_trylevel, cxx_exception_type *info ) { diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c index 3ed3245..5784e4f 100644 --- a/dlls/msvcrt/except.c +++ b/dlls/msvcrt/except.c @@ -66,13 +66,13 @@ typedef struct _MSVCRT_EXCEPTION_FRAME #define TRYLEVEL_END (-1) /* End of trylevel list */ #if defined(__GNUC__) && defined(__i386__) -inline static void call_finally_block( void *code_block, void *base_ptr ) +static inline void call_finally_block( void *code_block, void *base_ptr ) { __asm__ __volatile__ ("movl %1,%%ebp; call *%%eax" : : "a" (code_block), "g" (base_ptr)); } -inline static DWORD call_filter( void *func, void *arg, void *ebp ) +static inline DWORD call_filter( void *func, void *arg, void *ebp ) { DWORD ret; __asm__ __volatile__ ("pushl %%ebp; pushl %3; movl %2,%%ebp; call *%%eax; popl %%ebp; popl %%ebp"
1
0
0
0
Andrew Talbot : dsound: Replace inline static with static inline.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 6eba82d41892b6571e0caecd1a644cff4b727968 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6eba82d41892b6571e0caecd1…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Mon Mar 19 19:46:38 2007 +0000 dsound: Replace inline static with static inline. --- dlls/dsound/dsound_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 0a2803d..94d2122 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -115,7 +115,7 @@ int ds_default_bits_per_sample = 8; * Get a config key from either the app-specific or the default config */ -inline static DWORD get_config_key( HKEY defkey, HKEY appkey, const char *name, +static inline DWORD get_config_key( HKEY defkey, HKEY appkey, const char *name, char *buffer, DWORD size ) { if (appkey && !RegQueryValueExA( appkey, name, 0, NULL, (LPBYTE)buffer, &size )) return 0;
1
0
0
0
Andrew Talbot : ddraw: Replace inline static with static inline.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 4eb936db331ed25d9bd5c9301ad05af6d90a5885 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4eb936db331ed25d9bd5c9301…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Mon Mar 19 19:45:14 2007 +0000 ddraw: Replace inline static with static inline. --- dlls/ddraw/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c index c754036..4e3d3a6 100644 --- a/dlls/ddraw/main.c +++ b/dlls/ddraw/main.c @@ -795,7 +795,7 @@ DestroyCallback(IDirectDrawSurface7 *surf, * Reads a config key from the registry. Taken from WineD3D * ***********************************************************************/ -inline static DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, char* buffer, DWORD size) +static inline DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, char* buffer, DWORD size) { if (0 != appkey && !RegQueryValueExA( appkey, name, 0, NULL, (LPBYTE) buffer, &size )) return 0; if (0 != defkey && !RegQueryValueExA( defkey, name, 0, NULL, (LPBYTE) buffer, &size )) return 0;
1
0
0
0
Detlef Riekenberg : localspl/tests: Fix copy+paste bug.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: b1202e7e69c7f09cced4525b75da28fbdc19080f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b1202e7e69c7f09cced4525b7…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Tue Mar 20 05:22:50 2007 +0100 localspl/tests: Fix copy+paste bug. --- dlls/localspl/tests/localmon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/localspl/tests/localmon.c b/dlls/localspl/tests/localmon.c index bcc8177..a8ace23 100644 --- a/dlls/localspl/tests/localmon.c +++ b/dlls/localspl/tests/localmon.c @@ -1017,7 +1017,7 @@ START_TEST(localmon) if ((pXcvOpenPort) && (pXcvDataPort) && (pXcvClosePort)) { SetLastError(0xdeadbeef); - res = pXcvOpenPort(emptyW, 0, &hXcv); + res = pXcvOpenPort(emptyW, SERVER_ACCESS_ADMINISTER, &hXcv); ok(res, "hXcv: %d with %u and %p (expected '!= 0')\n", res, GetLastError(), hXcv); SetLastError(0xdeadbeef);
1
0
0
0
Michael Stefaniuc : quartz: Fix typo that produced an empty if-statement.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 0674ff43b2a0c74fb1d58118703e5658cc8051b3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0674ff43b2a0c74fb1d581187…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Mar 20 10:55:24 2007 +0100 quartz: Fix typo that produced an empty if-statement. --- dlls/quartz/filtergraph.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 682f535..5e1061e 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -1127,7 +1127,7 @@ static HRESULT WINAPI GraphBuilder_RenderFile(IGraphBuilder *iface, IPin_Release(ppinreader); IBaseFilter_Release(preader); - if (psplitter); + if (psplitter) IBaseFilter_Release(psplitter); return hr;
1
0
0
0
Chris Robinson : quartz: Don't delete critical sections before the filter' s pins are done using them.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 6bd3b156aca74ab50e98a097c723e583c458ef43 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6bd3b156aca74ab50e98a097c…
Author: Chris Robinson <chris.kcat(a)gmail.com> Date: Mon Mar 19 13:26:09 2007 -0700 quartz: Don't delete critical sections before the filter's pins are done using them. --- dlls/quartz/dsoundrender.c | 5 +++-- dlls/quartz/parser.c | 5 +++-- dlls/quartz/transform.c | 6 +++--- dlls/quartz/videorenderer.c | 6 +++--- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c index b5fa40b..5e84e21 100644 --- a/dlls/quartz/dsoundrender.c +++ b/dlls/quartz/dsoundrender.c @@ -400,8 +400,6 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface) { IPin *pConnectedTo; - This->csFilter.DebugInfo->Spare[0] = 0; - DeleteCriticalSection(&This->csFilter); if (This->pClock) IReferenceClock_Release(This->pClock); @@ -425,6 +423,9 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface) This->lpVtbl = NULL; This->IBasicAudio_vtbl = NULL; + This->csFilter.DebugInfo->Spare[0] = 0; + DeleteCriticalSection(&This->csFilter); + TRACE("Destroying Audio Renderer\n"); CoTaskMemFree(This); diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c index fb8c085..15e01e8 100644 --- a/dlls/quartz/parser.c +++ b/dlls/quartz/parser.c @@ -187,8 +187,6 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface) { ULONG i; - This->csFilter.DebugInfo->Spare[0] = 0; - DeleteCriticalSection(&This->csFilter); if (This->pClock) IReferenceClock_Release(This->pClock); @@ -208,6 +206,9 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface) CoTaskMemFree(This->ppPins); This->lpVtbl = NULL; + + This->csFilter.DebugInfo->Spare[0] = 0; + DeleteCriticalSection(&This->csFilter); TRACE("Destroying parser\n"); CoTaskMemFree(This); diff --git a/dlls/quartz/transform.c b/dlls/quartz/transform.c index 04366ef..8343afb 100644 --- a/dlls/quartz/transform.c +++ b/dlls/quartz/transform.c @@ -276,9 +276,6 @@ static ULONG WINAPI TransformFilter_Release(IBaseFilter * iface) { ULONG i; - This->csFilter.DebugInfo->Spare[0] = 0; - DeleteCriticalSection(&This->csFilter); - if (This->pClock) IReferenceClock_Release(This->pClock); @@ -301,6 +298,9 @@ static ULONG WINAPI TransformFilter_Release(IBaseFilter * iface) This->pFuncsTable->pfnCleanup(This); + This->csFilter.DebugInfo->Spare[0] = 0; + DeleteCriticalSection(&This->csFilter); + TRACE("Destroying transform filter\n"); CoTaskMemFree(This); diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c index ccfa61a..a7df440 100644 --- a/dlls/quartz/videorenderer.c +++ b/dlls/quartz/videorenderer.c @@ -524,9 +524,6 @@ static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface) { IPin *pConnectedTo; - This->csFilter.DebugInfo->Spare[0] = 0; - DeleteCriticalSection(&This->csFilter); - DestroyWindow(This->hWnd); PostThreadMessageA(This->ThreadID, WM_QUIT, 0, 0); WaitForSingleObject(This->hThread, INFINITE); @@ -547,6 +544,9 @@ static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface) CoTaskMemFree(This->ppPins); This->lpVtbl = NULL; + This->csFilter.DebugInfo->Spare[0] = 0; + DeleteCriticalSection(&This->csFilter); + TRACE("Destroying Video Renderer\n"); CoTaskMemFree(This);
1
0
0
0
Dmitry Timoshkov : user32: Avoid compiler specific code in the DefWindowProc test.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 6e5b36d4dc7ca8209ae3da316c37d8c2980189a5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6e5b36d4dc7ca8209ae3da316…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Mon Mar 19 23:56:49 2007 +0800 user32: Avoid compiler specific code in the DefWindowProc test. --- dlls/user32/tests/class.c | 46 ++++++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c index 782f0ba..bd1cde6 100644 --- a/dlls/user32/tests/class.c +++ b/dlls/user32/tests/class.c @@ -558,10 +558,14 @@ static void test_instances(void) static void test_defwndproc() { - char classA[] = "deftest"; - WCHAR classW[] = {'d','e','f','t','e','s','t',0}; + static const char classA[] = "deftest"; + static const WCHAR classW[] = {'d','e','f','t','e','s','t',0}; + WNDPROC pDefWindowProcA, pDefWindowProcW; int i; + pDefWindowProcA = (void *)GetProcAddress(GetModuleHandle("user32.dll"), "DefWindowProcA"); + pDefWindowProcW = (void *)GetProcAddress(GetModuleHandle("user32.dll"), "DefWindowProcW"); + for (i = 0; i < 4; i++) { WNDCLASSEXA cls; /* the memory layout of WNDCLASSEXA and WNDCLASSEXW is the same */ @@ -572,9 +576,9 @@ static void test_defwndproc() cls.hInstance = GetModuleHandle(NULL); cls.hbrBackground = GetStockObject (WHITE_BRUSH); if (i & 1) - cls.lpfnWndProc = DefWindowProcA; + cls.lpfnWndProc = pDefWindowProcA; else - cls.lpfnWndProc = DefWindowProcW; + cls.lpfnWndProc = pDefWindowProcW; if (i & 2) { @@ -583,7 +587,7 @@ static void test_defwndproc() } else { - cls.lpszClassName = (LPSTR)classW; + cls.lpszClassName = (LPCSTR)classW; atom = RegisterClassExW((WNDCLASSEXW *)&cls); } ok(atom != 0, "Couldn't register class, i=%d, %d\n", i, GetLastError()); @@ -592,32 +596,32 @@ static void test_defwndproc() ok(hwnd != NULL, "Couldn't create window i=%d\n", i); if ((i & 1) && (i & 2)) { - ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)DefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", - (void *)GetWindowLongPtrA(hwnd, GWLP_WNDPROC), DefWindowProcA); - ok(GetClassLongPtrA(hwnd, GCLP_WNDPROC) == (LONG_PTR)DefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", - (void *)GetClassLongPtrA(hwnd, GCLP_WNDPROC), DefWindowProcA); + ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", + (void *)GetWindowLongPtrA(hwnd, GWLP_WNDPROC), pDefWindowProcA); + ok(GetClassLongPtrA(hwnd, GCLP_WNDPROC) == (ULONG_PTR)pDefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", + (void *)GetClassLongPtrA(hwnd, GCLP_WNDPROC), pDefWindowProcA); } else todo_wine { - ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)DefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", - (void *)GetWindowLongPtrA(hwnd, GWLP_WNDPROC), DefWindowProcA); - ok(GetClassLongPtrA(hwnd, GCLP_WNDPROC) == (LONG_PTR)DefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", - (void *)GetClassLongPtrA(hwnd, GCLP_WNDPROC), DefWindowProcA); + ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", + (void *)GetWindowLongPtrA(hwnd, GWLP_WNDPROC), pDefWindowProcA); + ok(GetClassLongPtrA(hwnd, GCLP_WNDPROC) == (ULONG_PTR)pDefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n", + (void *)GetClassLongPtrA(hwnd, GCLP_WNDPROC), pDefWindowProcA); } if (!(i & 1) && !(i & 2)) { - ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)DefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", - (void *)GetWindowLongPtrW(hwnd, GWLP_WNDPROC), DefWindowProcW); - ok(GetClassLongPtrW(hwnd, GCLP_WNDPROC) == (LONG_PTR)DefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", - (void *)GetClassLongPtrW(hwnd, GCLP_WNDPROC), DefWindowProcW); + ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", + (void *)GetWindowLongPtrW(hwnd, GWLP_WNDPROC), pDefWindowProcW); + ok(GetClassLongPtrW(hwnd, GCLP_WNDPROC) == (ULONG_PTR)pDefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", + (void *)GetClassLongPtrW(hwnd, GCLP_WNDPROC), pDefWindowProcW); } else todo_wine { - ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)DefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", - (void *)GetWindowLongPtrW(hwnd, GWLP_WNDPROC), DefWindowProcW); - ok(GetClassLongPtrW(hwnd, GCLP_WNDPROC) == (LONG_PTR)DefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", - (void *)GetClassLongPtrW(hwnd, GCLP_WNDPROC), DefWindowProcW); + ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", + (void *)GetWindowLongPtrW(hwnd, GWLP_WNDPROC), pDefWindowProcW); + ok(GetClassLongPtrW(hwnd, GCLP_WNDPROC) == (ULONG_PTR)pDefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n", + (void *)GetClassLongPtrW(hwnd, GCLP_WNDPROC), pDefWindowProcW); } DestroyWindow(hwnd);
1
0
0
0
Kai Blin : netapi32: Add test for adding/deleting users.
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: ce6a7595c3910f528332547b077049ad8205e69f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce6a7595c3910f528332547b0…
Author: Kai Blin <kai.blin(a)gmail.com> Date: Mon Mar 19 16:48:39 2007 +0100 netapi32: Add test for adding/deleting users. --- dlls/netapi32/tests/access.c | 56 +++++++++++++++++++++++++++++++++++++++++- include/lmaccess.h | 5 +++ 2 files changed, 60 insertions(+), 1 deletions(-) diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c index 92d5d3b..7dd5855 100644 --- a/dlls/netapi32/tests/access.c +++ b/dlls/netapi32/tests/access.c @@ -20,7 +20,6 @@ #include <stdarg.h> -#include <wine/test.h> #include <windef.h> #include <winbase.h> #include <winerror.h> @@ -28,6 +27,8 @@ #include <lmerr.h> #include <lmapibuf.h> +#include "wine/test.h" + WCHAR user_name[UNLEN + 1]; WCHAR computer_name[MAX_COMPUTERNAME_LENGTH + 1]; @@ -36,6 +37,9 @@ static const WCHAR sAdminUserName[] = {'A','d','m','i','n','i','s','t','r','a',' static const WCHAR sGuestUserName[] = {'G','u','e','s','t',0}; static const WCHAR sNonexistentUser[] = {'N','o','n','e','x','i','s','t','e','n','t',' ', 'U','s','e','r',0}; +static const WCHAR sTestUserName[] = {'t', 'e', 's', 't', 'u', 's', 'e', 'r', 0}; +static const WCHAR sTestUserOldPass[] = {'o', 'l', 'd', 'p', 'a', 's', 's', 0}; +static const WCHAR sTestUserNewPass[] = {'n', 'e', 'w', 'p', 'a', 's', 's', 0}; static const WCHAR sBadNetPath[] = {'\\','\\','B','a',' ',' ','p','a','t','h',0}; static const WCHAR sInvalidName[] = {'\\',0}; static const WCHAR sInvalidName2[] = {'\\','\\',0}; @@ -46,6 +50,9 @@ static NET_API_STATUS (WINAPI *pNetApiBufferSize)(LPVOID,LPDWORD)=NULL; static NET_API_STATUS (WINAPI *pNetQueryDisplayInformation)(LPWSTR,DWORD,DWORD,DWORD,DWORD,LPDWORD,PVOID*)=NULL; static NET_API_STATUS (WINAPI *pNetUserGetInfo)(LPCWSTR,LPCWSTR,DWORD,LPBYTE*)=NULL; static NET_API_STATUS (WINAPI *pNetUserModalsGet)(LPCWSTR,DWORD,LPBYTE*)=NULL; +static NET_API_STATUS (WINAPI *pNetUserAdd)(LPCWSTR,DWORD,LPBYTE,LPDWORD)=NULL; +static NET_API_STATUS (WINAPI *pNetUserChangePassword)(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR)=NULL; +static NET_API_STATUS (WINAPI *pNetUserDel)(LPCWSTR,LPCWSTR)=NULL; static int init_access_tests(void) { @@ -192,6 +199,49 @@ static void run_usermodalsget_tests(void) pNetApiBufferFree(umi2); } +static void run_userhandling_tests(void) +{ + NET_API_STATUS ret; + USER_INFO_1 usri; + + if(!pNetUserAdd || !pNetUserChangePassword || !pNetUserDel) + { + skip("Functions for modifying the user database missing. Skipping test.\n"); + return; + } + + usri.usri1_name = (LPWSTR) sTestUserName; + usri.usri1_password = (LPWSTR) sTestUserOldPass; + usri.usri1_priv = USER_PRIV_USER; + usri.usri1_home_dir = NULL; + usri.usri1_comment = NULL; + usri.usri1_flags = UF_SCRIPT; + usri.usri1_script_path = NULL; + + ret = pNetUserAdd(NULL, 1, (LPBYTE)&usri, NULL); + if(ret == ERROR_ACCESS_DENIED) + { + skip("Insufficient permissions to add users. Skipping test.\n"); + return; + } + if(ret == NERR_UserExists) + { + skip("User already exists, skipping test to not mess up the system\n"); + return; + } + + ok(ret == NERR_Success, "Adding user failed with error 0x%08x\n", ret); + if(ret != NERR_Success) + return; + + ret = pNetUserChangePassword(NULL, sTestUserName, sTestUserOldPass, + sTestUserNewPass); + todo_wine ok(ret == NERR_Success, "Changing the password failed.\n"); + + ret = pNetUserDel(NULL, sTestUserName); + todo_wine ok(ret == NERR_Success, "Deleting the user failed.\n"); +} + START_TEST(access) { HMODULE hnetapi32=LoadLibraryA("netapi32.dll"); @@ -200,6 +250,9 @@ START_TEST(access) pNetQueryDisplayInformation=(void*)GetProcAddress(hnetapi32,"NetQueryDisplayInformation"); pNetUserGetInfo=(void*)GetProcAddress(hnetapi32,"NetUserGetInfo"); pNetUserModalsGet=(void*)GetProcAddress(hnetapi32,"NetUserModalsGet"); + pNetUserAdd=(void*)GetProcAddress(hnetapi32, "NetUserAdd"); + pNetUserChangePassword=(void*)GetProcAddress(hnetapi32, "NetUserChangePassword"); + pNetUserDel=(void*)GetProcAddress(hnetapi32, "NetUserDel"); if (!pNetApiBufferSize) trace("It appears there is no netapi32 functionality on this platform\n"); @@ -208,5 +261,6 @@ START_TEST(access) run_usergetinfo_tests(); run_querydisplayinformation1_tests(); run_usermodalsget_tests(); + run_userhandling_tests(); } } diff --git a/include/lmaccess.h b/include/lmaccess.h index 41e1826..1c7c37c 100644 --- a/include/lmaccess.h +++ b/include/lmaccess.h @@ -440,6 +440,11 @@ typedef struct _LOCALGROUP_USERS_INFO_0 { LPWSTR lgrui0_name; } LOCALGROUP_USERS_INFO_0, *PLOCALGROUP_USERS_INFO_0, *LPLOCALGROUP_USERS_INFO_0; +#define USER_PRIV_GUEST 0 +#define USER_PRIV_USER 1 +#define USER_PRIV_ADMIN 2 +#define USER_PRIV_MASK 3 + #define LOCALGROUP_NAME_PARMNUM 1 #define LOCALGROUP_COMMENT_PARMNUM 2
1
0
0
0
Rob Shearman : ole32: Add a test for StgStreamImpl_SetSize with a non-zero HighPart for the size .
by Alexandre Julliard
20 Mar '07
20 Mar '07
Module: wine Branch: master Commit: 36d5515d911486349e77683f1fda1e22b6248dc6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=36d5515d911486349e77683f1…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Mon Mar 19 14:53:00 2007 +0000 ole32: Add a test for StgStreamImpl_SetSize with a non-zero HighPart for the size. --- dlls/ole32/tests/storage32.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index 710aa45..d96a7ed 100644 --- a/dlls/ole32/tests/storage32.c +++ b/dlls/ole32/tests/storage32.c @@ -308,6 +308,9 @@ static void test_storage_stream(void) ok(r==S_OK, "failed to seek stream\n"); r = IStream_SetSize(stm,p); ok(r==S_OK, "failed to set pos\n"); + p.u.HighPart = 1; + r = IStream_SetSize(stm,p); + ok(r==STG_E_INVALIDFUNCTION, "setting to invalid pos should fail with STG_E_INVALIDFUNCTION instead of error 0x%08x\n", r); pos.QuadPart = 10; r = IStream_Seek(stm, pos, STREAM_SEEK_SET, &p ); ok(r==S_OK, "failed to seek stream\n");
1
0
0
0
← Newer
1
...
23
24
25
26
27
28
29
...
85
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Results per page:
10
25
50
100
200