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
February 2011
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
674 discussions
Start a n
N
ew thread
Hans Leidekker : msi: Split up resolve_folder.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: b96e5d21c6b59413813dca1d1385ffe24b4a6f9f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b96e5d21c6b59413813dca1d1…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Feb 7 09:40:13 2011 +0100 msi: Split up resolve_folder. --- dlls/msi/action.c | 24 +++++----- dlls/msi/custom.c | 3 +- dlls/msi/files.c | 4 +- dlls/msi/format.c | 7 ++- dlls/msi/helpers.c | 125 +++++++++++++++++++++++++++++----------------------- dlls/msi/install.c | 16 +++--- dlls/msi/msipriv.h | 4 +- 7 files changed, 98 insertions(+), 85 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b96e5d21c6b59413813dc…
1
0
0
0
Yaron Shahrabani : po: Hebrew update.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: ecdb2415935379b28c6c89285ee60f56cffca9b8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ecdb2415935379b28c6c89285…
Author: Yaron Shahrabani <sh.yaron(a)gmail.com> Date: Sun Feb 6 17:00:25 2011 +0200 po: Hebrew update. --- po/he.po | 200 +++++++++++++++++++++++++++++++++++++------------------------- 1 files changed, 119 insertions(+), 81 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ecdb2415935379b28c6c8…
1
0
0
0
Jacek Caban : mshtml: Use case insensitive comparison in parse_classid.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: eb799366f5b3be1b300c26edd6c821bbeffb7661 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eb799366f5b3be1b300c26edd…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Feb 6 22:30:27 2011 +0100 mshtml: Use case insensitive comparison in parse_classid. --- dlls/mshtml/npplugin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/npplugin.c b/dlls/mshtml/npplugin.c index 01111a2..042478b 100644 --- a/dlls/mshtml/npplugin.c +++ b/dlls/mshtml/npplugin.c @@ -154,7 +154,7 @@ static BOOL parse_classid(const PRUnichar *classid, CLSID *clsid) static const PRUnichar clsidW[] = {'c','l','s','i','d',':'}; - if(strncmpW(classid, clsidW, sizeof(clsidW)/sizeof(WCHAR))) + if(strncmpiW(classid, clsidW, sizeof(clsidW)/sizeof(WCHAR))) return FALSE; ptr = classid + sizeof(clsidW)/sizeof(WCHAR);
1
0
0
0
Jacek Caban : mshtml: Added focus events tests.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: 7e38d6864e786885f2953b9d6f9f50c4d99e0ec4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7e38d6864e786885f2953b9d6…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Feb 6 22:16:14 2011 +0100 mshtml: Added focus events tests. --- dlls/mshtml/tests/events.c | 82 ++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 79 insertions(+), 3 deletions(-) diff --git a/dlls/mshtml/tests/events.c b/dlls/mshtml/tests/events.c index 4be0212..07476bc 100644 --- a/dlls/mshtml/tests/events.c +++ b/dlls/mshtml/tests/events.c @@ -70,6 +70,7 @@ DEFINE_EXPECT(iframe_onreadystatechange_interactive); DEFINE_EXPECT(iframe_onreadystatechange_complete); DEFINE_EXPECT(iframedoc_onreadystatechange); DEFINE_EXPECT(img_onload); +DEFINE_EXPECT(input_onfocus); static HWND container_hwnd = NULL; static IHTMLWindow2 *window; @@ -100,6 +101,9 @@ static const char readystate_doc_str[] = static const char img_doc_str[] = "<html><body><img id=\"imgid\"></img></body></html>"; +static const char input_doc_str[] = + "<html><body><input id=\"inputid\"></input></body></html>"; + static const char *debugstr_guid(REFIID riid) { static char buf[50]; @@ -906,6 +910,17 @@ static HRESULT WINAPI img_onload(IDispatchEx *iface, DISPID id, LCID lcid, WORD EVENT_HANDLER_FUNC_OBJ(img_onload); +static HRESULT WINAPI input_onfocus(IDispatchEx *iface, DISPID id, LCID lcid, WORD wFlags, DISPPARAMS *pdp, + VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller) +{ + CHECK_EXPECT(input_onfocus); + test_event_args(&DIID_DispHTMLInputElement, id, wFlags, pdp, pvarRes, pei, pspCaller); + test_event_src("INPUT"); + return S_OK; +} + +EVENT_HANDLER_FUNC_OBJ(input_onfocus); + static HRESULT WINAPI iframedoc_onreadystatechange(IDispatchEx *iface, DISPID id, LCID lcid, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller) { @@ -1143,9 +1158,17 @@ static IDispatchEx div_onclick_disp = { &div_onclick_dispVtbl }; static void pump_msgs(BOOL *b) { MSG msg; - while(!*b && GetMessage(&msg, NULL, 0, 0)) { - TranslateMessage(&msg); - DispatchMessage(&msg); + + if(b) { + while(!*b && GetMessageW(&msg, NULL, 0, 0)) { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + }else { + while(!b && PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) { + TranslateMessage(&msg); + DispatchMessage(&msg); + } } } @@ -1436,6 +1459,58 @@ static void test_imgload(IHTMLDocument2 *doc) IHTMLImgElement_Release(img); } +static void test_focus(IHTMLDocument2 *doc) +{ + IHTMLElement2 *elem2; + IHTMLElement *elem; + VARIANT v; + HRESULT hres; + + elem = get_elem_id(doc, "inputid"); + elem2 = get_elem2_iface((IUnknown*)elem); + IHTMLElement_Release(elem); + + V_VT(&v) = VT_EMPTY; + hres = IHTMLElement2_get_onfocus(elem2, &v); + ok(hres == S_OK, "get_onfocus failed: %08x\n", hres); + ok(V_VT(&v) == VT_NULL, "V_VT(onfocus) = %d\n", V_VT(&v)); + + V_VT(&v) = VT_DISPATCH; + V_DISPATCH(&v) = (IDispatch*)&input_onfocus_obj; + hres = IHTMLElement2_put_onfocus(elem2, v); + ok(hres == S_OK, "put_onfocus failed: %08x\n", hres); + + V_VT(&v) = VT_EMPTY; + hres = IHTMLElement2_get_onfocus(elem2, &v); + ok(hres == S_OK, "get_onfocus failed: %08x\n", hres); + ok(V_VT(&v) == VT_DISPATCH, "V_VT(onfocus) = %d\n", V_VT(&v)); + ok(V_DISPATCH(&v) == (IDispatch*)&input_onfocus_obj, "V_DISPATCH(onfocus) != onfocusFunc\n"); + VariantClear(&v); + + if(!winetest_interactive) + ShowWindow(container_hwnd, SW_SHOW); + + SetFocus(NULL); + ok(!IsChild(container_hwnd, GetFocus()), "focus belongs to document window\n"); + + hres = IHTMLWindow2_focus(window); + ok(hres == S_OK, "focus failed: %08x\n", hres); + + ok(IsChild(container_hwnd, GetFocus()), "focus does not belong to document window\n"); + pump_msgs(NULL); + + SET_EXPECT(input_onfocus); + hres = IHTMLElement2_focus(elem2); + pump_msgs(NULL); + CHECK_CALLED(input_onfocus); + ok(hres == S_OK, "focus failed: %08x\n", hres); + + if(!winetest_interactive) + ShowWindow(container_hwnd, SW_HIDE); + + IHTMLElement2_Release(elem2); +} + static void test_timeout(IHTMLDocument2 *doc) { IHTMLWindow3 *win3; @@ -2076,6 +2151,7 @@ START_TEST(events) run_test(click_doc_str, test_onclick); run_test(readystate_doc_str, test_onreadystatechange); run_test(img_doc_str, test_imgload); + run_test(input_doc_str, test_focus); DestroyWindow(container_hwnd); CoUninitialize();
1
0
0
0
Jacek Caban : mshtml: Added IHTMLWindow2::focus implementation.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: ca835d0a368feaf7ee93ccbcf4765d77a34d232c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca835d0a368feaf7ee93ccbcf…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Feb 6 22:15:57 2011 +0100 mshtml: Added IHTMLWindow2::focus implementation. --- dlls/mshtml/htmlwindow.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 3cbffea..d0d378f 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -1074,8 +1074,12 @@ static HRESULT WINAPI HTMLWindow2_get_Option(IHTMLWindow2 *iface, IHTMLOptionEle static HRESULT WINAPI HTMLWindow2_focus(IHTMLWindow2 *iface) { HTMLWindow *This = impl_from_IHTMLWindow2(iface); - FIXME("(%p)->()\n", This); - return E_NOTIMPL; + + TRACE("(%p)->()\n", This); + + if(This->doc_obj) + SetFocus(This->doc_obj->hwnd); + return S_OK; } static HRESULT WINAPI HTMLWindow2_get_closed(IHTMLWindow2 *iface, VARIANT_BOOL *p)
1
0
0
0
Austin English : ddraw: Fix unused variable warnings (LLVM/Clang).
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: 46f0538ae0f08222290c175bd7a53536c062d8b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=46f0538ae0f08222290c175bd…
Author: Austin English <austinenglish(a)gmail.com> Date: Sat Feb 5 21:03:34 2011 -0800 ddraw: Fix unused variable warnings (LLVM/Clang). --- dlls/ddraw/tests/d3d.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index 1b312b5..8d43cca 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -1294,7 +1294,6 @@ static void Direct3D1Test(void) memset(desc.lpData, 0, 128); instr = desc.lpData; - idx = 0; instr->bOpcode = D3DOP_TRIANGLE; instr->bSize = sizeof(D3DOP_TRIANGLE); @@ -3684,6 +3683,7 @@ static void BackBuffer3DCreateSurfaceTest(void) memset(&ddcaps, 0, sizeof(ddcaps)); ddcaps.dwSize = sizeof(DDCAPS); hr = IDirectDraw_GetCaps(DirectDraw1, &ddcaps, NULL); + ok(SUCCEEDED(hr), "DirectDraw_GetCaps failed: 0x%08x\n", hr); if (!(ddcaps.ddsCaps.dwCaps & DDSCAPS_VIDEOMEMORY)) { skip("DDraw reported no VIDEOMEMORY cap. Broken video driver? Skipping surface caps tests.\n");
1
0
0
0
Austin English : d3dx9_36/tests: Remove unused variable assignments (LLVM/ Clang).
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: f9facad2353cf3761a2fea9a25d3e8e4d5527457 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f9facad2353cf3761a2fea9a2…
Author: Austin English <austinenglish(a)gmail.com> Date: Sat Feb 5 20:58:47 2011 -0800 d3dx9_36/tests: Remove unused variable assignments (LLVM/Clang). --- dlls/d3dx9_36/tests/mesh.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c index 6ba7224..5e875bd 100644 --- a/dlls/d3dx9_36/tests/mesh.c +++ b/dlls/d3dx9_36/tests/mesh.c @@ -1434,7 +1434,6 @@ static BOOL compute_sphere(struct mesh *mesh, FLOAT radius, UINT slices, UINT st vertex = 0; face = 0; - stack = 0; mesh->vertices[vertex].normal.x = 0.0f; mesh->vertices[vertex].normal.y = 0.0f; @@ -1663,7 +1662,6 @@ static BOOL compute_cylinder(struct mesh *mesh, FLOAT radius1, FLOAT radius2, FL vertex = 0; face = 0; - stack = 0; delta_radius = radius1 - radius2; radius = radius1;
1
0
0
0
Austin English : avifil32/tests: Remove useless variable assignments (LLVM/ Clang).
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: 0d258b47371d9ca0b8dfd9c7d7222c4236e642f0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0d258b47371d9ca0b8dfd9c7d…
Author: Austin English <austinenglish(a)gmail.com> Date: Sat Feb 5 20:56:17 2011 -0800 avifil32/tests: Remove useless variable assignments (LLVM/Clang). --- dlls/avifil32/tests/api.c | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/dlls/avifil32/tests/api.c b/dlls/avifil32/tests/api.c index 14ad4b4..4b87806 100644 --- a/dlls/avifil32/tests/api.c +++ b/dlls/avifil32/tests/api.c @@ -232,11 +232,7 @@ static void test_EditStreamSetInfo(void) hres = CreateEditableStream(&stream, NULL); ok(hres == AVIERR_OK, "got 0x%08X, expected AVIERR_OK\n", hres); - - if(0) /* Crashing - first parameter not checked */ - hres = EditStreamSetInfo(NULL, &info, sizeof(AVISTREAMINFO) ); - - /* Size parameter is somehow checked (notice the crash with size=-1 below) */ + /* Size parameter is somehow checked (notice the crash with size=-1 below) */ hres = EditStreamSetInfo(stream, NULL, 0); ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres); @@ -244,11 +240,14 @@ static void test_EditStreamSetInfo(void) ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres); if(0) - { /* Crashing - second parameter not checked */ - hres = EditStreamSetInfo(stream, NULL, sizeof(AVISTREAMINFO) ); + { + /* Crashing - first parameter not checked */ + EditStreamSetInfo(NULL, &info, sizeof(AVISTREAMINFO) ); + + /* Crashing - second parameter not checked */ + EditStreamSetInfo(stream, NULL, sizeof(AVISTREAMINFO) ); - hres = EditStreamSetInfo(stream, NULL, -1); - ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres); + EditStreamSetInfo(stream, NULL, -1); } hres = AVIStreamInfo(stream, &info, sizeof(AVISTREAMINFO) );
1
0
0
0
Vincent Povirk : gdiplus: Fix error path in GdipAddPathRectangle.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: 4fd76b09958397477cea1c5c279f53bcd129752f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4fd76b09958397477cea1c5c2…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Sat Feb 5 14:22:11 2011 -0600 gdiplus: Fix error path in GdipAddPathRectangle. --- dlls/gdiplus/graphicspath.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index c9d67b1..5a68147 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -1536,9 +1536,10 @@ GpStatus WINGDIPAPI GdipAddPathRectangle(GpPath *path, REAL x, REAL y, fail: /* reverting */ - GdipDeletePath(path); - GdipClonePath(backup, &path); - GdipDeletePath(backup); + GdipFree(path->pathdata.Points); + GdipFree(path->pathdata.Types); + memcpy(path, backup, sizeof(*path)); + GdipFree(backup); return retstat; } @@ -1581,9 +1582,10 @@ GpStatus WINGDIPAPI GdipAddPathRectangles(GpPath *path, GDIPCONST GpRectF *rects fail: /* reverting */ - GdipDeletePath(path); - GdipClonePath(backup, &path); - GdipDeletePath(backup); + GdipFree(path->pathdata.Points); + GdipFree(path->pathdata.Types); + memcpy(path, backup, sizeof(*path)); + GdipFree(backup); return retstat; }
1
0
0
0
Vincent Povirk : gdiplus: Allow adding rectangles with negative sizes to paths.
by Alexandre Julliard
07 Feb '11
07 Feb '11
Module: wine Branch: master Commit: cd3855f384cc2e9f8095274f1f69b504043cb414 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cd3855f384cc2e9f8095274f1…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Sat Feb 5 14:11:50 2011 -0600 gdiplus: Allow adding rectangles with negative sizes to paths. --- dlls/gdiplus/graphicspath.c | 2 +- dlls/gdiplus/tests/graphicspath.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 983ead9..c9d67b1 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -1507,7 +1507,7 @@ GpStatus WINGDIPAPI GdipAddPathRectangle(GpPath *path, REAL x, REAL y, TRACE("(%p, %.2f, %.2f, %.2f, %.2f)\n", path, x, y, width, height); - if(!path || width < 0.0 || height < 0.0) + if(!path) return InvalidParameter; /* make a backup copy of path data */ diff --git a/dlls/gdiplus/tests/graphicspath.c b/dlls/gdiplus/tests/graphicspath.c index 2343e9c..9a42153 100644 --- a/dlls/gdiplus/tests/graphicspath.c +++ b/dlls/gdiplus/tests/graphicspath.c @@ -1106,6 +1106,34 @@ static void test_isvisible(void) ReleaseDC(0, hdc); } +static void test_empty_rect(void) +{ + GpPath *path; + GpStatus status; + BOOL result; + + status = GdipCreatePath(FillModeAlternate, &path); + expect(Ok, status); + + status = GdipAddPathRectangle(path, 0.0, 0.0, -5.0, 5.0); + expect(Ok, status); + + status = GdipIsVisiblePathPoint(path, -2.0, 2.0, NULL, &result); + expect(Ok, status); + expect(FALSE, status); + + status = GdipAddPathRectangle(path, 0.0, 0.0, 5.0, -5.0); + expect(Ok, status); + + status = GdipAddPathRectangle(path, 0.0, 0.0, 0.0, 5.0); + expect(Ok, status); + + status = GdipAddPathRectangle(path, 0.0, 0.0, 5.0, 0.0); + expect(Ok, status); + + GdipDeletePath(path); +} + START_TEST(graphicspath) { struct GdiplusStartupInput gdiplusStartupInput; @@ -1135,6 +1163,7 @@ START_TEST(graphicspath) test_addpie(); test_flatten(); test_isvisible(); + test_empty_rect(); GdiplusShutdown(gdiplusToken); }
1
0
0
0
← Newer
1
...
50
51
52
53
54
55
56
...
68
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
Results per page:
10
25
50
100
200