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
August 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
4 participants
1042 discussions
Start a n
N
ew thread
Hongbo Ni : user32: Fix DLL injection problem using LOAD_WITH_ALTERED_SEARCH_PATH.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 650a0f3fdd8c2b0dfbefd035fa8d8c8691c8c026 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=650a0f3fdd8c2b0dfbefd035f…
Author: Hongbo Ni <hongbo(a)njstar.com> Date: Thu Aug 27 11:18:14 2009 +1000 user32: Fix DLL injection problem using LOAD_WITH_ALTERED_SEARCH_PATH. --- dlls/user32/hook.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/hook.c b/dlls/user32/hook.c index b6dc8e8..ae4c5f1 100644 --- a/dlls/user32/hook.c +++ b/dlls/user32/hook.c @@ -322,7 +322,7 @@ void *get_hook_proc( void *proc, const WCHAR *module ) { TRACE( "loading %s\n", debugstr_w(module) ); /* FIXME: the library will never be freed */ - if (!(mod = LoadLibraryW(module))) return NULL; + if (!(mod = LoadLibraryExW(module, NULL, LOAD_WITH_ALTERED_SEARCH_PATH))) return NULL; } return (char *)mod + (ULONG_PTR)proc; }
1
0
0
0
Jacek Caban : jscript: Create undeclared values to script_disp instead of var_disp.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 4b8adbef866eea18e231dab64156c858c66082f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4b8adbef866eea18e231dab64…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 27 01:22:17 2009 +0200 jscript: Create undeclared values to script_disp instead of var_disp. --- dlls/jscript/engine.c | 4 ++-- dlls/jscript/tests/lang.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 96117f2..c9db8e6 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -537,11 +537,11 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, js return S_OK; if(flags & EXPR_NEWREF) { - hres = jsdisp_get_id(ctx->var_disp, identifier, fdexNameEnsure, &id); + hres = jsdisp_get_id(ctx->parser->script->script_disp, identifier, fdexNameEnsure, &id); if(FAILED(hres)) return hres; - exprval_set_idref(ret, (IDispatch*)_IDispatchEx_(ctx->var_disp), id); + exprval_set_idref(ret, (IDispatch*)_IDispatchEx_(ctx->parser->script->script_disp), id); return S_OK; } diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 56f71d6..b0e90fc 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -907,4 +907,7 @@ function () {} nosemicolon(); ok(typeof(doesnotexist) === "undefined", "typeof(doesnotexist) = " + typeof(doesnotexist)); +(function() { newValue = 1; })(); +ok(newValue === 1, "newValue = " + newValue); + reportSuccess();
1
0
0
0
Jacek Caban : jscript: Return "undefined" type for invalid references.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 9c18f6ef5d84bc2470c5f90988832a1ec5f69282 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c18f6ef5d84bc2470c5f9098…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 27 01:21:56 2009 +0200 jscript: Return "undefined" type for invalid references. --- dlls/jscript/engine.c | 59 ++++++++++++++++++++++++++++--------------- dlls/jscript/tests/lang.js | 2 + 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index d314de6..96117f2 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2228,11 +2228,8 @@ HRESULT void_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, } /* ECMA-262 3rd Edition 11.4.3 */ -HRESULT typeof_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret) +static HRESULT typeof_exprval(exec_ctx_t *ctx, exprval_t *exprval, jsexcept_t *ei, const WCHAR **ret) { - unary_expression_t *expr = (unary_expression_t*)_expr; - const WCHAR *str; - exprval_t exprval; VARIANT val; HRESULT hres; @@ -2243,57 +2240,77 @@ HRESULT typeof_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags static const WCHAR stringW[] = {'s','t','r','i','n','g',0}; static const WCHAR undefinedW[] = {'u','n','d','e','f','i','n','e','d',0}; - TRACE("\n"); - - hres = expr_eval(ctx, expr->expression, 0, ei, &exprval); - if(FAILED(hres)) - return hres; + if(exprval->type == EXPRVAL_INVALID) { + *ret = undefinedW; + return S_OK; + } - hres = exprval_to_value(ctx->parser->script, &exprval, ei, &val); - exprval_release(&exprval); + hres = exprval_to_value(ctx->parser->script, exprval, ei, &val); if(FAILED(hres)) return hres; switch(V_VT(&val)) { case VT_EMPTY: - str = undefinedW; + *ret = undefinedW; break; case VT_NULL: - str = objectW; + *ret = objectW; break; case VT_BOOL: - str = booleanW; + *ret = booleanW; break; case VT_I4: case VT_R8: - str = numberW; + *ret = numberW; break; case VT_BSTR: - str = stringW; + *ret = stringW; break; case VT_DISPATCH: { DispatchEx *dispex; dispex = iface_to_jsdisp((IUnknown*)V_DISPATCH(&val)); if(dispex) { - str = dispex->builtin_info->class == JSCLASS_FUNCTION ? functionW : objectW; - IDispatchEx_Release(_IDispatchEx_(dispex)); + *ret = is_class(dispex, JSCLASS_FUNCTION) ? functionW : objectW; + jsdisp_release(dispex); }else { - str = objectW; + *ret = objectW; } break; } default: FIXME("unhandled vt %d\n", V_VT(&val)); - VariantClear(&val); - return E_NOTIMPL; + hres = E_NOTIMPL; } VariantClear(&val); + return S_OK; +} + +HRESULT typeof_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret) +{ + unary_expression_t *expr = (unary_expression_t*)_expr; + const WCHAR *str = NULL; + exprval_t exprval; + HRESULT hres; + + TRACE("\n"); + + hres = expr_eval(ctx, expr->expression, 0, ei, &exprval); + if(FAILED(hres)) + return hres; + + hres = typeof_exprval(ctx, &exprval, ei, &str); + exprval_release(&exprval); + if(FAILED(hres)) + return hres; ret->type = EXPRVAL_VARIANT; V_VT(&ret->u.var) = VT_BSTR; V_BSTR(&ret->u.var) = SysAllocString(str); + if(!V_BSTR(&ret->u.var)) + return E_OUTOFMEMORY; + return S_OK; } diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 8ab4d1e..56f71d6 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -905,4 +905,6 @@ function do_test() {} function nosemicolon() {} nosemicolon(); function () {} nosemicolon(); +ok(typeof(doesnotexist) === "undefined", "typeof(doesnotexist) = " + typeof(doesnotexist)); + reportSuccess();
1
0
0
0
Jacek Caban : jscript: Throw an exception when evaluating invalid identifier instead of on lookup failure .
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: a4acd1b38faabd4690cb9155dd93214caba6f379 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a4acd1b38faabd4690cb9155d…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 27 01:21:38 2009 +0200 jscript: Throw an exception when evaluating invalid identifier instead of on lookup failure. --- dlls/jscript/engine.c | 20 ++++++++++++++++---- dlls/jscript/engine.h | 4 +++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 2f884b2..d314de6 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -57,6 +57,9 @@ static void exprval_release(exprval_t *val) if(val->u.nameref.disp) IDispatch_Release(val->u.nameref.disp); SysFreeString(val->u.nameref.name); + return; + case EXPRVAL_INVALID: + SysFreeString(val->u.identifier); } } @@ -75,10 +78,14 @@ static HRESULT exprval_value(script_ctx_t *ctx, exprval_t *val, jsexcept_t *ei, } return disp_propget(val->u.idref.disp, val->u.idref.id, ctx->lcid, ret, ei, NULL/*FIXME*/); - default: - ERR("type %d\n", val->type); - return E_FAIL; + case EXPRVAL_NAMEREF: + break; + case EXPRVAL_INVALID: + return throw_type_error(ctx, ei, IDS_UNDEFINED, val->u.identifier); } + + ERR("type %d\n", val->type); + return E_FAIL; } static HRESULT exprval_to_value(script_ctx_t *ctx, exprval_t *val, jsexcept_t *ei, VARIANT *ret) @@ -538,7 +545,12 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, js return S_OK; } - return throw_type_error(ctx->var_disp->ctx, ei, IDS_UNDEFINED, identifier); + ret->type = EXPRVAL_INVALID; + ret->u.identifier = SysAllocString(identifier); + if(!ret->u.identifier) + return E_OUTOFMEMORY; + + return S_OK; } /* ECMA-262 3rd Edition 12.1 */ diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h index 8d53f00..09394ce 100644 --- a/dlls/jscript/engine.h +++ b/dlls/jscript/engine.h @@ -272,7 +272,8 @@ typedef struct { enum { EXPRVAL_VARIANT, EXPRVAL_IDREF, - EXPRVAL_NAMEREF + EXPRVAL_NAMEREF, + EXPRVAL_INVALID } type; union { VARIANT var; @@ -284,6 +285,7 @@ typedef struct { IDispatch *disp; BSTR name; } nameref; + BSTR identifier; } u; } exprval_t;
1
0
0
0
Jacek Caban : jscript: Don't require semicolon after function declaration.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 2c255287cd9507f4d4018da6918f8dcbc5e92a76 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2c255287cd9507f4d4018da69…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 27 01:21:03 2009 +0200 jscript: Don't require semicolon after function declaration. --- dlls/jscript/parser.y | 2 ++ dlls/jscript/tests/lang.js | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y index 7e74880..748a06a 100644 --- a/dlls/jscript/parser.y +++ b/dlls/jscript/parser.y @@ -264,6 +264,8 @@ HtmlComment /* ECMA-262 3rd Edition 14 */ SourceElements : /* empty */ { $$ = new_source_elements(ctx); } + | SourceElements FunctionExpression + { $$ = $1; } | SourceElements Statement { $$ = source_elements_add_statement($1, $2); } diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index fd14c93..8ab4d1e 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -902,5 +902,7 @@ ok(re.source === "=(\\?|%3F)", "re.source = " + re.source); ok(createNullBSTR() === '', "createNullBSTR() !== ''"); function do_test() {} +function nosemicolon() {} nosemicolon(); +function () {} nosemicolon(); reportSuccess();
1
0
0
0
Jacek Caban : jscript: Fixed parsing regexps starting with '='.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 05b104c6a3d0193302b8e2cd0c00d54090dade5b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05b104c6a3d0193302b8e2cd0…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 27 01:20:37 2009 +0200 jscript: Fixed parsing regexps starting with '='. --- dlls/jscript/lex.c | 7 +++++-- dlls/jscript/parser.y | 13 ++++++++++--- dlls/jscript/tests/lang.js | 3 +++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c index 1b33737..680ce55 100644 --- a/dlls/jscript/lex.c +++ b/dlls/jscript/lex.c @@ -735,7 +735,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx) if(*ctx->ptr == '=') { /* /= */ ctx->ptr++; *(int*)lval = EXPR_ASSIGNDIV; - return tAssignOper; + return kDIVEQ; } } return '/'; @@ -772,7 +772,10 @@ literal_t *parse_regexp(parser_ctx_t *ctx) TRACE("\n"); - re = ctx->ptr; + while(*ctx->ptr != '/') + ctx->ptr--; + + re = ++ctx->ptr; while(ctx->ptr < ctx->end && *ctx->ptr != '/') { if(*ctx->ptr++ == '\\' && ctx->ptr < ctx->end) ctx->ptr++; diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y index 29d805f..7e74880 100644 --- a/dlls/jscript/parser.y +++ b/dlls/jscript/parser.y @@ -172,7 +172,7 @@ static source_elements_t *source_elements_add_statement(source_elements_t*,state /* keywords */ %token kBREAK kCASE kCATCH kCONTINUE kDEFAULT kDELETE kDO kELSE kIF kFINALLY kFOR kIN %token kINSTANCEOF kNEW kNULL kUNDEFINED kRETURN kSWITCH kTHIS kTHROW kTRUE kFALSE kTRY kTYPEOF kVAR kVOID kWHILE kWITH -%token tANDAND tOROR tINC tDEC tHTMLCOMMENT +%token tANDAND tOROR tINC tDEC tHTMLCOMMENT kDIVEQ %token <srcptr> kFUNCTION '}' @@ -245,6 +245,7 @@ static source_elements_t *source_elements_add_statement(source_elements_t*,state %type <literal> PropertyName %type <literal> BooleanLiteral %type <srcptr> KFunction +%type <ival> AssignOper %nonassoc LOWER_THAN_ELSE %nonassoc kELSE @@ -515,12 +516,16 @@ ExpressionNoIn | ExpressionNoIn ',' AssignmentExpressionNoIn { $$ = new_binary_expression(ctx, EXPR_COMMA, $1, $3); } +AssignOper + : tAssignOper { $$ = $1; } + | kDIVEQ { $$ = EXPR_ASSIGNDIV; } + /* ECMA-262 3rd Edition 11.13 */ AssignmentExpression : ConditionalExpression { $$ = $1; } | LeftHandSideExpression '=' AssignmentExpression { $$ = new_binary_expression(ctx, EXPR_ASSIGN, $1, $3); } - | LeftHandSideExpression tAssignOper AssignmentExpression + | LeftHandSideExpression AssignOper AssignmentExpression { $$ = new_binary_expression(ctx, $2, $1, $3); } /* ECMA-262 3rd Edition 11.13 */ @@ -529,7 +534,7 @@ AssignmentExpressionNoIn { $$ = $1; } | LeftHandSideExpression '=' AssignmentExpressionNoIn { $$ = new_binary_expression(ctx, EXPR_ASSIGN, $1, $3); } - | LeftHandSideExpression tAssignOper AssignmentExpressionNoIn + | LeftHandSideExpression AssignOper AssignmentExpressionNoIn { $$ = new_binary_expression(ctx, $2, $1, $3); } /* ECMA-262 3rd Edition 11.12 */ @@ -800,6 +805,8 @@ Literal | tStringLiteral { $$ = new_string_literal(ctx, $1); } | '/' { $$ = parse_regexp(ctx); if(!$$) YYABORT; } + | kDIVEQ { $$ = parse_regexp(ctx); + if(!$$) YYABORT; } /* ECMA-262 3rd Edition 7.8.2 */ BooleanLiteral diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index fa100ea..fd14c93 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -896,6 +896,9 @@ ok(""+str === "test", "''+str = " + str); ok((function (){return 1;})() === 1, "(function (){return 1;})() = " + (function (){return 1;})()); +var re = /=(\?|%3F)/g; +ok(re.source === "=(\\?|%3F)", "re.source = " + re.source); + ok(createNullBSTR() === '', "createNullBSTR() !== ''"); function do_test() {}
1
0
0
0
Henri Verbeet : wined3d: Remove trailing spaces.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 560d63548d4e9bc6c01ed2c6569e2c1129b26ee9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=560d63548d4e9bc6c01ed2c65…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 27 10:04:56 2009 +0200 wined3d: Remove trailing spaces. --- dlls/wined3d/arb_program_shader.c | 9 +++--- dlls/wined3d/device.c | 5 ++- dlls/wined3d/directx.c | 15 +++++------ dlls/wined3d/drawprim.c | 2 +- dlls/wined3d/glsl_shader.c | 50 +++++++++++++++++------------------- dlls/wined3d/stateblock.c | 15 ++++------ dlls/wined3d/surface.c | 2 +- dlls/wined3d/vertexshader.c | 2 +- dlls/wined3d/wined3d_main.c | 2 +- dlls/wined3d/wined3d_private.h | 32 +++++++++++------------ 10 files changed, 63 insertions(+), 71 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=560d63548d4e9bc6c01ed…
1
0
0
0
Henri Verbeet : d3d10: Add the ID3D10EffectVectorVariable interface.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 3f7cb7438828b23e33c257a860c2e524aa99f196 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3f7cb7438828b23e33c257a86…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 27 10:04:55 2009 +0200 d3d10: Add the ID3D10EffectVectorVariable interface. --- include/d3d10effect.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/include/d3d10effect.h b/include/d3d10effect.h index 7edc4ba..a97b5e9 100644 --- a/include/d3d10effect.h +++ b/include/d3d10effect.h @@ -250,6 +250,53 @@ DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable) }; #undef INTERFACE +DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81); + +#define INTERFACE ID3D10EffectVectorVariable +DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable) +{ + /* ID3D10EffectVariable methods */ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE; + STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + /* ID3D10EffectVectorVariable methods */ + STDMETHOD(SetBoolVector)(THIS_ BOOL *value) PURE; + STDMETHOD(SetIntVector)(THIS_ int *value) PURE; + STDMETHOD(SetFloatVector)(THIS_ float *value) PURE; + STDMETHOD(GetBoolVector)(THIS_ BOOL *value) PURE; + STDMETHOD(GetIntVector)(THIS_ int *value) PURE; + STDMETHOD(GetFloatVector)(THIS_ float *value) PURE; + STDMETHOD(SetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE; + STDMETHOD(SetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE; + STDMETHOD(SetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE; + STDMETHOD(GetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE; + STDMETHOD(GetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE; + STDMETHOD(GetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE; +}; +#undef INTERFACE + DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0); #define INTERFACE ID3D10EffectMatrixVariable
1
0
0
0
Henri Verbeet : d3d10: Add the ID3D10EffectScalarVariable interface.
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: 9550b756e011355f47b60f35fcafbbfcb8bb9377 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9550b756e011355f47b60f35f…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 27 10:04:54 2009 +0200 d3d10: Add the ID3D10EffectScalarVariable interface. --- include/d3d10effect.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/include/d3d10effect.h b/include/d3d10effect.h index b9c5c08..7edc4ba 100644 --- a/include/d3d10effect.h +++ b/include/d3d10effect.h @@ -203,6 +203,53 @@ DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable) }; #undef INTERFACE +DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f); + +#define INTERFACE ID3D10EffectScalarVariable +DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable) +{ + /* ID3D10EffectVariable methods */ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE; + STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + /* ID3D10EffectScalarVariable methods */ + STDMETHOD(SetFloat)(THIS_ float value) PURE; + STDMETHOD(GetFloat)(THIS_ float *value) PURE; + STDMETHOD(SetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE; + STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE; + STDMETHOD(SetInt)(THIS_ int value) PURE; + STDMETHOD(GetInt)(THIS_ int *value) PURE; + STDMETHOD(SetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE; + STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE; + STDMETHOD(SetBool)(THIS_ BOOL value) PURE; + STDMETHOD(GetBool)(THIS_ BOOL *value) PURE; + STDMETHOD(SetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE; + STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE; +}; +#undef INTERFACE + DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0); #define INTERFACE ID3D10EffectMatrixVariable
1
0
0
0
Henri Verbeet : wined3d: Get rid of a redundant memset() in device_stream_info_from_declaration().
by Alexandre Julliard
27 Aug '09
27 Aug '09
Module: wine Branch: master Commit: afc06ce7485902064827bbc5c6c5656708f38dc1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=afc06ce7485902064827bbc5c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 27 10:04:53 2009 +0200 wined3d: Get rid of a redundant memset() in device_stream_info_from_declaration(). --- dlls/wined3d/device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 00a4c96..edfe627 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -182,7 +182,8 @@ void device_stream_info_from_declaration(IWineD3DDeviceImpl *This, const DWORD *streams = declaration->streams; unsigned int i; - memset(stream_info, 0, sizeof(*stream_info)); + stream_info->use_map = 0; + stream_info->swizzle_map = 0; /* Check for transformed vertices, disable vertex shader if present. */ stream_info->position_transformed = declaration->position_transformed;
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
105
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
Results per page:
10
25
50
100
200