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
January 2010
----- 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
615 discussions
Start a n
N
ew thread
Jacek Caban : mshtml: Create URL moniker after test initialization.
by Alexandre Julliard
22 Jan '10
22 Jan '10
Module: wine Branch: master Commit: ab6f8f8b2e33ebc742f7a29e52d940ca306969dc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ab6f8f8b2e33ebc742f7a29e5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 20 21:44:05 2010 +0100 mshtml: Create URL moniker after test initialization. --- dlls/mshtml/tests/htmldoc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index 7dfd344..9d287ec 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -4445,9 +4445,6 @@ static void test_HTMLDocument_http(void) trace("Testing HTMLDocument (http)...\n"); - hres = CreateURLMoniker(NULL, http_urlW, &http_mon); - ok(hres == S_OK, "CreateURLMoniker failed: %08x\n", hres); - init_test(LD_DOLOAD); ipsex = TRUE; @@ -4456,6 +4453,9 @@ static void test_HTMLDocument_http(void) return; doc_unk = (IUnknown*)doc; + hres = CreateURLMoniker(NULL, http_urlW, &http_mon); + ok(hres == S_OK, "CreateURLMoniker failed: %08x\n", hres); + test_ConnectionPointContainer(doc); test_GetCurMoniker((IUnknown*)doc, NULL, NULL); test_Persist(doc, http_mon);
1
0
0
0
Piotr Caban : jscript: Add error handling to Array.reverse.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 81715d00cd8a0a54fd9b836eff4049e8574419b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=81715d00cd8a0a54fd9b836ef…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Jan 20 17:23:55 2010 +0100 jscript: Add error handling to Array.reverse. --- dlls/jscript/array.c | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/dlls/jscript/array.c b/dlls/jscript/array.c index b6fcd3c..fd1fe51 100644 --- a/dlls/jscript/array.c +++ b/dlls/jscript/array.c @@ -473,17 +473,35 @@ static HRESULT Array_reverse(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISP l = length-k-1; hres1 = jsdisp_propget_idx(jsthis, k, &v1, ei, sp); + if(FAILED(hres1)) + return hres1; + hres2 = jsdisp_propget_idx(jsthis, l, &v2, ei, sp); + if(FAILED(hres2)) { + VariantClear(&v1); + return hres2; + } if(hres1 == DISP_E_UNKNOWNNAME) - jsdisp_delete_idx(jsthis, l); + hres1 = jsdisp_delete_idx(jsthis, l); else - jsdisp_propput_idx(jsthis, l, &v1, ei, sp); + hres1 = jsdisp_propput_idx(jsthis, l, &v1, ei, sp); + + if(FAILED(hres1)) { + VariantClear(&v1); + VariantClear(&v2); + return hres1; + } if(hres2 == DISP_E_UNKNOWNNAME) - jsdisp_delete_idx(jsthis, k); + hres2 = jsdisp_delete_idx(jsthis, k); else - jsdisp_propput_idx(jsthis, k, &v2, ei, sp); + hres2 = jsdisp_propput_idx(jsthis, k, &v2, ei, sp); + + if(FAILED(hres2)) { + VariantClear(&v2); + return hres2; + } } if(retv) {
1
0
0
0
Piotr Caban : jscript: Make Array.sort generic.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 8644a083a668ddc03d704a3d94d152ba0a04b710 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8644a083a668ddc03d704a3d9…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Jan 20 17:14:44 2010 +0100 jscript: Make Array.sort generic. --- dlls/jscript/array.c | 25 +++++++++++-------------- dlls/jscript/tests/api.js | 10 ++++++++++ 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/dlls/jscript/array.c b/dlls/jscript/array.c index 15a6e78..b6fcd3c 100644 --- a/dlls/jscript/array.c +++ b/dlls/jscript/array.c @@ -685,10 +685,10 @@ static HRESULT sort_cmp(script_ctx_t *ctx, DispatchEx *cmp_func, VARIANT *v1, VA } /* ECMA-262 3rd Edition 15.4.4.11 */ -static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp, +static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller) { - DispatchEx *cmp_func = NULL; + DispatchEx *jsthis, *cmp_func = NULL; VARIANT *vtab, **sorttab = NULL; DWORD length; DWORD i; @@ -696,12 +696,9 @@ static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPA TRACE("\n"); - if(is_vclass(jsthis, JSCLASS_ARRAY)) { - length = array_from_vdisp(jsthis)->length; - }else { - FIXME("unsupported this not array\n"); - return E_NOTIMPL; - } + hres = get_length(ctx, vthis, ei, &jsthis, &length); + if(FAILED(hres)) + return hres; if(arg_cnt(dp) > 1) { WARN("invalid arg_cnt %d\n", arg_cnt(dp)); @@ -731,8 +728,8 @@ static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPA jsdisp_release(cmp_func); if(retv) { V_VT(retv) = VT_DISPATCH; - V_DISPATCH(retv) = jsthis->u.disp; - IDispatch_AddRef(jsthis->u.disp); + V_DISPATCH(retv) = (IDispatch*)_IDispatchEx_(jsthis); + IDispatch_AddRef(V_DISPATCH(retv)); } return S_OK; } @@ -740,7 +737,7 @@ static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPA vtab = heap_alloc_zero(length * sizeof(VARIANT)); if(vtab) { for(i=0; i<length; i++) { - hres = jsdisp_propget_idx(jsthis->u.jsdisp, i, vtab+i, ei, caller); + hres = jsdisp_propget_idx(jsthis, i, vtab+i, ei, caller); if(FAILED(hres) && hres != DISP_E_UNKNOWNNAME) { WARN("Could not get elem %d: %08x\n", i, hres); break; @@ -817,7 +814,7 @@ static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPA } for(i=0; SUCCEEDED(hres) && i < length; i++) - hres = jsdisp_propput_idx(jsthis->u.jsdisp, i, sorttab[i], ei, caller); + hres = jsdisp_propput_idx(jsthis, i, sorttab[i], ei, caller); } if(vtab) { @@ -834,8 +831,8 @@ static HRESULT Array_sort(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPA if(retv) { V_VT(retv) = VT_DISPATCH; - V_DISPATCH(retv) = jsthis->u.disp; - IDispatch_AddRef(jsthis->u.disp); + V_DISPATCH(retv) = (IDispatch*)_IDispatchEx_(jsthis); + IDispatch_AddRef(V_DISPATCH(retv)); } return S_OK; diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index c8caea8..2fba252 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -695,6 +695,15 @@ ok(arr.sort() === arr, "arr.sort() !== arr"); for(var i=0; i < arr.length; i++) ok(arr[i] === tmp[i], "arr[" + i + "] = " + arr[i] + " expected " + tmp[i]); +arr = new Object(); +arr.length = 3; +arr[0] = 1; +arr[2] = "aa"; +arr.sort = Array.prototype.sort; +tmp = arr.sort(); +ok(arr === tmp, "tmp !== arr"); +ok(arr[0]===1 && arr[1]==="aa" && arr[2]===undefined, "arr is sorted incorectly"); + arr = ["1", "2", "3"]; arr.length = 1; ok(arr.length === 1, "arr.length = " + arr.length); @@ -1903,6 +1912,7 @@ testArrayHostThis("unshift"); testArrayHostThis("reverse"); testArrayHostThis("join"); testArrayHostThis("pop"); +testArrayHostThis("sort"); function testObjectInherit(obj, constr, ts, tls, vo) { ok(obj instanceof Object, "obj is not instance of Object");
1
0
0
0
Piotr Caban : jscript: Make Array.pop generic.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 91dcc245f98349e05aeb7b959472d23284d65418 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=91dcc245f98349e05aeb7b959…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Jan 20 17:12:38 2010 +0100 jscript: Make Array.pop generic. --- dlls/jscript/array.c | 43 +++++++++++++++++-------------------------- dlls/jscript/tests/api.js | 12 ++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/dlls/jscript/array.c b/dlls/jscript/array.c index 5acfa01..15a6e78 100644 --- a/dlls/jscript/array.c +++ b/dlls/jscript/array.c @@ -372,52 +372,42 @@ static HRESULT Array_join(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISPPAR return hres; } -static HRESULT Array_pop(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp, +static HRESULT Array_pop(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller) { + DispatchEx *jsthis; VARIANT val; DWORD length; - WCHAR buf[14]; - DISPID id; HRESULT hres; - static const WCHAR formatW[] = {'%','d',0}; - TRACE("\n"); - if(is_vclass(jsthis, JSCLASS_ARRAY)) { - ArrayInstance *array = array_from_vdisp(jsthis); - length = array->length; - }else { - FIXME("not Array this\n"); - return E_NOTIMPL; - } + hres = get_length(ctx, vthis, ei, &jsthis, &length); + if(FAILED(hres)) + return hres; if(!length) { + hres = set_length(jsthis, ei, 0); + if(FAILED(hres)) + return hres; + if(retv) V_VT(retv) = VT_EMPTY; return S_OK; } - sprintfW(buf, formatW, --length); - hres = jsdisp_get_id(jsthis->u.jsdisp, buf, 0, &id); + length--; + hres = jsdisp_propget_idx(jsthis, length, &val, ei, caller); if(SUCCEEDED(hres)) { - hres = jsdisp_propget(jsthis->u.jsdisp, id, &val, ei, caller); - if(FAILED(hres)) - return hres; - - hres = IDispatchEx_DeleteMemberByDispID(jsthis->u.dispex, id); - }else if(hres == DISP_E_UNKNOWNNAME) { + hres = jsdisp_delete_idx(jsthis, length); + } else if(hres == DISP_E_UNKNOWNNAME) { V_VT(&val) = VT_EMPTY; hres = S_OK; - }else { + } else return hres; - } - if(SUCCEEDED(hres)) { - ArrayInstance *array = array_from_vdisp(jsthis); - array->length = length; - } + if(SUCCEEDED(hres)) + hres = set_length(jsthis, ei, length); if(FAILED(hres)) { VariantClear(&val); @@ -428,6 +418,7 @@ static HRESULT Array_pop(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPAR *retv = val; else VariantClear(&val); + return S_OK; } diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index 40193a7..c8caea8 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -618,6 +618,12 @@ ok(arr.push(true, 'b', false) === 10, "arr.push(true, 'b', false) !== 10"); ok(arr[8] === "b", "arr[8] != 'b'"); ok(arr.length === 10, "arr.length != 10"); +arr.pop = Array.prototype.pop; +ok(arr.pop() === false, "arr.pop() !== false"); +ok(arr[8] === "b", "arr[8] !== 'b'"); +ok(arr.pop() === 'b', "arr.pop() !== 'b'"); +ok(arr[8] === undefined, "arr[8] !== undefined"); + arr = [3,4,5]; tmp = arr.pop(); ok(arr.length === 2, "arr.length = " + arr.length); @@ -633,6 +639,11 @@ for(tmp in arr) tmp = arr.pop(); ok(arr.length === 0, "arr.length = " + arr.length); ok(tmp === undefined, "tmp = " + tmp); +arr = new Object(); +arr.pop = Array.prototype.pop; +tmp = arr.pop(); +ok(arr.length === 0, "arr.length = " + arr.length); +ok(tmp === undefined, "tmp = " + tmp); arr = [,,,,,]; tmp = arr.pop(); ok(arr.length === 5, "arr.length = " + arr.length); @@ -1891,6 +1902,7 @@ testArrayHostThis("splice"); testArrayHostThis("unshift"); testArrayHostThis("reverse"); testArrayHostThis("join"); +testArrayHostThis("pop"); function testObjectInherit(obj, constr, ts, tls, vo) { ok(obj instanceof Object, "obj is not instance of Object");
1
0
0
0
Aric Stewart : oleaut32: Do not crash in logging if string is NULL.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 9a9c075ee9cd5cf5cf40de78fdd12d0876bb8e9c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9a9c075ee9cd5cf5cf40de78f…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Jan 20 10:03:09 2010 -0600 oleaut32: Do not crash in logging if string is NULL. --- dlls/oleaut32/tmarshal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 9f10981..26babdb 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -961,7 +961,7 @@ deserialize_param( unsigned char *buffer; buffer = BSTR_UserUnmarshal(&flags, buf->base + buf->curoff, (BSTR *)arg); buf->curoff = buffer - buf->base; - if (debugout) TRACE_(olerelay)("%s",relaystr(*(BSTR *)arg)); + if (debugout) TRACE_(olerelay)("%s",debugstr_w(*(BSTR *)arg)); } return S_OK; }
1
0
0
0
Alexandre Julliard : wine.inf: Add entries for some of the global options.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 4ae9c2fe1f7152711d03087da2ce98dab62ecbfa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4ae9c2fe1f7152711d03087da…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 20 20:06:08 2010 +0100 wine.inf: Add entries for some of the global options. --- tools/wine.inf.in | 36 +++++++++++++++++++++--------------- 1 files changed, 21 insertions(+), 15 deletions(-) diff --git a/tools/wine.inf.in b/tools/wine.inf.in index d1d528c..5a9db4e 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -39,7 +39,6 @@ AddReg=\ Desktop,\ Metrics,\ DirectX,\ - Environment,\ Fonts,\ MCI,\ Misc,\ @@ -47,6 +46,7 @@ AddReg=\ OLE,\ Printing,\ Services, \ + SessionMgr,\ Tapi,\ Timezones @@ -63,7 +63,6 @@ AddReg=\ Desktop,\ Metrics,\ DirectX,\ - Environment,\ Fonts,\ MCI,\ Misc,\ @@ -71,6 +70,7 @@ AddReg=\ OLE,\ Printing,\ Services, \ + SessionMgr,\ Tapi,\ Timezones,\ VersionInfo @@ -452,18 +452,25 @@ HKLM,Software\Microsoft\DirectPlay\Service Providers\Serial Connection For Direc HKLM,Software\Microsoft\DirectPlay\Service Providers\Serial Connection For DirectPlay,"Guid",,"{0F1D6860-88D9-11cf-9C4E-00A0C905425E}" HKLM,Software\Microsoft\DirectPlay\Service Providers\Serial Connection For DirectPlay,"Path",,"dpmodemx.dll" -[Environment] -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"CommonProgramFiles",,"%16427%" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"ComSpec",0x00020000,"%11%\cmd.exe" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"PATH",0x00020002,"%11%;%10%;%11%\wbem" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"PATHEXT",,".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"ProgramFiles",,"%16422%" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"SystemDrive",2,"c:" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"SYSTEMROOT",,"%10%" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"TEMP",0x00020002,"%10%\temp" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"TMP",0x00020002,"%10%\temp" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"windir",0x00020000,"%10%" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"winsysdir",,"%11%" +[SessionMgr] +HKLM,%Control%\Session Manager,CriticalSectionTimeout,0x00040002,0x00278d00 +HKLM,%Control%\Session Manager,GlobalFlag,0x00040002,0 +HKLM,%Control%\Session Manager,HeapDeCommitFreeBlockThreshold,0x00040002,0 +HKLM,%Control%\Session Manager,HeapDeCommitTotalFreeThreshold,0x00040002,0 +HKLM,%Control%\Session Manager,HeapSegmentCommit,0x00040002,0 +HKLM,%Control%\Session Manager,HeapSegmentReserve,0x00040002,0 +HKLM,%Control%\Session Manager\Environment,"CommonProgramFiles",,"%16427%" +HKLM,%Control%\Session Manager\Environment,"ComSpec",0x00020000,"%11%\cmd.exe" +HKLM,%Control%\Session Manager\Environment,"PATH",0x00020002,"%11%;%10%;%11%\wbem" +HKLM,%Control%\Session Manager\Environment,"PATHEXT",,".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH" +HKLM,%Control%\Session Manager\Environment,"ProgramFiles",,"%16422%" +HKLM,%Control%\Session Manager\Environment,"SystemDrive",2,"c:" +HKLM,%Control%\Session Manager\Environment,"SYSTEMROOT",,"%10%" +HKLM,%Control%\Session Manager\Environment,"TEMP",0x00020002,"%10%\temp" +HKLM,%Control%\Session Manager\Environment,"TMP",0x00020002,"%10%\temp" +HKLM,%Control%\Session Manager\Environment,"windir",0x00020000,"%10%" +HKLM,%Control%\Session Manager\Environment,"winsysdir",,"%11%" +HKLM,%Control%\Session Manager\Memory Management,WriteWatch,0x00040002,1 [Fonts] HKLM,%FontSubStr%,"Arial Baltic,186",,"Arial,186" @@ -539,7 +546,6 @@ HKLM,Software\Microsoft\Rpc\SecurityService,16,2,"secur32.dll" HKLM,Software\Microsoft\Rpc\SecurityService,18,2,"secur32.dll" HKLM,Software\Microsoft\Rpc\SecurityService,68,2,"netlogon.dll" HKLM,Software\Microsoft\Rpc\SecurityService,9,2,"secur32.dll" -HKLM,System\CurrentControlSet\Control\Session Manager,,,"" HKLM,System\CurrentControlSet\Control\VMM32Files,,,"" HKCU,AppEvents\Schemes\Apps\Explorer\Navigating\.Current,,,"" HKCU,Software\Microsoft\Protected Storage System Provider,,,""
1
0
0
0
Alexandre Julliard : ntdll: Load the various PEB global options at startup.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 39a1227cdbd4dd160b201cbb3297a3c68a4bf83b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39a1227cdbd4dd160b201cbb3…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 20 17:30:00 2010 +0100 ntdll: Load the various PEB global options at startup. --- dlls/ntdll/loader.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ dlls/ntdll/thread.c | 51 ----------------------------------------------- 2 files changed, 55 insertions(+), 51 deletions(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index c16e0f6..1172a86 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -2552,6 +2552,59 @@ static NTSTATUS attach_process_dlls( void *wm ) /*********************************************************************** + * load_global_options + */ +static void load_global_options(void) +{ + static const WCHAR sessionW[] = {'M','a','c','h','i','n','e','\\', + 'S','y','s','t','e','m','\\', + 'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\', + 'C','o','n','t','r','o','l','\\', + 'S','e','s','s','i','o','n',' ','M','a','n','a','g','e','r',0}; + static const WCHAR globalflagW[] = {'G','l','o','b','a','l','F','l','a','g',0}; + static const WCHAR critsectW[] = {'C','r','i','t','i','c','a','l','S','e','c','t','i','o','n','T','i','m','e','o','u','t',0}; + static const WCHAR heapresW[] = {'H','e','a','p','S','e','g','m','e','n','t','R','e','s','e','r','v','e',0}; + static const WCHAR heapcommitW[] = {'H','e','a','p','S','e','g','m','e','n','t','C','o','m','m','i','t',0}; + static const WCHAR decommittotalW[] = {'H','e','a','p','D','e','C','o','m','m','i','t','T','o','t','a','l','F','r','e','e','T','h','r','e','s','h','o','l','d',0}; + static const WCHAR decommitfreeW[] = {'H','e','a','p','D','e','C','o','m','m','i','t','F','r','e','e','B','l','o','c','k','T','h','r','e','s','h','o','l','d',0}; + + OBJECT_ATTRIBUTES attr; + UNICODE_STRING name_str; + HANDLE hkey; + ULONG value; + + attr.Length = sizeof(attr); + attr.RootDirectory = 0; + attr.ObjectName = &name_str; + attr.Attributes = OBJ_CASE_INSENSITIVE; + attr.SecurityDescriptor = NULL; + attr.SecurityQualityOfService = NULL; + RtlInitUnicodeString( &name_str, sessionW ); + + if (NtOpenKey( &hkey, KEY_QUERY_VALUE, &attr )) return; + + query_dword_option( hkey, globalflagW, &NtCurrentTeb()->Peb->NtGlobalFlag ); + + query_dword_option( hkey, critsectW, &value ); + NtCurrentTeb()->Peb->CriticalSectionTimeout.QuadPart = (ULONGLONG)value * -10000000; + + query_dword_option( hkey, heapresW, &value ); + NtCurrentTeb()->Peb->HeapSegmentReserve = value; + + query_dword_option( hkey, heapcommitW, &value ); + NtCurrentTeb()->Peb->HeapSegmentCommit = value; + + query_dword_option( hkey, decommittotalW, &value ); + NtCurrentTeb()->Peb->HeapDeCommitTotalFreeThreshold = value; + + query_dword_option( hkey, decommitfreeW, &value ); + NtCurrentTeb()->Peb->HeapDeCommitFreeBlockThreshold = value; + + NtClose( hkey ); +} + + +/*********************************************************************** * start_process */ static void start_process( void *kernel_start ) @@ -2799,6 +2852,8 @@ void __wine_process_init(void) FILE_umask = umask(0777); umask( FILE_umask ); + load_global_options(); + /* setup the load callback and create ntdll modref */ wine_dll_set_callback( load_builtin_callback ); diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index 929d443..ef9183a 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -183,54 +183,6 @@ done: } /*********************************************************************** - * get_global_flag - * - * This is called before the process heap is created, - * but after the connection to the server is established. - * No windows heap allocation is permitted. - */ -static DWORD get_global_flag(void) -{ - static const WCHAR sessionman_keyW[] = {'M','a','c','h','i','n','e','\\', - 'S','y','s','t','e','m','\\', - 'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\', - 'C','o','n','t','r','o','l','\\', - 'S','e','s','s','i','o','n',' ','M','a','n','a','g','e','r',0}; - static const WCHAR global_flagW[] = {'G','l','o','b','a','l','F','l','a','g',0}; - OBJECT_ATTRIBUTES attr; - UNICODE_STRING nameW, valueW; - HANDLE hkey; - char tmp[32]; - DWORD count; - KEY_VALUE_PARTIAL_INFORMATION *info = (KEY_VALUE_PARTIAL_INFORMATION *)tmp; - NTSTATUS status; - - attr.Length = sizeof(attr); - attr.RootDirectory = 0; - attr.ObjectName = &nameW; - attr.Attributes = 0; - attr.SecurityDescriptor = NULL; - attr.SecurityQualityOfService = NULL; - RtlInitUnicodeString( &nameW, sessionman_keyW ); - - status = NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ); - if (status != STATUS_SUCCESS) - return 0; - - RtlInitUnicodeString( &valueW, global_flagW ); - status = NtQueryValueKey( hkey, &valueW, KeyValuePartialInformation, tmp, sizeof(tmp)-1, &count ); - if (status != STATUS_SUCCESS) - return 0; - - /* Some documents say this can be a string, so handle either type */ - if (info->Type == REG_DWORD) - return *(DWORD *)info->Data; - if (info->Type == REG_SZ) - return strtol((char *)info->Data, NULL, 16); - return 0; -} - -/*********************************************************************** * thread_init * * Setup the initial thread. @@ -310,9 +262,6 @@ HANDLE thread_init(void) server_init_process(); info_size = server_init_thread( peb ); - /* retrieve the global flags settings from the registry */ - peb->NtGlobalFlag = get_global_flag(); - /* create the process heap */ if (!(peb->ProcessHeap = RtlCreateHeap( HEAP_GROWABLE, NULL, 0, 0, NULL, NULL ))) {
1
0
0
0
Alexandre Julliard : ntdll: Implement LdrQueryImageFileExecutionOptions and use it to retrieve the per-process global flag .
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 1c119dad6dc9a5ca029e76e23ea64057bb31d2d3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1c119dad6dc9a5ca029e76e23…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 20 17:11:03 2010 +0100 ntdll: Implement LdrQueryImageFileExecutionOptions and use it to retrieve the per-process global flag. --- dlls/ntdll/loader.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++++ dlls/ntdll/ntdll.spec | 2 +- include/winternl.h | 1 + 3 files changed, 106 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index e3d7adb..c16e0f6 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -2199,6 +2199,106 @@ NTSTATUS WINAPI LdrQueryProcessModuleInformation(PSYSTEM_MODULE_INFORMATION smi, } +static NTSTATUS query_dword_option( HANDLE hkey, LPCWSTR name, ULONG *value ) +{ + NTSTATUS status; + UNICODE_STRING str; + ULONG size; + WCHAR buffer[64]; + KEY_VALUE_PARTIAL_INFORMATION *info = (KEY_VALUE_PARTIAL_INFORMATION *)buffer; + + RtlInitUnicodeString( &str, name ); + + size = sizeof(buffer) - sizeof(WCHAR); + if ((status = NtQueryValueKey( hkey, &str, KeyValuePartialInformation, buffer, size, &size ))) + return status; + + if (info->Type != REG_DWORD) + { + buffer[size / sizeof(WCHAR)] = 0; + *value = strtoulW( (WCHAR *)info->Data, 0, 16 ); + } + else memcpy( value, info->Data, sizeof(*value) ); + return status; +} + +static NTSTATUS query_string_option( HANDLE hkey, LPCWSTR name, ULONG type, + void *data, ULONG in_size, ULONG *out_size ) +{ + NTSTATUS status; + UNICODE_STRING str; + ULONG size; + char *buffer; + KEY_VALUE_PARTIAL_INFORMATION *info; + static const int info_size = FIELD_OFFSET( KEY_VALUE_PARTIAL_INFORMATION, Data ); + + RtlInitUnicodeString( &str, name ); + + size = info_size + in_size; + if (!(buffer = RtlAllocateHeap( GetProcessHeap(), 0, size ))) return STATUS_NO_MEMORY; + info = (KEY_VALUE_PARTIAL_INFORMATION *)buffer; + status = NtQueryValueKey( hkey, &str, KeyValuePartialInformation, buffer, size, &size ); + if (!status || status == STATUS_BUFFER_OVERFLOW) + { + if (out_size) *out_size = info->DataLength; + if (data && !status) memcpy( data, info->Data, info->DataLength ); + } + RtlFreeHeap( GetProcessHeap(), 0, buffer ); + return status; +} + + +/****************************************************************** + * LdrQueryImageFileExecutionOptions (NTDLL.@) + */ +NTSTATUS WINAPI LdrQueryImageFileExecutionOptions( const UNICODE_STRING *key, LPCWSTR value, ULONG type, + void *data, ULONG in_size, ULONG *out_size ) +{ + static const WCHAR optionsW[] = {'M','a','c','h','i','n','e','\\', + 'S','o','f','t','w','a','r','e','\\', + 'M','i','c','r','o','s','o','f','t','\\', + 'W','i','n','d','o','w','s',' ','N','T','\\', + 'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\', + 'I','m','a','g','e',' ','F','i','l','e',' ', + 'E','x','e','c','u','t','i','o','n',' ','O','p','t','i','o','n','s','\\'}; + WCHAR path[MAX_PATH + sizeof(optionsW)/sizeof(WCHAR)]; + OBJECT_ATTRIBUTES attr; + UNICODE_STRING name_str; + HANDLE hkey; + NTSTATUS status; + ULONG len; + WCHAR *p; + + attr.Length = sizeof(attr); + attr.RootDirectory = 0; + attr.ObjectName = &name_str; + attr.Attributes = OBJ_CASE_INSENSITIVE; + attr.SecurityDescriptor = NULL; + attr.SecurityQualityOfService = NULL; + + if ((p = memrchrW( key->Buffer, '\\', key->Length / sizeof(WCHAR) ))) p++; + else p = key->Buffer; + len = key->Length - (p - key->Buffer) * sizeof(WCHAR); + name_str.Buffer = path; + name_str.Length = sizeof(optionsW) + len; + name_str.MaximumLength = name_str.Length; + memcpy( path, optionsW, sizeof(optionsW) ); + memcpy( path + sizeof(optionsW)/sizeof(WCHAR), p, len ); + if ((status = NtOpenKey( &hkey, KEY_QUERY_VALUE, &attr ))) return status; + + if (type == REG_DWORD) + { + if (out_size) *out_size = sizeof(ULONG); + if (in_size >= sizeof(ULONG)) status = query_dword_option( hkey, value, data ); + else status = STATUS_BUFFER_OVERFLOW; + } + else status = query_string_option( hkey, value, type, data, in_size, out_size ); + + NtClose( hkey ); + return status; +} + + /****************************************************************** * RtlDllShutdownInProgress (NTDLL.@) */ @@ -2466,6 +2566,7 @@ static void start_process( void *kernel_start ) void WINAPI LdrInitializeThunk( void *kernel_start, ULONG_PTR unknown2, ULONG_PTR unknown3, ULONG_PTR unknown4 ) { + static const WCHAR globalflagW[] = {'G','l','o','b','a','l','F','l','a','g',0}; NTSTATUS status; WINE_MODREF *wm; LPCWSTR load_path; @@ -2487,6 +2588,9 @@ void WINAPI LdrInitializeThunk( void *kernel_start, ULONG_PTR unknown2, peb->ProcessParameters->ImagePathName = wm->ldr.FullDllName; version_init( wm->ldr.FullDllName.Buffer ); + LdrQueryImageFileExecutionOptions( &peb->ProcessParameters->ImagePathName, globalflagW, + REG_DWORD, &peb->NtGlobalFlag, sizeof(peb->NtGlobalFlag), NULL ); + /* the main exe needs to be the first in the load order list */ RemoveEntryList( &wm->ldr.InLoadOrderModuleList ); InsertHeadList( &peb->LdrData->InLoadOrderModuleList, &wm->ldr.InLoadOrderModuleList ); diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 0b3ebef..67a9d13 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -73,7 +73,7 @@ @ stdcall LdrLoadDll(wstr long ptr ptr) @ stdcall LdrLockLoaderLock(long ptr ptr) @ stdcall LdrProcessRelocationBlock(ptr long ptr long) -@ stub LdrQueryImageFileExecutionOptions +@ stdcall LdrQueryImageFileExecutionOptions(ptr wstr long ptr long ptr) @ stdcall LdrQueryProcessModuleInformation(ptr long ptr) @ stub LdrSetAppCompatDllRedirectionCallback @ stub LdrSetDllManifestProber diff --git a/include/winternl.h b/include/winternl.h index 6860950..a4dd93b 100644 --- a/include/winternl.h +++ b/include/winternl.h @@ -1873,6 +1873,7 @@ NTSYSAPI void WINAPI LdrInitializeThunk(void*,ULONG_PTR,ULONG_PTR,ULONG_PTR NTSYSAPI NTSTATUS WINAPI LdrLoadDll(LPCWSTR, DWORD, const UNICODE_STRING*, HMODULE*); NTSYSAPI NTSTATUS WINAPI LdrLockLoaderLock(ULONG,ULONG*,ULONG*); IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock(void*,UINT,USHORT*,INT_PTR); +NTSYSAPI NTSTATUS WINAPI LdrQueryImageFileExecutionOptions(const UNICODE_STRING*,LPCWSTR,ULONG,void*,ULONG,ULONG*); NTSYSAPI NTSTATUS WINAPI LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION*, ULONG, ULONG*); NTSYSAPI void WINAPI LdrShutdownProcess(void); NTSYSAPI void WINAPI LdrShutdownThread(void);
1
0
0
0
Christian Costa : gdi32: Improve some FIXMEs.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 132ba27f2b5e5cd41e5d40a1e3d4667b082b6912 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=132ba27f2b5e5cd41e5d40a1e…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Wed Jan 20 09:18:59 2010 +0100 gdi32: Improve some FIXMEs. --- dlls/gdi32/freetype.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index a93cb60..a5c9933 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -2171,7 +2171,7 @@ HANDLE WineEngAddFontMemResourceEx(PVOID pbFont, DWORD cbFont, PVOID pdv, DWORD BOOL WineEngRemoveFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv) { GDI_CheckNotLock(); - FIXME(":stub\n"); + FIXME("(%s, %x, %p): stub\n", debugstr_w(file), flags, pdv); return TRUE; } @@ -6679,25 +6679,25 @@ INT WineEngGetTextFace(GdiFont *font, INT count, LPWSTR str) INT WineEngAddFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv) { - FIXME(":stub\n"); + FIXME("(%s, %x, %p): stub\n", debugstr_w(file), flags, pdv); return 1; } INT WineEngRemoveFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv) { - FIXME(":stub\n"); + FIXME("(%s, %x, %p): stub\n", debugstr_w(file), flags, pdv); return TRUE; } HANDLE WineEngAddFontMemResourceEx(PVOID pbFont, DWORD cbFont, PVOID pdv, DWORD *pcFonts) { - FIXME(":stub\n"); + FIXME("(%p, %u, %p, %p): stub\n", pbFont, cbFont, pdv, pcFonts); return NULL; } UINT WineEngGetTextCharsetInfo(GdiFont *font, LPFONTSIGNATURE fs, DWORD flags) { - FIXME(":stub\n"); + FIXME("(%p, %p, %u): stub\n", font, fs, flags); return DEFAULT_CHARSET; }
1
0
0
0
Jacek Caban : mshtml: Store document as IHTMLDocument2 interface.
by Alexandre Julliard
20 Jan '10
20 Jan '10
Module: wine Branch: master Commit: 3b20cb11c8c61f141950bc5c71cfae14a35deea0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3b20cb11c8c61f141950bc5c7…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 20 16:21:07 2010 +0100 mshtml: Store document as IHTMLDocument2 interface. --- dlls/mshtml/tests/htmldoc.c | 408 +++++++++++++++++++++---------------------- 1 files changed, 196 insertions(+), 212 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=3b20cb11c8c61f141950b…
1
0
0
0
← Newer
1
...
26
27
28
29
30
31
32
...
62
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
Results per page:
10
25
50
100
200