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 2009
----- 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
2 participants
834 discussions
Start a n
N
ew thread
Alexandre Julliard : rpcrt4: Disable HTTP support if we don' t have socketpair and related networking functions.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: ce3ce9be8f085197a6a8a44b417ecef4ff9b9272 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce3ce9be8f085197a6a8a44b4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 26 14:02:01 2009 +0100 rpcrt4: Disable HTTP support if we don't have socketpair and related networking functions. --- dlls/rpcrt4/rpc_transport.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index 9e4186c..e308564 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -1414,8 +1414,6 @@ static int rpcrt4_protseq_sock_wait_for_new_connection(RpcServerProtseq *protseq return 1; } -#endif /* HAVE_SOCKETPAIR */ - static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *tower_data, size_t tower_size, char **networkaddr, @@ -2364,6 +2362,7 @@ static RPC_STATUS rpcrt4_ncacn_http_parse_top_of_tower(const unsigned char *towe networkaddr, EPM_PROTOCOL_HTTP, endpoint); } +#endif /* HAVE_SOCKETPAIR */ static const struct connection_ops conn_protseq_list[] = { { "ncacn_np", @@ -2409,7 +2408,6 @@ static const struct connection_ops conn_protseq_list[] = { rpcrt4_ncacn_ip_tcp_parse_top_of_tower, NULL, }, -#endif { "ncacn_http", { EPM_PROTOCOL_NCACN, EPM_PROTOCOL_HTTP }, rpcrt4_ncacn_http_alloc, @@ -2424,6 +2422,7 @@ static const struct connection_ops conn_protseq_list[] = { rpcrt4_ncacn_http_parse_top_of_tower, rpcrt4_ncacn_http_receive_fragment, }, +#endif };
1
0
0
0
Alexandre Julliard : msi/tests: Avoid size_t in traces.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 836d9af1be1fea9c66e7b8418dda33f989ecedb1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=836d9af1be1fea9c66e7b8418…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 26 14:01:26 2009 +0100 msi/tests: Avoid size_t in traces. --- dlls/msi/tests/msi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 1c843ef..928e48a 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -7771,7 +7771,7 @@ static void test_MsiEnumPatchesEx_usermanaged(LPCSTR usersid, LPCSTR expectedsid ok(context == MSIINSTALLCONTEXT_USERMANAGED, "Expected MSIINSTALLCONTEXT_USERMANAGED, got %d\n", context); ok(size == lstrlenA(expectedsid) * sizeof(WCHAR), - "Expected %d, got %d\n", lstrlenA(expectedsid) * sizeof(WCHAR), size); + "Expected %d*sizeof(WCHAR), got %d\n", lstrlenA(expectedsid), size); /* pcchTargetUserSid is exactly the length of szTargetUserSid */ lstrcpyA(patchcode, "apple"); @@ -7792,7 +7792,7 @@ static void test_MsiEnumPatchesEx_usermanaged(LPCSTR usersid, LPCSTR expectedsid ok(!strncmp(targetsid, expectedsid, lstrlenA(expectedsid) - 1), "Expected \"%s\", got \"%s\"\n", expectedsid, targetsid); ok(size == lstrlenA(expectedsid) * sizeof(WCHAR), - "Expected %d, got %d\n", lstrlenA(expectedsid) * sizeof(WCHAR), size); + "Expected %d*sizeof(WCHAR), got %d\n", lstrlenA(expectedsid), size); /* pcchTargetUserSid has enough room for NULL terminator */ lstrcpyA(patchcode, "apple");
1
0
0
0
Alexandre Julliard : include: Get rid of the definitions for the pthread emulation.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 4aa98e030e352f020f401b3173ecd1a241e57ef9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4aa98e030e352f020f401b317…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 26 13:26:57 2009 +0100 include: Get rid of the definitions for the pthread emulation. --- configure | 214 ------------------------------------------------ configure.ac | 4 - include/config.h.in | 6 -- include/wine/pthread.h | 51 ------------ loader/pthread.c | 6 ++ 5 files changed, 6 insertions(+), 275 deletions(-) diff --git a/configure b/configure index 3bf72df..a97f33e 100755 --- a/configure +++ b/configure @@ -15227,220 +15227,6 @@ _ACEOF fi -{ $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 -$as_echo_n "checking for pthread_rwlock_t... " >&6; } -if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_pthread_rwlock_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _GNU_SOURCE -#include <pthread.h> - -int -main () -{ -if (sizeof (pthread_rwlock_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _GNU_SOURCE -#include <pthread.h> - -int -main () -{ -if (sizeof ((pthread_rwlock_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_pthread_rwlock_t=yes -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 -$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; } -if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_PTHREAD_RWLOCK_T 1 -_ACEOF - - -fi -{ $as_echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 -$as_echo_n "checking for pthread_rwlockattr_t... " >&6; } -if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_pthread_rwlockattr_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _GNU_SOURCE -#include <pthread.h> - -int -main () -{ -if (sizeof (pthread_rwlockattr_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _GNU_SOURCE -#include <pthread.h> - -int -main () -{ -if (sizeof ((pthread_rwlockattr_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_pthread_rwlockattr_t=yes -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 -$as_echo "$ac_cv_type_pthread_rwlockattr_t" >&6; } -if test "x$ac_cv_type_pthread_rwlockattr_t" = x""yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_PTHREAD_RWLOCKATTR_T 1 -_ACEOF - - -fi - - ac_wine_check_funcs_save_LIBS="$LIBS" LIBS="$LIBS $LIBPTHREAD" diff --git a/configure.ac b/configure.ac index 6a60c9e..c13abc4 100644 --- a/configure.ac +++ b/configure.ac @@ -1151,10 +1151,6 @@ then AC_DEFINE(HAVE_PPDEV, 1, [Define if we can use ppdev.h for parallel port access]) fi -dnl **** Check for pthread_rwlock_t **** -AC_CHECK_TYPES([pthread_rwlock_t, pthread_rwlockattr_t],,,[#define _GNU_SOURCE -#include <pthread.h>]) - dnl **** Check for pthread functions **** WINE_CHECK_LIB_FUNCS(\ pthread_attr_get_np \ diff --git a/include/config.h.in b/include/config.h.in index 047e90c..9e93513 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -594,12 +594,6 @@ /* Define to 1 if you have the <pthread_np.h> header file. */ #undef HAVE_PTHREAD_NP_H -/* Define to 1 if the system has the type `pthread_rwlockattr_t'. */ -#undef HAVE_PTHREAD_RWLOCKATTR_T - -/* Define to 1 if the system has the type `pthread_rwlock_t'. */ -#undef HAVE_PTHREAD_RWLOCK_T - /* Define to 1 if you have the <pwd.h> header file. */ #undef HAVE_PWD_H diff --git a/include/wine/pthread.h b/include/wine/pthread.h index a8d5ba3..561c22c 100644 --- a/include/wine/pthread.h +++ b/include/wine/pthread.h @@ -30,57 +30,6 @@ struct sigset_t; typedef struct sigset_t sigset_t; #endif -#ifdef HAVE_PTHREAD_H - -#define _GNU_SOURCE -#include <pthread.h> -#ifdef HAVE_PTHREAD_NP_H -#include <pthread_np.h> -#endif - -#ifndef HAVE_PTHREAD_RWLOCK_T -typedef void *pthread_rwlock_t; -#endif -#ifndef HAVE_PTHREAD_RWLOCKATTR_T -typedef void *pthread_rwlockattr_t; -#endif - -struct wine_pthread_callbacks -{ - void * (*ptr_get_thread_data)(void); - void (*ptr_set_thread_data)(void *data); - pthread_t (*ptr_pthread_self)(void); - int (*ptr_pthread_equal)(pthread_t thread1, pthread_t thread2); - int (*ptr_pthread_create)(pthread_t* thread, const pthread_attr_t* attr, - void* (*start_routine)(void *), void* arg); - int (*ptr_pthread_cancel)(pthread_t thread); - int (*ptr_pthread_join)(pthread_t thread, void **value_ptr); - int (*ptr_pthread_detach)(pthread_t thread); - void (*ptr_pthread_exit)(void *retval, char *currentframe); - int (*ptr_pthread_mutex_init)(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr); - int (*ptr_pthread_mutex_lock)(pthread_mutex_t *mutex); - int (*ptr_pthread_mutex_trylock)(pthread_mutex_t *mutex); - int (*ptr_pthread_mutex_unlock)(pthread_mutex_t *mutex); - int (*ptr_pthread_mutex_destroy)(pthread_mutex_t *mutex); - int (*ptr_pthread_rwlock_init)(pthread_rwlock_t *rwlock, - const pthread_rwlockattr_t *rwlock_attr); - int (*ptr_pthread_rwlock_destroy)(pthread_rwlock_t *rwlock); - int (*ptr_pthread_rwlock_rdlock)(pthread_rwlock_t *rwlock); - int (*ptr_pthread_rwlock_tryrdlock)(pthread_rwlock_t *rwlock); - int (*ptr_pthread_rwlock_wrlock)(pthread_rwlock_t *rwlock); - int (*ptr_pthread_rwlock_trywrlock)(pthread_rwlock_t *rwlock); - int (*ptr_pthread_rwlock_unlock)(pthread_rwlock_t *rwlock); - int (*ptr_pthread_cond_init)(pthread_cond_t *cond, const pthread_condattr_t *cond_attr); - int (*ptr_pthread_cond_destroy)(pthread_cond_t *cond); - int (*ptr_pthread_cond_signal)(pthread_cond_t *cond); - int (*ptr_pthread_cond_broadcast)(pthread_cond_t *cond); - int (*ptr_pthread_cond_wait)(pthread_cond_t *cond, pthread_mutex_t *mutex); - int (*ptr_pthread_cond_timedwait)(pthread_cond_t *cond, pthread_mutex_t *mutex, - const struct timespec *abstime); -}; - -#endif /* HAVE_PTHREAD_H */ - /* thread information used to creating and exiting threads */ struct wine_pthread_thread_info { diff --git a/loader/pthread.c b/loader/pthread.c index 4c0c892..e4e0831 100644 --- a/loader/pthread.c +++ b/loader/pthread.c @@ -39,6 +39,12 @@ #include <sys/ucontext.h> #include <sys/thr.h> #endif +#ifdef HAVE_PTHREAD_H +#include <pthread.h> +#endif +#ifdef HAVE_PTHREAD_NP_H +#include <pthread_np.h> +#endif #include "wine/library.h" #include "wine/pthread.h"
1
0
0
0
Alexandre Julliard : ntdll: Get rid of the no longer used pthread emulation .
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: c4567214356c61e7d5fd2d1635df91caed681030 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c4567214356c61e7d5fd2d163…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 26 13:20:04 2009 +0100 ntdll: Get rid of the no longer used pthread emulation. --- dlls/ntdll/Makefile.in | 1 - dlls/ntdll/ntdll_misc.h | 1 - dlls/ntdll/pthread.c | 599 ----------------------------------------------- dlls/ntdll/thread.c | 1 - 4 files changed, 0 insertions(+), 602 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=c4567214356c61e7d5fd2…
1
0
0
0
Aric Stewart : msctf: Implement ThreadMgr ITfSource::UnadviseSink.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 91e2f61cda8037b0f276fd3efa097a4faf24e7cc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=91e2f61cda8037b0f276fd3ef…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Mar 25 14:35:37 2009 -0500 msctf: Implement ThreadMgr ITfSource::UnadviseSink. --- dlls/msctf/threadmgr.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c index b2ec069..5461425 100644 --- a/dlls/msctf/threadmgr.c +++ b/dlls/msctf/threadmgr.c @@ -372,9 +372,14 @@ static WINAPI HRESULT ThreadMgrSource_AdviseSink(ITfSource *iface, static WINAPI HRESULT ThreadMgrSource_UnadviseSink(ITfSource *iface, DWORD pdwCookie) { + ThreadMgrSink *sink = (ThreadMgrSink*)pdwCookie; ThreadMgr *This = impl_from_ITfSourceVtbl(iface); - FIXME("STUB:(%p)\n",This); - return E_NOTIMPL; + TRACE("(%p) %x\n",This,pdwCookie); + + list_remove(&sink->entry); + free_sink(sink); + + return S_OK; } static const ITfSourceVtbl ThreadMgr_SourceVtbl =
1
0
0
0
Nikolay Sivov : comctl32/tab: Selected item should have TCIS_BUTTONPRESSED state.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 0e5dac618f0f3c9575864a078c3ce614035ef4fd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0e5dac618f0f3c9575864a078…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Wed Mar 25 18:34:58 2009 -0400 comctl32/tab: Selected item should have TCIS_BUTTONPRESSED state. --- dlls/comctl32/tab.c | 16 +++++----------- dlls/comctl32/tests/tab.c | 10 ++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index ac81016..62770aa 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -252,6 +252,9 @@ static inline LRESULT TAB_SetCurSel (TAB_INFO *infoPtr, INT iItem) return -1; else { if (infoPtr->iSelected != iItem) { + infoPtr->items[prevItem].dwState &= ~TCIS_BUTTONPRESSED; + infoPtr->items[iItem].dwState |= TCIS_BUTTONPRESSED; + infoPtr->iSelected=iItem; infoPtr->uFocus=iItem; TAB_EnsureSelectionVisible(infoPtr); @@ -489,12 +492,8 @@ static LRESULT TAB_KeyUp(TAB_INFO* infoPtr, WPARAM keyCode) { if (!TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGING)) { - infoPtr->iSelected = newItem; - infoPtr->uFocus = newItem; + TAB_SetCurSel(infoPtr, newItem); TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGE); - - TAB_EnsureSelectionVisible(infoPtr); - TAB_InvalidateTabArea(infoPtr); } } @@ -615,13 +614,8 @@ TAB_LButtonDown (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam) { if (!TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGING)) { - infoPtr->iSelected = newItem; - infoPtr->uFocus = newItem; + TAB_SetCurSel(infoPtr, newItem); TAB_SendSimpleNotify(infoPtr, TCN_SELCHANGE); - - TAB_EnsureSelectionVisible(infoPtr); - - TAB_InvalidateTabArea(infoPtr); } } return 0; diff --git a/dlls/comctl32/tests/tab.c b/dlls/comctl32/tests/tab.c index 5f5e4b9..7cee79d 100644 --- a/dlls/comctl32/tests/tab.c +++ b/dlls/comctl32/tests/tab.c @@ -727,6 +727,7 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs) { INT selectionIndex; INT focusIndex; + TCITEM tcItem; flush_sequences(sequences, NUM_MSG_SEQUENCES); @@ -756,6 +757,15 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs) ok_sequence(sequences, TAB_SEQ_INDEX, getset_cur_sel_seq, "Getset curSel test sequence", FALSE); ok_sequence(sequences, PARENT_SEQ_INDEX, empty_sequence, "Getset curSel test parent sequence", FALSE); + + /* selected item should have TCIS_BUTTONPRESSED state + It doesn't depend on button state */ + memset(&tcItem, 0, sizeof(TCITEM)); + tcItem.mask = TCIF_STATE; + tcItem.dwStateMask = TCIS_BUTTONPRESSED; + selectionIndex = SendMessage(hTab, TCM_GETCURSEL, 0, 0); + SendMessage(hTab, TCM_GETITEM, selectionIndex, (LPARAM) &tcItem); + ok (tcItem.dwState & TCIS_BUTTONPRESSED, "Selected item should have TCIS_BUTTONPRESSED\n"); } /* Testing ExtendedStyle */
1
0
0
0
Nikolay Sivov : comctl32/tab: Handle state mask in TCM_[G,S]ETITEM.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: db60f69cba70795a43e557b0c96890a2f2e6d8e5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=db60f69cba70795a43e557b0c…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Wed Mar 25 17:39:11 2009 -0400 comctl32/tab: Handle state mask in TCM_[G,S]ETITEM. --- dlls/comctl32/tab.c | 5 +++-- dlls/comctl32/tests/tab.c | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 800857f..ac81016 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -2719,7 +2719,8 @@ TAB_SetItemT (TAB_INFO *infoPtr, INT iItem, LPTCITEMW tabItem, BOOL bUnicode) FIXME("TCIF_RTLREADING\n"); if (tabItem->mask & TCIF_STATE) - wineItem->dwState = tabItem->dwState; + wineItem->dwState = (wineItem->dwState & ~tabItem->dwStateMask) | + ( tabItem->dwState & tabItem->dwStateMask); if (tabItem->mask & TCIF_TEXT) { @@ -2766,7 +2767,7 @@ TAB_GetItemT (TAB_INFO *infoPtr, INT iItem, LPTCITEMW tabItem, BOOL bUnicode) FIXME("TCIF_RTLREADING\n"); if (tabItem->mask & TCIF_STATE) - tabItem->dwState = wineItem->dwState; + tabItem->dwState = wineItem->dwState & tabItem->dwStateMask; if (tabItem->mask & TCIF_TEXT) { diff --git a/dlls/comctl32/tests/tab.c b/dlls/comctl32/tests/tab.c index d24d097..5f5e4b9 100644 --- a/dlls/comctl32/tests/tab.c +++ b/dlls/comctl32/tests/tab.c @@ -831,6 +831,29 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs) ok_sequence(sequences, TAB_SEQ_INDEX, getset_item_seq, "Getset item test sequence", FALSE); ok_sequence(sequences, PARENT_SEQ_INDEX, empty_sequence, "Getset item test parent sequence", FALSE); + + /* TCIS_BUTTONPRESSED doesn't depend on tab style */ + memset(&tcItem, 0, sizeof(tcItem)); + tcItem.mask = TCIF_STATE; + tcItem.dwStateMask = TCIS_BUTTONPRESSED; + tcItem.dwState = TCIS_BUTTONPRESSED; + ok ( SendMessage(hTab, TCM_SETITEM, 0, (LPARAM) &tcItem), "Setting new item failed.\n"); + tcItem.dwState = 0; + ok ( SendMessage(hTab, TCM_GETITEM, 0, (LPARAM) &tcItem), "Getting item failed.\n"); + ok (tcItem.dwState == TCIS_BUTTONPRESSED, "TCIS_BUTTONPRESSED should be set.\n"); + /* next highlight item, test that dwStateMask actually masks */ + tcItem.mask = TCIF_STATE; + tcItem.dwStateMask = TCIS_HIGHLIGHTED; + tcItem.dwState = TCIS_HIGHLIGHTED; + ok ( SendMessage(hTab, TCM_SETITEM, 0, (LPARAM) &tcItem), "Setting new item failed.\n"); + tcItem.dwState = 0; + ok ( SendMessage(hTab, TCM_GETITEM, 0, (LPARAM) &tcItem), "Getting item failed.\n"); + ok (tcItem.dwState == TCIS_HIGHLIGHTED, "TCIS_HIGHLIGHTED should be set.\n"); + tcItem.mask = TCIF_STATE; + tcItem.dwStateMask = TCIS_BUTTONPRESSED; + tcItem.dwState = 0; + ok ( SendMessage(hTab, TCM_GETITEM, 0, (LPARAM) &tcItem), "Getting item failed.\n"); + ok (tcItem.dwState == TCIS_BUTTONPRESSED, "TCIS_BUTTONPRESSED should be set.\n"); } /* Testing GetSet ToolTip */
1
0
0
0
Nikolay Sivov : comctl32/tab: Draw tab button properly on TCIS_BUTTONPRESSED state.
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 751732e6949808d7ca240a56513f6d1320bce132 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=751732e6949808d7ca240a565…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Wed Mar 25 16:34:48 2009 -0400 comctl32/tab: Draw tab button properly on TCIS_BUTTONPRESSED state. --- dlls/comctl32/tab.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 3a0e477..800857f 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -1962,8 +1962,13 @@ static void TAB_DrawItem(const TAB_INFO *infoPtr, HDC hdc, INT iItem) } else /* ! selected */ { - if (!(lStyle & TCS_FLATBUTTONS)) - DrawEdge(hdc, &r, EDGE_RAISED, BF_SOFT|BF_RECT); + DWORD state = infoPtr->items[iItem].dwState; + + if (state & TCIS_BUTTONPRESSED) + DrawEdge(hdc, &r, EDGE_SUNKEN, BF_SOFT|BF_RECT); + else + if (!(lStyle & TCS_FLATBUTTONS)) + DrawEdge(hdc, &r, EDGE_RAISED, BF_SOFT|BF_RECT); } } else /* !TCS_BUTTONS */
1
0
0
0
Michael Stefaniuc : d3dxof: Remove redundant NULL check before HeapFree ( Smatch).
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 289dca2e0e5f132cb15917fa191a140487e15fb1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=289dca2e0e5f132cb15917fa1…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Mar 25 23:02:42 2009 +0100 d3dxof: Remove redundant NULL check before HeapFree (Smatch). --- dlls/d3dxof/d3dxof.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index 6f9b266..5d42d53 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -1100,9 +1100,8 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE error: HeapFree(GetProcessHeap(), 0, This->buf.pxo_tab); + HeapFree(GetProcessHeap(), 0, This->buf.pxo->pdata); HeapFree(GetProcessHeap(), 0, pstrings); - if (This->buf.pxo->pdata) - HeapFree(GetProcessHeap(), 0, This->buf.pxo->pdata); return hr; }
1
0
0
0
Michael Stefaniuc : msi: Remove redundant NULL check before msi_free ( Smatch).
by Alexandre Julliard
26 Mar '09
26 Mar '09
Module: wine Branch: master Commit: 6fa69c3f2b667d860cb5654164417a20c8008143 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6fa69c3f2b667d860cb565416…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Mar 25 23:02:37 2009 +0100 msi: Remove redundant NULL check before msi_free (Smatch). --- dlls/msi/package.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/package.c b/dlls/msi/package.c index ec8495f..82de944 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -260,7 +260,7 @@ static LPWSTR get_fusion_filename(MSIPACKAGE *package) if (!check) { - if (file) msi_free(file); + msi_free(file); return NULL; }
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
84
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
Results per page:
10
25
50
100
200