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
October 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
3 participants
1207 discussions
Start a n
N
ew thread
Matteo Bruni : wpp: Manage malloc failure in pp_xstrdup.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 9b61ca1c0f59b0f968d5a7f69fa2ca95c11d49f0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9b61ca1c0f59b0f968d5a7f69…
Author: Matteo Bruni <matteo.mystral(a)gmail.com> Date: Mon Sep 28 20:42:48 2009 +0200 wpp: Manage malloc failure in pp_xstrdup. --- libs/wpp/preproc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libs/wpp/preproc.c b/libs/wpp/preproc.c index 2ebec83..c071c56 100644 --- a/libs/wpp/preproc.c +++ b/libs/wpp/preproc.c @@ -110,6 +110,8 @@ char *pp_xstrdup(const char *str) assert(str != NULL); len = strlen(str)+1; s = pp_xmalloc(len); + if(!s) + return NULL; return memcpy(s, str, len); }
1
0
0
0
Matteo Bruni : wpp: Remove the assumption ppy_error calls exit().
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 026ca4cd00d49bdce5c84ff5165d8471c0a3993f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=026ca4cd00d49bdce5c84ff51…
Author: Matteo Bruni <matteo.mystral(a)gmail.com> Date: Mon Sep 28 14:21:00 2009 +0200 wpp: Remove the assumption ppy_error calls exit(). --- libs/wpp/ppl.l | 17 ++++++++++++++++- libs/wpp/ppy.y | 33 +++++++++++++++++++++------------ libs/wpp/preproc.c | 7 +++++++ libs/wpp/wpp.c | 15 +++++++++------ libs/wpp/wpp_private.h | 4 +++- 5 files changed, 56 insertions(+), 20 deletions(-) diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l index e71bf6e..1c83547 100644 --- a/libs/wpp/ppl.l +++ b/libs/wpp/ppl.l @@ -639,7 +639,7 @@ includelogicentry_t *pp_includelogiclist = NULL; if(yy_current_state() == pp_inc) ppy_error("Expected include filename"); - if(yy_current_state() == pp_if) + else if(yy_current_state() == pp_if) { ppy_lval.cptr = pp_xstrdup(ppy_text); return tIDENT; @@ -808,7 +808,10 @@ static int make_number(int radix, YYSTYPE *val, const char *str, int len) ext[0] = len > 2 ? toupper(str[len-3]) : ' '; if(!strcmp(ext, "LUL")) + { ppy_error("Invalid constant suffix"); + return 0; + } else if(!strcmp(ext, "LLU") || !strcmp(ext, "ULL")) { is_ll++; @@ -1085,7 +1088,10 @@ static void expand_macro(macexpstackentry_t *mep) assert(ppp->expanding == 0); if((ppp->nargs >= 0 && nargs != ppp->nargs) || (ppp->nargs < 0 && nargs < -ppp->nargs)) + { ppy_error("Too %s macro arguments (%d)", nargs < abs(ppp->nargs) ? "few" : "many", nargs); + return; + } for(n = 0; n < nargs; n++) nnl += mep->nnls[n]; @@ -1323,7 +1329,10 @@ static bufferstackentry_t *pop_buffer(void) static void push_macro(pp_entry_t *ppp) { if(macexpstackidx >= MAXMACEXPSTACK) + { ppy_error("Too many nested macros"); + return; + } macexpstack[macexpstackidx] = pp_xmalloc(sizeof(macexpstack[0][0])); memset( macexpstack[macexpstackidx], 0, sizeof(macexpstack[0][0])); @@ -1472,13 +1481,19 @@ void pp_do_include(char *fname, int type) n = strlen(fname); if(n <= 2) + { ppy_error("Empty include filename"); + return; + } /* Undo the effect of the quotation */ fname[n-1] = '\0'; if((ppy_in = pp_open_include(fname+1, type ? pp_status.input : NULL, &newpath)) == NULL) + { ppy_error("Unable to open include file %s", fname+1); + return; + } fname[n-1] = *fname; /* Redo the quotes */ push_buffer(NULL, newpath, fname, 0); diff --git a/libs/wpp/ppy.y b/libs/wpp/ppy.y index fc94bb5..2098ca3 100644 --- a/libs/wpp/ppy.y +++ b/libs/wpp/ppy.y @@ -224,6 +224,9 @@ preprocessor case if_elsetrue: case if_elsefalse: ppy_error("#elif cannot follow #else"); + break; + case if_error: + break; default: pp_internal_error(__FILE__, __LINE__, "Invalid pp_if_state (%d) in #elif directive", s); } @@ -247,24 +250,29 @@ preprocessor case if_elsetrue: case if_elsefalse: ppy_error("#else clause already defined"); + break; + case if_error: + break; default: pp_internal_error(__FILE__, __LINE__, "Invalid pp_if_state (%d) in #else directive", s); } } | tENDIF tNL { - pp_pop_if(); - if(pp_incl_state.ifdepth == pp_get_if_depth() && pp_incl_state.state == 1) + if(pp_pop_if() != if_error) { - pp_incl_state.state = 2; - pp_incl_state.seen_junk = 0; + if(pp_incl_state.ifdepth == pp_get_if_depth() && pp_incl_state.state == 1) + { + pp_incl_state.state = 2; + pp_incl_state.seen_junk = 0; + } + else if(pp_incl_state.state != 1) + { + pp_incl_state.state = -1; + } + if(pp_status.debug) + fprintf(stderr, "tENDIF: %s:%d: include_state=%d, include_ppp='%s', include_ifdepth=%d\n", + pp_status.input, pp_status.line_number, pp_incl_state.state, pp_incl_state.ppp, pp_incl_state.ifdepth); } - else if(pp_incl_state.state != 1) - { - pp_incl_state.state = -1; - } - if(pp_status.debug) - fprintf(stderr, "tENDIF: %s:%d: include_state=%d, include_ppp='%s', include_ifdepth=%d\n", - pp_status.input, pp_status.line_number, pp_incl_state.state, pp_incl_state.ppp, pp_incl_state.ifdepth); } | tUNDEF tIDENT tNL { pp_del_define($2); free($2); } | tDEFINE opt_text tNL { pp_add_define($1, $2); } @@ -346,7 +354,8 @@ mtext : tLITERAL { $$ = new_mtext($1, 0, exp_text); } int mat = marg_index($2); if(mat < 0) ppy_error("Stringification identifier must be an argument parameter"); - $$ = new_mtext(NULL, mat, exp_stringize); + else + $$ = new_mtext(NULL, mat, exp_stringize); } | tIDENT { int mat = marg_index($1); diff --git a/libs/wpp/preproc.c b/libs/wpp/preproc.c index 63455ce..2ebec83 100644 --- a/libs/wpp/preproc.c +++ b/libs/wpp/preproc.c @@ -519,13 +519,18 @@ void pp_push_if(pp_if_state_t s) case if_ignore: pp_push_ignore_state(); break; + default: + pp_internal_error(__FILE__, __LINE__, "Invalid pp_if_state (%d)", (int)pp_if_state()); } } pp_if_state_t pp_pop_if(void) { if(if_stack_idx <= 0) + { ppy_error("#{endif,else,elif} without #{if,ifdef,ifndef} (#if-stack underflow)"); + return if_error; + } switch(pp_if_state()) { @@ -538,6 +543,8 @@ pp_if_state_t pp_pop_if(void) case if_ignore: pp_pop_ignore_state(); break; + default: + pp_internal_error(__FILE__, __LINE__, "Invalid pp_if_state (%d)", (int)pp_if_state()); } if(pp_flex_debug) diff --git a/libs/wpp/wpp.c b/libs/wpp/wpp.c index d149591..a7597ec 100644 --- a/libs/wpp/wpp.c +++ b/libs/wpp/wpp.c @@ -144,6 +144,7 @@ int wpp_parse( const char *input, FILE *output ) int ret; pp_status.input = NULL; + pp_status.state = 0; pp_push_define_state(); add_cmdline_defines(); @@ -152,8 +153,8 @@ int wpp_parse( const char *input, FILE *output ) if (!input) ppy_in = stdin; else if (!(ppy_in = fopen(input, "rt"))) { - fprintf(stderr,"Could not open %s\n", input); - exit(2); + ppy_error("Could not open %s\n", input); + return 2; } pp_status.input = input; @@ -162,6 +163,8 @@ int wpp_parse( const char *input, FILE *output ) fprintf(ppy_out, "# 1 \"%s\" 1\n", input ? input : ""); ret = ppy_parse(); + /* If there were errors during processing, return an error code */ + if(!ret && pp_status.state) ret = pp_status.state; if (input) fclose(ppy_in); pp_pop_define_state(); @@ -184,14 +187,14 @@ int wpp_parse_temp( const char *input, const char *output_base, char **output_na if((fd = mkstemps( temp_name, 0 )) == -1) { - fprintf(stderr, "Could not generate a temp name from %s\n", temp_name); - exit(2); + ppy_error("Could not generate a temp name from %s\n", temp_name); + return 2; } if (!(output = fdopen(fd, "wt"))) { - fprintf(stderr,"Could not open fd %s for writing\n", temp_name); - exit(2); + ppy_error("Could not open fd %s for writing\n", temp_name); + return 2; } *output_name = temp_name; diff --git a/libs/wpp/wpp_private.h b/libs/wpp/wpp_private.h index 24ed6b8..b485d70 100644 --- a/libs/wpp/wpp_private.h +++ b/libs/wpp/wpp_private.h @@ -113,7 +113,8 @@ typedef enum { if_elif, if_elsefalse, if_elsetrue, - if_ignore + if_ignore, + if_error } pp_if_state_t; @@ -228,6 +229,7 @@ struct pp_status const char *input; /* current input file name */ int line_number; /* current line number */ int char_number; /* current char number in line */ + int state; /* current error state */ int pedantic; /* pedantic option */ int debug; /* debug messages flag */ };
1
0
0
0
Damjan Jovanovic : sti.h: Add some missing defines.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 37e71168627ff6dd0d9ee74d705624bb6c282178 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=37e71168627ff6dd0d9ee74d7…
Author: Damjan Jovanovic <damjan.jov(a)gmail.com> Date: Fri Oct 2 01:02:46 2009 +0200 sti.h: Add some missing defines. --- include/sti.h | 54 ++++++++++++++++++++++++++++++------------------------ 1 files changed, 30 insertions(+), 24 deletions(-) diff --git a/include/sti.h b/include/sti.h index 6b62436..204492d 100644 --- a/include/sti.h +++ b/include/sti.h @@ -134,36 +134,42 @@ DECLARE_INTERFACE_(IStillImageW, IUnknown) #define IStillImage_AddRef(p) (p)->lpVtbl->AddRef(p) #define IStillImage_Release(p) (p)->lpVtbl->Release(p) /*** IStillImage methods ***/ -#define IStillImage_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) -#define IStillImage_GetDeviceList(p,a,b,c,d) (p)->lpVtbl->GetDeviceList(p,a,b,c,d) -#define IStillImage_GetDeviceInfo(p,a,b) (p)->lpVtbl->GetDeviceInfo(p,a,b) -#define IStillImage_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d) -#define IStillImage_GetDeviceValue(p,a,b,c,d,e) (p)->lpVtbl->GetDeviceValue(p,a,b,c,d,e) -#define IStillImage_SetDeviceValue(p,a,b,c,d,e) (p)->lpVtbl->SetDeviceValue(p,a,b,c,d,e) -#define IStillImage_GetSTILaunchInformation(p,a,b,c) (p)->lpVtbl->GetSTILaunchInformation(p,a,b,c) -#define IStillImage_RegisterLaunchApplication(p,a,b) (p)->lpVtbl->RegisterLaunchApplication(p,a,b) -#define IStillImage_UnregisterLaunchApplication(p,a) (p)->lpVtbl->UnregisterLaunchApplication(p,a) -#define IStillImage_EnableHwNotifications(p,a,b) (p)->lpVtbl->EnableHwNotifications(p,a,b) -#define IStillImage_GetHwNotificationState(p,a,b) (p)->lpVtbl->GetHwNotificationState(p,a,b) -#define IStillImage_RefreshDeviceBus(p,a) (p)->lpVtbl->RefreshDeviceBus(p,a) +#define IStillImage_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IStillImage_GetDeviceList(p,a,b,c,d) (p)->lpVtbl->GetDeviceList(p,a,b,c,d) +#define IStillImage_GetDeviceInfo(p,a,b) (p)->lpVtbl->GetDeviceInfo(p,a,b) +#define IStillImage_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d) +#define IStillImage_GetDeviceValue(p,a,b,c,d,e) (p)->lpVtbl->GetDeviceValue(p,a,b,c,d,e) +#define IStillImage_SetDeviceValue(p,a,b,c,d,e) (p)->lpVtbl->SetDeviceValue(p,a,b,c,d,e) +#define IStillImage_GetSTILaunchInformation(p,a,b,c) (p)->lpVtbl->GetSTILaunchInformation(p,a,b,c) +#define IStillImage_RegisterLaunchApplication(p,a,b) (p)->lpVtbl->RegisterLaunchApplication(p,a,b) +#define IStillImage_UnregisterLaunchApplication(p,a) (p)->lpVtbl->UnregisterLaunchApplication(p,a) +#define IStillImage_EnableHwNotifications(p,a,b) (p)->lpVtbl->EnableHwNotifications(p,a,b) +#define IStillImage_GetHwNotificationState(p,a,b) (p)->lpVtbl->GetHwNotificationState(p,a,b) +#define IStillImage_RefreshDeviceBus(p,a) (p)->lpVtbl->RefreshDeviceBus(p,a) +#define IStillImage_LaunchApplicationForDevice(p,a,b,c) (p)->lpVtbl->LaunchApplicationForDevice(p,a,b,c) +#define IStillImage_SetupDeviceParameters(p,a) (p)->lpVtbl->SetupDeviceParameters(p,a) +#define IStillImage_WriteToErrorLog(p,a,b) (p)->lpVtbl->WriteToErrorLog(p,a,b) #else /*** IUnknown methods ***/ #define IStillImage_QueryInterface(p,a,b) (p)->QueryInterface(a,b) #define IStillImage_AddRef(p) (p)->AddRef() #define IStillImage_Release(p) (p)->Release() /*** IStillImage methods ***/ -#define IStillImage_Initialize(p,a,b) (p)->Initialize(a,b) -#define IStillImage_GetDeviceList(p,a,b,c,d) (p)->GetDeviceList(a,b,c,d) -#define IStillImage_GetDeviceInfo(p,a,b) (p)->GetDeviceInfo(a,b) -#define IStillImage_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d) -#define IStillImage_GetDeviceValue(p,a,b,c,d,e) (p)->GetDeviceValue(a,b,c,d,e) -#define IStillImage_SetDeviceValue(p,a,b,c,d,e) (p)->SetDeviceValue(a,b,c,d,e) -#define IStillImage_GetSTILaunchInformation(p,a,b,c) (p)->GetSTILaunchInformation(a,b,c) -#define IStillImage_RegisterLaunchApplication(p,a,b) (p)->RegisterLaunchApplication(a,b) -#define IStillImage_UnregisterLaunchApplication(p,a) (p)->UnregisterLaunchApplication(a) -#define IStillImage_EnableHwNotifications(p,a,b) (p)->EnableHwNotifications(a,b) -#define IStillImage_GetHwNotificationState(p,a,b) (p)->GetHwNotificationState(a,b) -#define IStillImage_RefreshDeviceBus(p,a) (p)->RefreshDeviceBus(a) +#define IStillImage_Initialize(p,a,b) (p)->Initialize(a,b) +#define IStillImage_GetDeviceList(p,a,b,c,d) (p)->GetDeviceList(a,b,c,d) +#define IStillImage_GetDeviceInfo(p,a,b) (p)->GetDeviceInfo(a,b) +#define IStillImage_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d) +#define IStillImage_GetDeviceValue(p,a,b,c,d,e) (p)->GetDeviceValue(a,b,c,d,e) +#define IStillImage_SetDeviceValue(p,a,b,c,d,e) (p)->SetDeviceValue(a,b,c,d,e) +#define IStillImage_GetSTILaunchInformation(p,a,b,c) (p)->GetSTILaunchInformation(a,b,c) +#define IStillImage_RegisterLaunchApplication(p,a,b) (p)->RegisterLaunchApplication(a,b) +#define IStillImage_UnregisterLaunchApplication(p,a) (p)->UnregisterLaunchApplication(a) +#define IStillImage_EnableHwNotifications(p,a,b) (p)->EnableHwNotifications(a,b) +#define IStillImage_GetHwNotificationState(p,a,b) (p)->GetHwNotificationState(a,b) +#define IStillImage_RefreshDeviceBus(p,a) (p)->RefreshDeviceBus(a) +#define IStillImage_LaunchApplicationForDevice(p,a,b,c) (p)->LaunchApplicationForDevice(a,b,c) +#define IStillImage_SetupDeviceParameters(p,a) (p)->SetupDeviceParameters(a) +#define IStillImage_WriteToErrorLog(p,a,b) (p)->WriteToErrorLog(a,b) #endif #ifdef __cplusplus
1
0
0
0
Henri Verbeet : wined3d: Use the actual array sizes to determine the number of the various pixel/ vertex states.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 048c9450d9e5595d8e7ac66e25ae9f66226b6b30 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=048c9450d9e5595d8e7ac66e2…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 2 11:16:13 2009 +0200 wined3d: Use the actual array sizes to determine the number of the various pixel/vertex states. --- dlls/wined3d/stateblock.c | 77 +++++++++++++++++++++++++------------------- 1 files changed, 44 insertions(+), 33 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=048c9450d9e5595d8e7ac…
1
0
0
0
Henri Verbeet : wined3d: Move the pixel/vertex states arrays to stateblock. c.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 8b3f868774d6f00e66c7d1b9c2e2560358eaafd7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b3f868774d6f00e66c7d1b9c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 2 11:16:12 2009 +0200 wined3d: Move the pixel/vertex states arrays to stateblock.c. --- dlls/wined3d/device.c | 118 ------------------------- dlls/wined3d/stateblock.c | 189 +++++++++++++++++++++++++++++++++------- dlls/wined3d/wined3d_private.h | 15 --- 3 files changed, 156 insertions(+), 166 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=8b3f868774d6f00e66c7d…
1
0
0
0
Henri Verbeet : wined3d: Fix the values of NUM_SAVEDPIXELSTATES_T and NUM_SAVEDVERTEXSTATES_R.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: a84974e2ea8c027bc37df14bce9a38d5ab85cab7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a84974e2ea8c027bc37df14bc…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 2 11:16:11 2009 +0200 wined3d: Fix the values of NUM_SAVEDPIXELSTATES_T and NUM_SAVEDVERTEXSTATES_R. --- dlls/wined3d/wined3d_private.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index f48d791..6bfafde 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -150,9 +150,9 @@ void wined3d_rb_free(void *ptr) DECLSPEC_HIDDEN; /* Used for CreateStateBlock */ #define NUM_SAVEDPIXELSTATES_R 35 -#define NUM_SAVEDPIXELSTATES_T 18 +#define NUM_SAVEDPIXELSTATES_T 17 #define NUM_SAVEDPIXELSTATES_S 12 -#define NUM_SAVEDVERTEXSTATES_R 34 +#define NUM_SAVEDVERTEXSTATES_R 33 #define NUM_SAVEDVERTEXSTATES_T 2 #define NUM_SAVEDVERTEXSTATES_S 1
1
0
0
0
Henri Verbeet : wined3d: Use stateblock_init_contained_states() for WINED3DSBT_VERTEXSTATE stateblocks.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 15d4eee58b264ac0fdc79e1dc8dab8f349f6bf30 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=15d4eee58b264ac0fdc79e1dc…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 2 11:16:10 2009 +0200 wined3d: Use stateblock_init_contained_states() for WINED3DSBT_VERTEXSTATE stateblocks. --- dlls/wined3d/stateblock.c | 48 +------------------------------------------- 1 files changed, 2 insertions(+), 46 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 3e8889e..78cb4b3 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -1455,7 +1455,7 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * WINED3DSTATEBLOCKTYPE type, IUnknown *parent) { const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; - unsigned int i, j; + unsigned int i; HRESULT hr; stateblock->lpVtbl = &IWineD3DStateBlock_Vtbl; @@ -1542,51 +1542,7 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * TRACE("VERTEXSTATE => Pretend all vertex shates have changed.\n"); stateblock_savedstates_set_vertex(&stateblock->changed, gl_info); - - /* Vertex Shader Constants. */ - for (i = 0; i < gl_info->max_vshader_constantsF; ++i) - { - stateblock->contained_vs_consts_f[i] = i; - } - stateblock->num_contained_vs_consts_f = gl_info->max_vshader_constantsF; - - for (i = 0; i < MAX_CONST_B; ++i) - { - stateblock->contained_vs_consts_b[i] = i; - } - stateblock->num_contained_vs_consts_b = MAX_CONST_B; - - for (i = 0; i < MAX_CONST_I; ++i) - { - stateblock->contained_vs_consts_i[i] = i; - } - stateblock->num_contained_vs_consts_i = MAX_CONST_I; - - for (i = 0; i < NUM_SAVEDVERTEXSTATES_R; i++) - { - stateblock->contained_render_states[i] = SavedVertexStates_R[i]; - } - stateblock->num_contained_render_states = NUM_SAVEDVERTEXSTATES_R; - - for (i = 0; i < MAX_TEXTURES; ++i) - { - for (j = 0; j < NUM_SAVEDVERTEXSTATES_T; ++j) - { - stateblock->contained_tss_states[stateblock->num_contained_tss_states].stage = i; - stateblock->contained_tss_states[stateblock->num_contained_tss_states].state = SavedVertexStates_T[j]; - ++stateblock->num_contained_tss_states; - } - } - - for (i = 0 ; i < MAX_COMBINED_SAMPLERS; ++i) - { - for (j = 0; j < NUM_SAVEDVERTEXSTATES_S; ++j) - { - stateblock->contained_sampler_states[stateblock->num_contained_sampler_states].stage = i; - stateblock->contained_sampler_states[stateblock->num_contained_sampler_states].state = SavedVertexStates_S[j]; - ++stateblock->num_contained_sampler_states; - } - } + stateblock_init_contained_states(stateblock); for (i = 0; i < LIGHTMAP_SIZE; ++i) {
1
0
0
0
Henri Verbeet : wined3d: Add a separate function to initialize the saved states for WINED3DSBT_VERTEXSTATE .
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: d500c9b79527030e0fd000f462a65aea1b3afe6e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d500c9b79527030e0fd000f46…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 2 11:16:09 2009 +0200 wined3d: Add a separate function to initialize the saved states for WINED3DSBT_VERTEXSTATE. --- dlls/wined3d/stateblock.c | 42 +++++++++++++++++++++++++++++------------- 1 files changed, 29 insertions(+), 13 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 9cbc1b2..3e8889e 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -136,6 +136,30 @@ static void stateblock_savedstates_set_pixel(SAVEDSTATES *states, const struct w memset(states->pixelShaderConstantsF, TRUE, sizeof(BOOL) * gl_info->max_pshader_constantsF); } +static void stateblock_savedstates_set_vertex(SAVEDSTATES *states, const struct wined3d_gl_info *gl_info) +{ + DWORD texture_mask = 0; + WORD sampler_mask = 0; + unsigned int i; + + states->vertexShader = 1; + + for (i = 0; i < NUM_SAVEDVERTEXSTATES_R; ++i) + { + DWORD rs = SavedVertexStates_R[i]; + states->renderState[rs >> 5] |= 1 << (rs & 0x1f); + } + + for (i = 0; i < NUM_SAVEDVERTEXSTATES_T; ++i) texture_mask |= 1 << SavedVertexStates_T[i]; + for (i = 0; i < MAX_TEXTURES; ++i) states->textureState[i] = texture_mask; + for (i = 0; i < NUM_SAVEDVERTEXSTATES_S; ++i) sampler_mask |= 1 << SavedVertexStates_S[i]; + for (i = 0; i < MAX_COMBINED_SAMPLERS; ++i) states->samplerState[i] = sampler_mask; + states->vertexShaderConstantsB = 0xffff; + states->vertexShaderConstantsI = 0xffff; + + memset(states->vertexShaderConstantsF, TRUE, sizeof(BOOL) * gl_info->max_vshader_constantsF); +} + static void stateblock_copy_values(IWineD3DStateBlockImpl *dst, const IWineD3DStateBlockImpl *src, const struct wined3d_gl_info *gl_info) { @@ -1517,10 +1541,11 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * { TRACE("VERTEXSTATE => Pretend all vertex shates have changed.\n"); + stateblock_savedstates_set_vertex(&stateblock->changed, gl_info); + /* Vertex Shader Constants. */ for (i = 0; i < gl_info->max_vshader_constantsF; ++i) { - stateblock->changed.vertexShaderConstantsF[i] = TRUE; stateblock->contained_vs_consts_f[i] = i; } stateblock->num_contained_vs_consts_f = gl_info->max_vshader_constantsF; @@ -1528,22 +1553,18 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * for (i = 0; i < MAX_CONST_B; ++i) { stateblock->contained_vs_consts_b[i] = i; - stateblock->changed.vertexShaderConstantsB |= (1 << i); } stateblock->num_contained_vs_consts_b = MAX_CONST_B; for (i = 0; i < MAX_CONST_I; ++i) { stateblock->contained_vs_consts_i[i] = i; - stateblock->changed.vertexShaderConstantsI |= (1 << i); } stateblock->num_contained_vs_consts_i = MAX_CONST_I; for (i = 0; i < NUM_SAVEDVERTEXSTATES_R; i++) { - DWORD rs = SavedVertexStates_R[i]; - stateblock->changed.renderState[rs >> 5] |= 1 << (rs & 0x1f); - stateblock->contained_render_states[i] = rs; + stateblock->contained_render_states[i] = SavedVertexStates_R[i]; } stateblock->num_contained_render_states = NUM_SAVEDVERTEXSTATES_R; @@ -1551,10 +1572,8 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * { for (j = 0; j < NUM_SAVEDVERTEXSTATES_T; ++j) { - DWORD state = SavedVertexStates_T[j]; - stateblock->changed.textureState[i] |= 1 << state; stateblock->contained_tss_states[stateblock->num_contained_tss_states].stage = i; - stateblock->contained_tss_states[stateblock->num_contained_tss_states].state = state; + stateblock->contained_tss_states[stateblock->num_contained_tss_states].state = SavedVertexStates_T[j]; ++stateblock->num_contained_tss_states; } } @@ -1563,10 +1582,8 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * { for (j = 0; j < NUM_SAVEDVERTEXSTATES_S; ++j) { - DWORD state = SavedVertexStates_S[j]; - stateblock->changed.samplerState[i] |= 1 << state; stateblock->contained_sampler_states[stateblock->num_contained_sampler_states].stage = i; - stateblock->contained_sampler_states[stateblock->num_contained_sampler_states].state = state; + stateblock->contained_sampler_states[stateblock->num_contained_sampler_states].state = SavedVertexStates_S[j]; ++stateblock->num_contained_sampler_states; } } @@ -1587,7 +1604,6 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl * if (stateblock->streamSource[i]) IWineD3DBuffer_AddRef(stateblock->streamSource[i]); } - stateblock->changed.vertexShader = TRUE; if (stateblock->vertexShader) IWineD3DVertexShader_AddRef(stateblock->vertexShader); stateblock->pIndexData = NULL;
1
0
0
0
Paul Vriens : secur32/tests: Skip some tests on WinMe to avoid a crash.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: 7b3213fd65d8ffa9cdd0149f54d366762e84b2da URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b3213fd65d8ffa9cdd0149f5…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Oct 2 11:09:31 2009 +0200 secur32/tests: Skip some tests on WinMe to avoid a crash. --- dlls/secur32/tests/schannel.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c index 167a0b4..82e27db 100644 --- a/dlls/secur32/tests/schannel.c +++ b/dlls/secur32/tests/schannel.c @@ -210,8 +210,15 @@ static void testAcquireSecurityContext(void) certs[1] = pCertCreateCertificateContext(X509_ASN_ENCODING, selfSignedCert, sizeof(selfSignedCert)); - pCryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL, + SetLastError(0xdeadbeef); + ret = pCryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL, CRYPT_DELETEKEYSET); + if (!ret && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + /* WinMe would crash on some tests */ + win_skip("CryptAcquireContextW is not implemented\n"); + return; + } st = pAcquireCredentialsHandleA(NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
1
0
0
0
Paul Vriens : setupapi/tests: Don't crash on WinMe.
by Alexandre Julliard
02 Oct '09
02 Oct '09
Module: wine Branch: master Commit: da07b0d585a00632a41fca17b83b4a2318056736 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=da07b0d585a00632a41fca17b…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Oct 2 10:49:41 2009 +0200 setupapi/tests: Don't crash on WinMe. --- dlls/setupapi/tests/query.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/setupapi/tests/query.c b/dlls/setupapi/tests/query.c index 0b7883c..6e956a2 100644 --- a/dlls/setupapi/tests/query.c +++ b/dlls/setupapi/tests/query.c @@ -167,14 +167,15 @@ static void test_SetupGetInfInformation(void) broken(GetLastError() == ERROR_FILE_NOT_FOUND) || /* win98 */ broken(GetLastError() == ERROR_PATH_NOT_FOUND) || /* NT4 */ broken(GetLastError() == ERROR_INVALID_NAME) || /* win2k */ - broken(GetLastError() == ERROR_GENERAL_SYNTAX), /* another win2k */ + broken(GetLastError() == ERROR_GENERAL_SYNTAX), /* another win2k / winMe */ "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError()); ok(size == 0xdeadbeef, "Expected size to remain unchanged\n"); /* try an invalid inf filename */ - /* do not use NULL as absolute inf filename on win9x (crash) */ + /* do not use NULL as absolute inf filename on win9x/winMe (crash) */ if ((GetLastError() != ERROR_BAD_PATHNAME) && /* win95 */ - (GetLastError() != ERROR_FILE_NOT_FOUND)) /* win98 */ + (GetLastError() != ERROR_FILE_NOT_FOUND) && /* win98 */ + (GetLastError() != ERROR_GENERAL_SYNTAX)) /* winMe */ { size = 0xdeadbeef; SetLastError(0xbeefcafe);
1
0
0
0
← Newer
1
...
110
111
112
113
114
115
116
...
121
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Results per page:
10
25
50
100
200