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
June 2011
----- 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
809 discussions
Start a n
N
ew thread
Marcus Meissner : server: Remove superflous NULL check (Coverity).
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 27c9a61e15cc6e6038fab12faf37430c6c913870 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=27c9a61e15cc6e6038fab12fa…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Jun 14 13:38:45 2011 +0200 server: Remove superflous NULL check (Coverity). --- server/sock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/sock.c b/server/sock.c index b0efc16..9f62da2 100644 --- a/server/sock.c +++ b/server/sock.c @@ -777,7 +777,7 @@ static int accept_into_socket( struct sock *sock, struct sock *acceptsock ) acceptsock->family = sock->family; acceptsock->wparam = 0; acceptsock->deferred = NULL; - if (acceptsock->fd) release_object( acceptsock->fd ); + release_object( acceptsock->fd ); acceptsock->fd = newfd; clear_error();
1
0
0
0
Marcus Meissner : winebuild: Avoid a superflous null check (Coverity).
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 0806f9a438f752ee88e07cad7c97c69ea9d1af2c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0806f9a438f752ee88e07cad7…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Jun 14 13:36:04 2011 +0200 winebuild: Avoid a superflous null check (Coverity). --- tools/winebuild/res32.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/winebuild/res32.c b/tools/winebuild/res32.c index 0c2bd09..e3f46ee 100644 --- a/tools/winebuild/res32.c +++ b/tools/winebuild/res32.c @@ -626,6 +626,7 @@ void output_res_o_file( DLLSPEC *spec ) unsigned int i; char *res_file = NULL; int fd; + struct strarray *args; if (!spec->nb_resources) fatal_error( "--resources mode needs at least one resource file as input\n" ); if (!output_file_name) fatal_error( "No output file name specified\n" ); @@ -681,12 +682,10 @@ void output_res_o_file( DLLSPEC *spec ) close( fd ); free( output_buffer ); - if (res_file) - { - struct strarray *args = strarray_init(); - strarray_add( args, find_tool( "windres", NULL ), "-i", res_file, "-o", output_file_name, NULL ); - spawn( args ); - strarray_free( args ); - } + args = strarray_init(); + strarray_add( args, find_tool( "windres", NULL ), "-i", res_file, "-o", output_file_name, NULL ); + spawn( args ); + strarray_free( args ); + output_file_name = NULL; /* so we don't try to assemble it */ }
1
0
0
0
Marcus Meissner : mscvrt: Do not shadow fmt (Coverity).
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 034c2cb3fdb1150c83448cdf68ed439e64946d09 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=034c2cb3fdb1150c83448cdf6…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Jun 14 13:06:08 2011 +0200 mscvrt: Do not shadow fmt (Coverity). --- dlls/msvcrt/printf.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h index eefecd1..ca7870c 100644 --- a/dlls/msvcrt/printf.h +++ b/dlls/msvcrt/printf.h @@ -533,7 +533,7 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API if(tmp != buf) HeapFree(GetProcessHeap(), 0, tmp); } else if(flags.Format && strchr("aeEfgG", flags.Format)) { - char fmt[20], buf_a[32], *tmp = buf_a, *decimal_point; + char float_fmt[20], buf_a[32], *tmp = buf_a, *decimal_point; int max_len = (flags.FieldLength>flags.Precision ? flags.FieldLength : flags.Precision) + 10; if(max_len > sizeof(buf_a)) @@ -541,9 +541,9 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API if(!tmp) return -1; - FUNC_NAME(pf_rebuild_format_string)(fmt, &flags); + FUNC_NAME(pf_rebuild_format_string)(float_fmt, &flags); - sprintf(tmp, fmt, pf_args(args_ctx, pos, VT_R8, valist).get_double); + sprintf(tmp, float_fmt, pf_args(args_ctx, pos, VT_R8, valist).get_double); if(toupper(flags.Format)=='E' || toupper(flags.Format)=='G') FUNC_NAME(pf_fixup_exponent)(tmp);
1
0
0
0
Marcus Meissner : ddraw: Removed superflous NULL check (Coverity).
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 7e1ccdef71edf78b51e067d65cbcff642f6b06f5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7e1ccdef71edf78b51e067d65…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Jun 14 13:02:32 2011 +0200 ddraw: Removed superflous NULL check (Coverity). --- dlls/ddraw/surface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 504e107..38be89c 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -3482,7 +3482,7 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d EnterCriticalSection(&ddraw_cs); hr = wined3d_surface_bltfast(This->wined3d_surface, dstx, dsty, - src ? src->wined3d_surface : NULL, rsrc, trans); + src->wined3d_surface, rsrc, trans); LeaveCriticalSection(&ddraw_cs); switch(hr) {
1
0
0
0
Marcus Meissner : strmbase: Removed superflous NULL check (Coverity).
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 8377e274a25c4a3205f7297155c9e8ce8989e67d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8377e274a25c4a3205f729715…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Jun 14 13:00:07 2011 +0200 strmbase: Removed superflous NULL check (Coverity). --- dlls/strmbase/outputqueue.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/strmbase/outputqueue.c b/dlls/strmbase/outputqueue.c index 200e2da..4f4ecf8 100644 --- a/dlls/strmbase/outputqueue.c +++ b/dlls/strmbase/outputqueue.c @@ -130,8 +130,7 @@ HRESULT WINAPI OutputQueue_Destroy(OutputQueue *pOutputQueue) DeleteCriticalSection(&pOutputQueue->csQueue); CloseHandle(pOutputQueue->hProcessQueue); - if (pOutputQueue->SampleList) - HeapFree(GetProcessHeap(),0,pOutputQueue->SampleList); + HeapFree(GetProcessHeap(),0,pOutputQueue->SampleList); IPin_Release((IPin*)pOutputQueue->pInputPin); HeapFree(GetProcessHeap(),0,pOutputQueue);
1
0
0
0
Austin English : configure: Remove some unused but set variables (LLVM/ Clang).
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 8521ebe79df39730ee62d518fde3751f45606061 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8521ebe79df39730ee62d518f…
Author: Austin English <austinenglish(a)gmail.com> Date: Mon Jun 13 21:26:40 2011 -0700 configure: Remove some unused but set variables (LLVM/Clang). --- configure | 12 ++++++------ configure.ac | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 1bdae44..70d0202 100755 --- a/configure +++ b/configure @@ -10918,7 +10918,7 @@ if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then : int main () { -int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL) +snd_pcm_hw_params_get_access_mask(NULL, NULL) ; return 0; } @@ -13700,12 +13700,12 @@ main () struct hostent *result; char *buf=0; int bufsize=0; - int res,errnr; + int errnr; char *addr=0; int addrlen=0; int addrtype=0; - res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); - res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); + gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); + gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); ; return 0; @@ -14281,7 +14281,7 @@ else int main () { -float f = 0.0; int i=isinf(f) +float f = 0.0; return isinf(f) ; return 0; } @@ -14314,7 +14314,7 @@ else int main () { -float f = 0.0; int i=isnan(f) +float f = 0.0; return isnan(f) ; return 0; } diff --git a/configure.ac b/configure.ac index 9db37c7..ba36dda 100644 --- a/configure.ac +++ b/configure.ac @@ -1515,7 +1515,7 @@ then #include <alsa/asoundlib.h> #elif defined(HAVE_SYS_ASOUNDLIB_H) #include <sys/asoundlib.h> -#endif]], [[int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)]])], +#endif]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])], [ALSALIBS="-lasound"])]) fi @@ -2150,12 +2150,12 @@ AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style], struct hostent *result; char *buf=0; int bufsize=0; - int res,errnr; + int errnr; char *addr=0; int addrlen=0; int addrtype=0; - res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); - res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); + gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); + gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); ]])],[wine_cv_linux_gethostbyname_r_6=yes],[wine_cv_linux_gethostbyname_r_6=no ]) ) @@ -2328,7 +2328,7 @@ fi dnl Check for isinf AC_CACHE_CHECK([for isinf], ac_cv_have_isinf, - AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; int i=isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"])) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"])) if test "$ac_cv_have_isinf" = "yes" then AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.]) @@ -2336,7 +2336,7 @@ fi dnl Check for isnan AC_CACHE_CHECK([for isnan], ac_cv_have_isnan, - AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; int i=isnan(f)]])],[ac_cv_have_isnan="yes"],[ac_cv_have_isnan="no"])) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isnan(f)]])],[ac_cv_have_isnan="yes"],[ac_cv_have_isnan="no"])) if test "$ac_cv_have_isnan" = "yes" then AC_DEFINE(HAVE_ISNAN, 1, [Define to 1 if you have the `isnan' function.])
1
0
0
0
Frédéric Delanoy : cmd/tests: Get rid of obsolete @todo_space@ construct.
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 5cb45138daa9d0173210b2e73eb213d539459c3c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5cb45138daa9d0173210b2e73…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Mon Jun 13 22:19:44 2011 +0200 cmd/tests: Get rid of obsolete @todo_space@ construct. --- programs/cmd/tests/batch.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c index 0f01dbf..3c12fe7 100644 --- a/programs/cmd/tests/batch.c +++ b/programs/cmd/tests/batch.c @@ -142,7 +142,6 @@ static const char *compare_line(const char *out_line, const char *out_end, const const char *err = NULL; static const char pwd_cmd[] = {'@','p','w','d','@'}; - static const char todo_space_cmd[] = {'@','t','o','d','o','_','s','p','a','c','e','@'}; static const char space_cmd[] = {'@','s','p','a','c','e','@'}; static const char or_broken_cmd[] = {'@','o','r','_','b','r','o','k','e','n','@'}; @@ -159,13 +158,6 @@ static const char *compare_line(const char *out_line, const char *out_end, const out_ptr += workdir_len; continue; } - }else if(exp_ptr+sizeof(todo_space_cmd) <= exp_end - && !memcmp(exp_ptr, todo_space_cmd, sizeof(todo_space_cmd))) { - exp_ptr += sizeof(todo_space_cmd); - todo_wine ok(*out_ptr == ' ', "expected space\n"); - if(out_ptr < out_end && *out_ptr == ' ') - out_ptr++; - continue; }else if(exp_ptr+sizeof(space_cmd) <= exp_end && !memcmp(exp_ptr, space_cmd, sizeof(space_cmd))) { exp_ptr += sizeof(space_cmd);
1
0
0
0
Vincent Povirk : user32: Add a test to find the queue containing hotkey messages.
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 1e2e3d1a0509f6a1f262cc204de4d278602b7a9a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1e2e3d1a0509f6a1f262cc204…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Jun 13 12:31:08 2011 -0500 user32: Add a test to find the queue containing hotkey messages. --- dlls/user32/tests/msg.c | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 2d993e2..3d9452d 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -13078,6 +13078,22 @@ static const struct message WmHotkeyReleaseLWIN[] = { { WM_KEYUP, sent|wparam|lparam, VK_LWIN, 0xc0000001 }, { 0 } }; +static const struct message WmHotkeyCombined[] = { + { WM_KEYDOWN, kbd_hook|wparam|lparam, VK_LWIN, LLKHF_INJECTED }, + { WM_KEYDOWN, kbd_hook|lparam, 0, LLKHF_INJECTED }, + { WM_KEYUP, kbd_hook|lparam, 0, LLKHF_INJECTED|LLKHF_UP }, + { WM_KEYUP, kbd_hook|wparam|lparam, VK_LWIN, LLKHF_INJECTED|LLKHF_UP }, + { WM_APP, sent, 0, 0 }, + { WM_HOTKEY, sent|wparam, 5 }, + { WM_APP+1, sent, 0, 0 }, + { HCBT_KEYSKIPPED, hook|wparam|lparam|optional, VK_LWIN, 1 }, + { WM_KEYDOWN, sent|wparam|lparam, VK_LWIN, 1 }, + { HCBT_KEYSKIPPED, hook|optional, 0, 0x80000001 }, + { WM_KEYUP, sent, 0, 0x80000001 }, /* lparam not checked so the sequence isn't a todo */ + { HCBT_KEYSKIPPED, hook|wparam|lparam|optional, VK_LWIN, 0xc0000001 }, + { WM_KEYUP, sent|wparam|lparam, VK_LWIN, 0xc0000001 }, + { 0 } +}; static int hotkey_letter; @@ -13223,6 +13239,24 @@ static void test_hotkey(void) DispatchMessage(&msg); ok_sequence(WmHotkeyReleaseLWIN, "window hotkey release LWIN", FALSE); + /* Send and process all messages at once */ + PostMessage(test_window, WM_APP, 0, 0); + keybd_event(VK_LWIN, 0, 0, 0); + keybd_event(hotkey_letter, 0, 0, 0); + keybd_event(hotkey_letter, 0, KEYEVENTF_KEYUP, 0); + keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0); + + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) + { + if (msg.message == WM_HOTKEY) + { + ok(msg.hwnd == test_window, "unexpected hwnd %p\n", msg.hwnd); + ok(msg.lParam == MAKELPARAM(MOD_WIN, hotkey_letter), "unexpected WM_HOTKEY lparam %lx\n", msg.lParam); + } + DispatchMessage(&msg); + } + ok_sequence(WmHotkeyCombined, "window hotkey combined", FALSE); + /* Register same hwnd/id with different key combination */ ret = RegisterHotKey(test_window, 5, 0, hotkey_letter); ok(ret == TRUE, "expected TRUE, got %i, err=%d\n", ret, GetLastError());
1
0
0
0
Vincent Povirk : user32: Ignore painting messages in the hotkey test using a wndproc.
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: 9eb6af791f9ff687815dc42ccc6f5f2db64cb00d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9eb6af791f9ff687815dc42cc…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Jun 13 12:20:31 2011 -0500 user32: Ignore painting messages in the hotkey test using a wndproc. --- dlls/user32/tests/msg.c | 61 +++++++++++++++++++++++++++++++++------------- 1 files changed, 44 insertions(+), 17 deletions(-) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 8c23da2..2d993e2 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -7712,6 +7712,37 @@ static LRESULT WINAPI PaintLoopProcA(HWND hWnd, UINT msg, WPARAM wParam, LPARAM return DefWindowProcA(hWnd,msg,wParam,lParam); } +static LRESULT WINAPI HotkeyMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + static LONG defwndproc_counter = 0; + LRESULT ret; + struct recvd_message msg; + + if (ignore_message( message )) return 0; + + if ((message >= WM_KEYFIRST && message <= WM_KEYLAST) || + message == WM_HOTKEY || message >= WM_APP) + { + msg.hwnd = hwnd; + msg.message = message; + msg.flags = sent|wparam|lparam; + if (defwndproc_counter) msg.flags |= defwinproc; + msg.wParam = wParam; + msg.lParam = lParam; + msg.descr = "HotkeyMsgCheckProcA"; + add_message(&msg); + } + + defwndproc_counter++; + ret = DefWindowProcA(hwnd, message, wParam, lParam); + defwndproc_counter--; + + if (message == WM_APP) + PostMessageA(hwnd, WM_APP+1, 0, 0); + + return ret; +} + static BOOL RegisterWindowClasses(void) { WNDCLASSA cls; @@ -7729,6 +7760,10 @@ static BOOL RegisterWindowClasses(void) cls.lpszClassName = "TestWindowClass"; if(!RegisterClassA(&cls)) return FALSE; + cls.lpfnWndProc = HotkeyMsgCheckProcA; + cls.lpszClassName = "HotkeyWindowClass"; + if(!RegisterClassA(&cls)) return FALSE; + cls.lpfnWndProc = ShowWindowProcA; cls.lpszClassName = "ShowWindowClass"; if(!RegisterClassA(&cls)) return FALSE; @@ -13090,7 +13125,7 @@ static void test_hotkey(void) return; } - test_window = CreateWindowEx(0, "TestWindowClass", NULL, WS_OVERLAPPEDWINDOW | WS_VISIBLE, + test_window = CreateWindowEx(0, "HotkeyWindowClass", NULL, WS_OVERLAPPEDWINDOW | WS_VISIBLE, 100, 100, 200, 200, 0, 0, 0, NULL); flush_sequence(); @@ -13159,14 +13194,12 @@ static void test_hotkey(void) /* Inject the appropriate key sequence */ keybd_event(VK_LWIN, 0, 0, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) DispatchMessage(&msg); ok_sequence(WmHotkeyPressLWIN, "window hotkey press LWIN", FALSE); keybd_event(hotkey_letter, 0, 0, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { if (msg.message == WM_HOTKEY) { @@ -13181,14 +13214,12 @@ static void test_hotkey(void) ok((key_state & 0x8000) == 0x8000, "unexpected key state %x\n", key_state); keybd_event(hotkey_letter, 0, KEYEVENTF_KEYUP, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) DispatchMessage(&msg); ok_sequence(WmHotkeyRelease, "window hotkey release", FALSE); keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) DispatchMessage(&msg); ok_sequence(WmHotkeyReleaseLWIN, "window hotkey release LWIN", FALSE); @@ -13212,8 +13243,7 @@ static void test_hotkey(void) /* Inject the appropriate key sequence */ keybd_event(VK_LWIN, 0, 0, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { ok(msg.hwnd != NULL, "unexpected thread message %x\n", msg.message); DispatchMessage(&msg); @@ -13221,8 +13251,7 @@ static void test_hotkey(void) ok_sequence(WmHotkeyPressLWIN, "thread hotkey press LWIN", FALSE); keybd_event(hotkey_letter, 0, 0, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { if (msg.message == WM_HOTKEY) { @@ -13243,8 +13272,7 @@ static void test_hotkey(void) ok_sequence(WmHotkeyPress, "thread hotkey press", FALSE); keybd_event(hotkey_letter, 0, KEYEVENTF_KEYUP, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { ok(msg.hwnd != NULL, "unexpected thread message %x\n", msg.message); DispatchMessage(&msg); @@ -13252,8 +13280,7 @@ static void test_hotkey(void) ok_sequence(WmHotkeyRelease, "thread hotkey release", FALSE); keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0); - while (PeekMessage(&msg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE) || - PeekMessage(&msg, NULL, WM_HOTKEY, WM_HOTKEY, PM_REMOVE)) + while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { ok(msg.hwnd != NULL, "unexpected thread message %x\n", msg.message); DispatchMessage(&msg);
1
0
0
0
Stefan Dösinger : wined3d: Invalidate STATE_STREAMSRC in wined3d_device_draw_indexed_primitive_up.
by Alexandre Julliard
14 Jun '11
14 Jun '11
Module: wine Branch: master Commit: a4212786250b5609f1b5f5a6d46d329c7252f18d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a4212786250b5609f1b5f5a6d…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sat Jun 11 16:19:45 2011 +0200 wined3d: Invalidate STATE_STREAMSRC in wined3d_device_draw_indexed_primitive_up. --- dlls/wined3d/device.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6a1e639..529f5ce 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4231,8 +4231,8 @@ HRESULT CDECL wined3d_device_draw_indexed_primitive_up(struct wined3d_device *de device->stateBlock->state.load_base_vertex_index = 0; device_invalidate_state(device, STATE_BASEVERTEXINDEX); } - /* Mark the state dirty until we have nicer tracking of the stream source pointers */ - device_invalidate_state(device, STATE_VDECL); + /* Invalidate the state until we have nicer tracking of the stream source pointers */ + device_invalidate_state(device, STATE_STREAMSRC); device_invalidate_state(device, STATE_INDEXBUFFER); drawPrimitive(device, index_count, 0, index_size, index_data);
1
0
0
0
← Newer
1
...
43
44
45
46
47
48
49
...
81
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
Results per page:
10
25
50
100
200