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 2007
----- 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
839 discussions
Start a n
N
ew thread
Stefan Dösinger : wined3d: Move lights to the state table.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: 174b6321eba9633419737a189019f66d5d34a2fa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=174b6321eba9633419737a189…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Feb 14 17:48:52 2007 +0100 wined3d: Move lights to the state table. --- dlls/wined3d/device.c | 110 +------------------------------------- dlls/wined3d/state.c | 113 ++++++++++++++++++++++++++++++++++++++++ dlls/wined3d/wined3d_private.h | 5 ++- 3 files changed, 120 insertions(+), 108 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=174b6321eba9633419737…
1
0
0
0
Stefan Dösinger : wined3d: Replace the light chain with a hashmap.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: acadf3f241be9270799d4dd1007303200d047fc3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=acadf3f241be9270799d4dd10…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Feb 14 17:46:54 2007 +0100 wined3d: Replace the light chain with a hashmap. --- dlls/wined3d/device.c | 360 +++++++++++---------------------------- dlls/wined3d/state.c | 12 +- dlls/wined3d/stateblock.c | 139 +++++++++++----- dlls/wined3d/wined3d_private.h | 11 +- 4 files changed, 210 insertions(+), 312 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=acadf3f241be9270799d4…
1
0
0
0
Alexandre Julliard : winex11.drv: Added a check for the ATI driver corrupting %fs.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: 5fce682f41e43539a1c1cdae18990ccb959a8fd4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5fce682f41e43539a1c1cdae1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Feb 14 18:18:07 2007 +0100 winex11.drv: Added a check for the ATI driver corrupting %fs. Based on a patch by Lei Zhang. --- dlls/winex11.drv/opengl.c | 10 +++++++++- include/wine/library.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index ac0c8ba..dbbd972 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -292,8 +292,17 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void) template.visualid = XVisualIDFromVisual(visual); vis = XGetVisualInfo(gdi_display, VisualIDMask, &template, &num); if (vis) { + WORD old_fs = wine_get_fs(); /* Create a GLX Context. Without one we can't query GL information */ ctx = pglXCreateContext(gdi_display, vis, None, GL_TRUE); + if (wine_get_fs() != old_fs) + { + wine_set_fs( old_fs ); + wine_tsx11_unlock(); + ERR( "%%fs register corrupted, probably broken ATI driver, disabling OpenGL.\n" ); + ERR( "You need to set the \"UseFastTls\" option to \"2\" in your X config file.\n" ); + return FALSE; + } } if (ctx) { @@ -411,7 +420,6 @@ LOAD_FUNCPTR(glXFreeMemoryNV) #undef LOAD_FUNCPTR if(!X11DRV_WineGL_InitOpenglInfo()) { - ERR("Intialization of OpenGL info failed, disabling OpenGL!\n"); wine_dlclose(opengl_handle, NULL, 0); opengl_handle = NULL; return FALSE; diff --git a/include/wine/library.h b/include/wine/library.h index cbaa026..a1845cd 100644 --- a/include/wine/library.h +++ b/include/wine/library.h @@ -177,7 +177,7 @@ inline static int wine_ldt_is_empty( const LDT_ENTRY *ent ) # define __DEFINE_GET_SEG(seg) \ extern inline unsigned short wine_get_##seg(void); \ extern inline unsigned short wine_get_##seg(void) \ - { unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; } + { unsigned short res; __asm__ __volatile__("movw %%" #seg ",%w0" : "=r"(res)); return res; } # define __DEFINE_SET_SEG(seg) \ extern inline void wine_set_##seg(int val); \ extern inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
1
0
0
0
Alexandre Julliard : shell32: Don't wrap SHELL_ConfirmIDs in an assert. Fixed return value.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: 9d2d5eae2d823470dacb013122776a94ff34a70c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9d2d5eae2d823470dacb01312…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Feb 14 14:43:50 2007 +0100 shell32: Don't wrap SHELL_ConfirmIDs in an assert. Fixed return value. --- dlls/shell32/shlfileop.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 07f19e0..5410c97 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c @@ -282,9 +282,9 @@ static BOOL SHELL_ConfirmDialogW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir, FI assert(nKindOfDialog >= 0 && nKindOfDialog < 32); if (op && (op->dwYesToAllMask & (1 << nKindOfDialog))) - return IDYES; + return TRUE; - assert(SHELL_ConfirmIDs(nKindOfDialog, &ids)); + if (!SHELL_ConfirmIDs(nKindOfDialog, &ids)) return FALSE; LoadStringW(shell32_hInstance, ids.caption_resource_id, szCaption, sizeof(szCaption)/sizeof(WCHAR)); LoadStringW(shell32_hInstance, ids.text_resource_id, szText, sizeof(szText)/sizeof(WCHAR));
1
0
0
0
Alexandre Julliard : d3d8: Avoid a size_t printf format warning.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: a43cb2807a2ff5198e5051e06c44498b3510db7a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a43cb2807a2ff5198e5051e06…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Feb 14 14:43:14 2007 +0100 d3d8: Avoid a size_t printf format warning. --- dlls/d3d8/vertexdeclaration.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/d3d8/vertexdeclaration.c b/dlls/d3d8/vertexdeclaration.c index 52774ad..afe9ff1 100644 --- a/dlls/d3d8/vertexdeclaration.c +++ b/dlls/d3d8/vertexdeclaration.c @@ -276,7 +276,7 @@ size_t convert_to_wined3d_declaration(const DWORD *d3d8_elements, WINED3DVERTEXE const DWORD *token = d3d8_elements; WINED3DVERTEXELEMENT *element; D3DVSD_TOKENTYPE token_type; - size_t element_count = 0; + unsigned int element_count = 0; DWORD stream = 0; int offset = 0;
1
0
0
0
Shanren Zhou : comctl32: Add header tests.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: 613998d4f6ff953a22a4455a28f77d2126642c7d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=613998d4f6ff953a22a4455a2…
Author: Shanren Zhou <shanren(a)ucla.edu> Date: Mon Feb 12 19:53:51 2007 -0800 comctl32: Add header tests. --- dlls/comctl32/tests/header.c | 235 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 234 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c index 0755f46..87e0bf5 100644 --- a/dlls/comctl32/tests/header.c +++ b/dlls/comctl32/tests/header.c @@ -1,6 +1,7 @@ /* Unit test suite for header control. * - * Copyright 2005 Vijay Kiran Kamuju + * Copyright 2005 Vijay Kiran Kamuju + * Copyright 2007 Shanren Zhou * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -50,6 +51,8 @@ static HWND hWndHeader; #define compare(val, exp, fmt) ok((val) == (exp), #val " value: " fmt ", expected: " fmt "\n", (val), (exp)) +#define expect(expected, got) ok(expected == got, "expected %d, got %d\n", expected,got) + static void expect_notify(INT iCode, BOOL fUnicode, HDITEMA *lpItem) { assert(nExpectedNotify < 10); @@ -494,6 +497,235 @@ static void test_header_control (void) DestroyWindow(hWndHeader); } +static void test_hdm_getitemrect(void) +{ + /* Afer the setorderarray is called, item with index 0 becomes + * the 2nd item and item with index 1 becomes 1st item + */ + RECT rect; + int retVal; + retVal = SendMessage(hWndHeader, HDM_GETITEMRECT, 0, (LPARAM) &rect); + ok(retVal == TRUE, "Getting item rect should TRUE, got %d\n", retVal); + /* check bounding rectangle information */ + expect(80, rect.left); + expect(0, rect.top); + expect(160, rect.right); + expect(18, rect.bottom); + + retVal = SendMessage(hWndHeader, HDM_GETITEMRECT, 1, (LPARAM) &rect); + ok(retVal == TRUE, "Getting item rect should TRUE, got %d\n", retVal); + /* check bounding rectangle information */ + expect(0, rect.left); + expect(0, rect.top); + expect(80, rect.right); + expect(18, rect.bottom); + retVal = SendMessage(hWndHeader, HDM_GETITEMRECT, 10, (LPARAM) &rect); + ok(retVal == 0, "Getting rect of non-existing item should return 0, got %d\n", retVal); +} + +static void test_hdm_layout (void) +{ + int retVal; + RECT rect; + HDLAYOUT hdLayout; + WINDOWPOS windowPos; + hdLayout.prc = ▭ + hdLayout.pwpos = &windowPos; + retVal = SendMessage(hWndHeader, HDM_LAYOUT, 0, (LPARAM) &hdLayout); + expect(TRUE, retVal); +} + +static void test_hdm_ordertoindex (void) +{ + int retVal; + retVal = SendMessage(hWndHeader, HDM_ORDERTOINDEX, 1, 0); + expect(0, retVal); +} + +static void test_hdm_hittest (void) +{ + int retVal; + POINT pt; + HDHITTESTINFO hdHitTestInfo; + const int firstItemMaxRight = 80; + const int secondItemMaxRight = 160; + const int maxBottom = 18; + /* Afer the setorderarray is called, item with index 0 becomes + * the 2nd item and item with index 1 becomes 1st item + */ + pt.x = firstItemMaxRight - 1; + pt.y = maxBottom - 1; + hdHitTestInfo.pt = pt; + retVal = SendMessage(hWndHeader, HDM_HITTEST, 0, (LPARAM) &hdHitTestInfo); + expect(1, retVal); + expect(1, hdHitTestInfo.iItem); + + pt.x = secondItemMaxRight - 1; + pt.y = maxBottom - 1; + hdHitTestInfo.pt = pt; + retVal = SendMessage(hWndHeader, HDM_HITTEST, 0, (LPARAM) &hdHitTestInfo); + expect(0, retVal); + expect(0, hdHitTestInfo.iItem); + + pt.x = secondItemMaxRight; + pt.y = maxBottom + 1; + hdHitTestInfo.pt = pt; + todo_wine + { + retVal = SendMessage(hWndHeader, HDM_HITTEST, 0, (LPARAM) &hdHitTestInfo); + expect(-1, retVal); + } +} + +static void test_hdm_sethotdivider (void) +{ + int retVal; + /* low word: x coordinate = 5 + * high word: y coordinate = 5 + */ + todo_wine + { + retVal = SendMessage(hWndHeader, HDM_SETHOTDIVIDER, TRUE, (LPARAM) 0X00050005); + expect(0, retVal); + } + retVal = SendMessage(hWndHeader, HDM_SETHOTDIVIDER, FALSE, 100); + expect(100, retVal); + retVal = SendMessage(hWndHeader, HDM_SETHOTDIVIDER, FALSE, 1); + expect(1, retVal); +} + +static void test_hdm_imageMessages (void) +{ + HIMAGELIST hImageList; + HIMAGELIST hImageListRetVal; + hImageListRetVal = (HIMAGELIST) SendMessage(hWndHeader, HDM_SETIMAGELIST, 0, (LPARAM) &hImageList); + ok(hImageListRetVal == NULL, "Expected NULL, got %d\n", (int) hImageListRetVal); + hImageListRetVal = (HIMAGELIST) SendMessage(hWndHeader, HDM_GETIMAGELIST, 0, 0); + ok(hImageListRetVal != NULL, "Expected non-NULL handle, got %d\n", (int) hImageListRetVal); + hImageListRetVal = (HIMAGELIST) SendMessage(hWndHeader, HDM_CREATEDRAGIMAGE, 0, 0); + ok(hImageListRetVal != NULL, "Expected non-NULL handle, got %d\n", (int) hImageListRetVal); +} + +static void test_hdm_filterMessages (void) +{ + int retVal; + todo_wine + { + /* msdn incorrecly states that return value + * is the index of the filter control being + * modified. The sendMessage here should + * return previous filter timeout value + */ + retVal = SendMessage(hWndHeader, HDM_SETFILTERCHANGETIMEOUT, 1, 100); + expect(1000, retVal); + retVal = SendMessage(hWndHeader, HDM_CLEARFILTER, 0, 1); + expect(1, retVal); + retVal = SendMessage(hWndHeader, HDM_EDITFILTER, 1, 0); + expect(1, retVal); + } +} + +static void test_hdm_unicodeformatMessages (void) +{ + int retVal; + retVal = SendMessage(hWndHeader, HDM_SETUNICODEFORMAT, TRUE, 0); + expect(0, retVal); + retVal = SendMessage(hWndHeader, HDM_GETUNICODEFORMAT, 0, 0); + expect(1, retVal); +} + +static void test_hdm_bitmapmarginMessages (void) +{ + int retVal; + retVal = SendMessage(hWndHeader, HDM_GETBITMAPMARGIN, 0, 0); + expect(6, retVal); +} + +static void test_hdm_index_messages (void) +{ + int retVal; + int loopcnt; + int strcmpResult; + int iSize; + static const int lpiarray[2] = {1, 0}; + static int lpiarrayReceived[2]; + static char firstHeaderItem[] = "Name"; + static char secondHeaderItem[] = "Size"; + static char thirdHeaderItem[] = "Type"; + static char fourthHeaderItem[] = "Data Modified"; + static char *items[] = {firstHeaderItem, secondHeaderItem, thirdHeaderItem, fourthHeaderItem}; + HDITEM hdItem; + hdItem.mask = HDI_TEXT | HDI_WIDTH | HDI_FORMAT; + hdItem.fmt = HDF_LEFT; + hdItem.cxy = 80; + hdItem.cchTextMax = 260; + hWndHeader = create_header_control(); + for ( loopcnt = 0 ; loopcnt < 4 ; loopcnt++ ) + { + hdItem.pszText = items[loopcnt]; + retVal = SendMessage(hWndHeader, HDM_INSERTITEM, loopcnt, (LPARAM) &hdItem); + ok(retVal == loopcnt, "Adding item %d failed with return value %d\n", ( loopcnt + 1 ), retVal); + } + + retVal = SendMessage(hWndHeader, HDM_DELETEITEM, 3, (LPARAM) &hdItem); + ok(retVal == TRUE, "Deleting item 3 should return TRUE, got %d\n", retVal); + retVal = SendMessage(hWndHeader, HDM_GETITEMCOUNT, 0, (LPARAM) &hdItem); + ok(retVal == 3, "Getting item count should return 3, got %d\n", retVal); + + retVal = SendMessage(hWndHeader, HDM_DELETEITEM, 3, (LPARAM) &hdItem); + ok(retVal == FALSE, "Deleting already-deleted item should return FALSE, got %d\n", retVal); + retVal = SendMessage(hWndHeader, HDM_GETITEMCOUNT, 0, (LPARAM) &hdItem); + ok(retVal == 3, "Getting item count should return 3, got %d\n", retVal); + + retVal = SendMessage(hWndHeader, HDM_DELETEITEM, 2, (LPARAM) &hdItem); + ok(retVal == TRUE, "Deleting item 2 should return TRUE, got %d\n", retVal); + retVal = SendMessage(hWndHeader, HDM_GETITEMCOUNT, 0, (LPARAM) &hdItem); + ok(retVal == 2, "Getting item count should return 2, got %d\n", retVal); + + retVal = SendMessage(hWndHeader, HDM_GETITEM, 3, (LPARAM) &hdItem); + ok(retVal == FALSE, "Getting already-deleted item should return FALSE, got %d\n", retVal); + + retVal = SendMessage(hWndHeader, HDM_GETITEM, 0, (LPARAM) &hdItem); + ok(retVal == TRUE, "Getting the 1st header item should return TRUE, got %d\n", retVal); + /* check if the item is the right one */ + strcmpResult = strcmp(hdItem.pszText, firstHeaderItem); + expect(0, strcmpResult); + expect(80, hdItem.cxy); + + iSize = SendMessage(hWndHeader, HDM_GETITEMCOUNT, 0, (LPARAM) &hdItem); + retVal = SendMessage(hWndHeader, HDM_SETORDERARRAY, (WPARAM) iSize , (LPARAM) (LPINT) lpiarray ); + ok(retVal == TRUE, "Setting header items order should return TRUE, got %d\n", retVal); + retVal = SendMessage(hWndHeader, HDM_GETORDERARRAY, (WPARAM) iSize, (LPARAM) (LPINT) lpiarrayReceived ); + ok(retVal == TRUE, "Getting header items order should return TRUE, got %d\n", retVal); + /* check if the array order is set correctly and the size of the array is corret. */ + expect(2, iSize); + expect(lpiarray[0], lpiarrayReceived[0]); + expect(lpiarray[1], lpiarrayReceived[1]); + + hdItem.mask = HDI_FORMAT; + hdItem.fmt = HDF_CENTER | HDF_STRING; + retVal = SendMessage(hWndHeader, HDM_SETITEM, 0, (LPARAM) &hdItem); + ok(retVal == TRUE, "Aligning 1st header item to center should return TRUE, got %d\n", retVal); + hdItem.fmt = HDF_RIGHT | HDF_STRING; + retVal = SendMessage(hWndHeader, HDM_SETITEM, 1, (LPARAM) &hdItem); + ok(retVal == TRUE, "Aligning 2nd header item to right should return TRUE, got %d\n", retVal); +} + +static void test_header_messages (void) +{ + + test_hdm_index_messages(); + test_hdm_getitemrect(); + test_hdm_hittest(); + test_hdm_layout(); + test_hdm_ordertoindex(); + test_hdm_sethotdivider(); + + test_hdm_imageMessages(); + test_hdm_filterMessages(); + test_hdm_unicodeformatMessages(); + test_hdm_bitmapmarginMessages(); +} #define TEST_NMCUSTOMDRAW(draw_stage, item_spec, lparam, _left, _top, _right, _bottom) \ ok(nm->dwDrawStage == draw_stage, "Invalid dwDrawStage %d vs %d\n", draw_stage, nm->dwDrawStage); \ @@ -832,6 +1064,7 @@ START_TEST(header) test_header_control(); test_header_order(); test_customdraw(); + test_header_messages(); DestroyWindow(hHeaderParentWnd); }
1
0
0
0
Jacek Caban : mshtml: Make load_gecko thread safe.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: bdf2bf93a8b723c5ef24cd661c5ede0231580b56 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bdf2bf93a8b723c5ef24cd661…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Feb 13 18:06:25 2007 +0100 mshtml: Make load_gecko thread safe. --- dlls/mshtml/install.c | 4 ++- dlls/mshtml/mshtml_private.h | 2 +- dlls/mshtml/nsembed.c | 62 +++++++++++++++++++++++++++++------------ 3 files changed, 48 insertions(+), 20 deletions(-) diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c index ddc3edc..07f83e7 100644 --- a/dlls/mshtml/install.c +++ b/dlls/mshtml/install.c @@ -358,7 +358,7 @@ static INT_PTR CALLBACK installer_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARA return FALSE; } -void install_wine_gecko(void) +BOOL install_wine_gecko(void) { HANDLE hsem; @@ -374,4 +374,6 @@ void install_wine_gecko(void) ReleaseSemaphore(hsem, 1, NULL); CloseHandle(hsem); + + return TRUE; } diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index ca5527b..7038c70 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -370,7 +370,7 @@ HRESULT HTMLElement_QI(HTMLElement*,REFIID,void**); HTMLDOMNode *get_node(HTMLDocument*,nsIDOMNode*); void release_nodes(HTMLDocument*); -void install_wine_gecko(void); +BOOL install_wine_gecko(void); /* editor */ void handle_edit_event(HTMLDocument*,nsIDOMEvent*); diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 31e9551..2cf4d88 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -321,30 +321,13 @@ static void set_profile(void) nsIProfile_Release(profile); } -static BOOL load_gecko(void) +static BOOL init_xpcom(PRUnichar *gre_path) { nsresult nsres; nsIObserver *pStartNotif; nsIComponentRegistrar *registrar = NULL; nsAString path; nsIFile *gre_dir; - PRUnichar gre_path[MAX_PATH]; - - static BOOL tried_load = FALSE; - - TRACE("()\n"); - - if(tried_load) - return pCompMgr != NULL; - tried_load = TRUE; - - if(!load_wine_gecko(gre_path) && !load_mozctl(gre_path) && !load_mozilla(gre_path)) { - install_wine_gecko(); - if(!load_wine_gecko(gre_path)) { - MESSAGE("Could not load Mozilla. HTML rendering will be disabled.\n"); - return FALSE; - } - } nsAString_Init(&path, gre_path); nsres = NS_NewLocalFile(&path, FALSE, &gre_dir); @@ -408,6 +391,49 @@ static BOOL load_gecko(void) return TRUE; } +static CRITICAL_SECTION cs_load_gecko; +static CRITICAL_SECTION_DEBUG cs_load_gecko_dbg = +{ + 0, 0, &cs_load_gecko, + { &cs_load_gecko_dbg.ProcessLocksList, &cs_load_gecko_dbg.ProcessLocksList }, + 0, 0, { (DWORD_PTR)(__FILE__ ": load_gecko") } +}; +static CRITICAL_SECTION cs_load_gecko = { &cs_load_gecko_dbg, -1, 0, 0, 0, 0 }; + +static BOOL load_gecko(void) +{ + PRUnichar gre_path[MAX_PATH]; + BOOL ret = FALSE; + + static LONG loading_thread; + + TRACE("()\n"); + + /* load_gecko may be called recursively */ + if(loading_thread == GetCurrentThreadId()) + return pCompMgr != NULL; + + EnterCriticalSection(&cs_load_gecko); + + if(!loading_thread) { + loading_thread = GetCurrentThreadId(); + + if(load_wine_gecko(gre_path) + || load_mozctl(gre_path) + || load_mozilla(gre_path) + || (install_wine_gecko() && load_wine_gecko(gre_path))) + ret = init_xpcom(gre_path); + else + MESSAGE("Could not load Mozilla. HTML rendering will be disabled.\n"); + }else { + ret = pCompMgr != NULL; + } + + LeaveCriticalSection(&cs_load_gecko); + + return ret; +} + void *nsalloc(size_t size) { return nsIMemory_Alloc(nsmem, size);
1
0
0
0
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : shell32: Updated Korean resource.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: 92f675749f6497d1d978307b50092c1567494999 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=92f675749f6497d1d978307b5…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Tue Feb 13 09:37:05 2007 +0900 shell32: Updated Korean resource. --- dlls/shell32/shell32_Ko.rc | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/shell32/shell32_Ko.rc b/dlls/shell32/shell32_Ko.rc index bb00f83..446ae69 100644 --- a/dlls/shell32/shell32_Ko.rc +++ b/dlls/shell32/shell32_Ko.rc @@ -1,6 +1,6 @@ /* * Copyright 1998 Juergen Schmied - * Copyright 2006 YunSong Hwang + * Copyright 2006, 2007 YunSong Hwang * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -175,13 +175,13 @@ IDS_TRASHMULTIPLE_TEXT "����� '%1' ����(��) ���������� �����⸦ �ٶ��ϱ�?" IDS_CANTTRASH_TEXT "The item '%1' can't be sent to Trash. Do you want to delete it instead?" IDS_OVERWRITEFILE_TEXT "This folder already contains a file called '%1'.\n\nDo you want to replace it?" IDS_OVERWRITEFILE_CAPTION "���� ����� Ȯ��" -IDS_OVERWRITEFOLDER_TEXT "This folder already contains a folder named '%1'.\n\n"\ - "If the files in the destination folder have the same names as files in the\n"\ - "selected folder they will be replaced. Do you still want to move or copy\n"\ - "the folder?" +IDS_OVERWRITEFOLDER_TEXT " �� ������ �̹� '%1'�̶� �̸��� ���� ������ �����ϰ� �ֽ��ϴ�.\n\n"\ + "���� ����� ���� �̸����� ��� ������ �����Ѵٸ� ���õ� ������ ��ü�� ���Դϴ�\n"\ + " ��ü�� ���Դϴ�. ��� �� ������ �̵���Ű�ų� �����ϰڽ��ϱ�?" + /* message box strings */ -IDS_RESTART_TITLE "�ٽ� ����" +IDS_RESTART_TITLE "�ٽ� ����" IDS_RESTART_PROMPT "����� �������� ������� �����ϰڽ��ϱ�?" IDS_SHUTDOWN_TITLE "����" IDS_SHUTDOWN_PROMPT "����� Wine ������ ���ڽ��ϱ�?"
1
0
0
0
Andrew Talbot : version: Constify a formal parameter of VerQueryValue{A|W}( ).
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: 908903b7f105c62061d62959fd8d8c866095dcdc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=908903b7f105c62061d62959f…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue Feb 13 16:46:56 2007 +0000 version: Constify a formal parameter of VerQueryValue{A|W}(). --- dlls/version/info.c | 4 ++-- include/winver.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/version/info.c b/dlls/version/info.c index 92553ea..84a7eed 100644 --- a/dlls/version/info.c +++ b/dlls/version/info.c @@ -752,7 +752,7 @@ static BOOL WINAPI VersionInfo32_QueryValue( VS_VERSION_INFO_STRUCT32 *info, LPC /*********************************************************************** * VerQueryValueA [VERSION.@] */ -BOOL WINAPI VerQueryValueA( LPVOID pBlock, LPSTR lpSubBlock, +BOOL WINAPI VerQueryValueA( LPVOID pBlock, LPCSTR lpSubBlock, LPVOID *lplpBuffer, UINT *puLen ) { static const char rootA[] = "\\"; @@ -799,7 +799,7 @@ BOOL WINAPI VerQueryValueA( LPVOID pBlock, LPSTR lpSubBlock, /*********************************************************************** * VerQueryValueW [VERSION.@] */ -BOOL WINAPI VerQueryValueW( LPVOID pBlock, LPWSTR lpSubBlock, +BOOL WINAPI VerQueryValueW( LPVOID pBlock, LPCWSTR lpSubBlock, LPVOID *lplpBuffer, UINT *puLen ) { static const WCHAR rootW[] = { '\\', 0 }; diff --git a/include/winver.h b/include/winver.h index 6c1217e..ff4233a 100644 --- a/include/winver.h +++ b/include/winver.h @@ -159,8 +159,8 @@ DWORD WINAPI VerInstallFileW(UINT,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWST DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT); DWORD WINAPI VerLanguageNameW(UINT,LPWSTR,UINT); #define VerLanguageName WINELIB_NAME_AW(VerLanguageName) -BOOL WINAPI VerQueryValueA(LPVOID,LPSTR,LPVOID*,UINT*); -BOOL WINAPI VerQueryValueW(LPVOID,LPWSTR,LPVOID*,UINT*); +BOOL WINAPI VerQueryValueA(LPVOID,LPCSTR,LPVOID*,UINT*); +BOOL WINAPI VerQueryValueW(LPVOID,LPCWSTR,LPVOID*,UINT*); #define VerQueryValue WINELIB_NAME_AW(VerQueryValue) DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR,LPDWORD); DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR,LPDWORD);
1
0
0
0
Mike McCormack : msi: Find pending custom actions by GUID.
by Alexandre Julliard
14 Feb '07
14 Feb '07
Module: wine Branch: master Commit: d50c62884a4bbd5835f0ab9aaaa1598fa13cf022 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d50c62884a4bbd5835f0ab9aa…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Feb 13 22:48:05 2007 +0900 msi: Find pending custom actions by GUID. --- dlls/msi/custom.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++----- dlls/msi/msipriv.h | 1 - dlls/msi/package.c | 1 - 3 files changed, 74 insertions(+), 11 deletions(-) diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c index 4fc1ea9..ba5c825 100644 --- a/dlls/msi/custom.c +++ b/dlls/msi/custom.c @@ -61,12 +61,24 @@ static UINT HANDLE_CustomType34(MSIPACKAGE *package, LPCWSTR source, typedef UINT (WINAPI *MsiCustomActionEntryPoint)( MSIHANDLE ); +static CRITICAL_SECTION msi_custom_action_cs; +static CRITICAL_SECTION_DEBUG msi_custom_action_cs_debug = +{ + 0, 0, &msi_custom_action_cs, + { &msi_custom_action_cs_debug.ProcessLocksList, + &msi_custom_action_cs_debug.ProcessLocksList }, + 0, 0, { (DWORD_PTR)(__FILE__ ": msi_custom_action_cs") } +}; +static CRITICAL_SECTION msi_custom_action_cs = { &msi_custom_action_cs_debug, -1, 0, 0, 0, 0 }; + +static struct list msi_pending_custom_actions = LIST_INIT( msi_pending_custom_actions ); + static BOOL check_execution_scheduling_options(MSIPACKAGE *package, LPCWSTR action, UINT options) { if (!package->script) return TRUE; - if ((options & msidbCustomActionTypeClientRepeat) == + if ((options & msidbCustomActionTypeClientRepeat) == msidbCustomActionTypeClientRepeat) { if (!(package->script->InWhatSequence & SEQUENCE_UI && @@ -405,11 +417,14 @@ typedef struct _msi_custom_action_info { HANDLE handle; LPWSTR action; INT type; + GUID guid; } msi_custom_action_info; static void free_custom_action_data( msi_custom_action_info *info ) { + EnterCriticalSection( &msi_custom_action_cs ); list_remove( &info->entry ); + LeaveCriticalSection( &msi_custom_action_cs ); if (info->handle) CloseHandle( info->handle ); msi_free( info->action ); @@ -445,15 +460,46 @@ static UINT wait_thread_handle( msi_custom_action_info *info ) return rc; } +static msi_custom_action_info *find_action_by_guid( const LPGUID guid ) +{ + msi_custom_action_info *info; + BOOL found = FALSE; + + EnterCriticalSection( &msi_custom_action_cs ); + + LIST_FOR_EACH_ENTRY( info, &msi_pending_custom_actions, msi_custom_action_info, entry ) + { + if (IsEqualGUID( &info->guid, guid )) + { + found = TRUE; + break; + } + } + + LeaveCriticalSection( &msi_custom_action_cs ); + + if (!found) + return NULL; + + return info; +} -static DWORD WINAPI ACTION_CallDllFunction( msi_custom_action_info *info ) +static DWORD WINAPI ACTION_CallDllFunction( const LPGUID guid ) { + msi_custom_action_info *info; MsiCustomActionEntryPoint fn; MSIHANDLE hPackage; HANDLE hModule; LPSTR proc; UINT r = ERROR_FUNCTION_FAILED; + info = find_action_by_guid( guid ); + if (!info) + { + ERR("failed to find action %s\n", debugstr_guid( guid) ); + return r; + } + TRACE("%s %s\n", debugstr_w( info->dllname ), debugstr_w( info->function ) ); hModule = LoadLibraryW( info->dllname ); @@ -488,12 +534,12 @@ static DWORD WINAPI ACTION_CallDllFunction( msi_custom_action_info *info ) static DWORD WINAPI DllThread( LPVOID arg ) { - msi_custom_action_info *info = arg; + LPGUID guid = arg; DWORD rc = 0; TRACE("custom action (%x) started\n", GetCurrentThreadId() ); - rc = ACTION_CallDllFunction( info ); + rc = ACTION_CallDllFunction( guid ); TRACE("custom action (%x) returned %i\n", GetCurrentThreadId(), rc ); @@ -516,9 +562,13 @@ static msi_custom_action_info *do_msidbCustomActionTypeDll( info->function = strdupW( function ); info->dllname = strdupW( dllname ); info->action = strdupW( action ); - list_add_tail( &package->pending_custom_actions, &info->entry ); + CoCreateGuid( &info->guid ); + + EnterCriticalSection( &msi_custom_action_cs ); + list_add_tail( &msi_pending_custom_actions, &info->entry ); + LeaveCriticalSection( &msi_custom_action_cs ); - info->handle = CreateThread( NULL, 0, DllThread, info, 0, NULL ); + info->handle = CreateThread( NULL, 0, DllThread, &info->guid, 0, NULL ); if (!info->handle) { free_custom_action_data( info ); @@ -823,12 +873,27 @@ void ACTION_FinishCustomActions(MSIPACKAGE* package) msi_free( action ); } - while ((item = list_head( &package->pending_custom_actions ))) + while (1) { + HANDLE handle; msi_custom_action_info *info; + EnterCriticalSection( &msi_custom_action_cs ); + item = list_head( &msi_pending_custom_actions ); info = LIST_ENTRY( item, msi_custom_action_info, entry ); - msi_dialog_check_messages( info->handle ); - free_custom_action_data( info ); + + if (item && info->package == package ) + { + handle = info->handle; + free_custom_action_data( info ); + } + else + handle = NULL; + LeaveCriticalSection( &msi_custom_action_cs ); + + if (!item) + break; + + msi_dialog_check_messages( handle ); } } diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 09a3e55..b01bb27 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -230,7 +230,6 @@ typedef struct tagMSIPACKAGE struct tagMSISCRIPT *script; struct list RunningActions; - struct list pending_custom_actions; LPWSTR BaseURL; LPWSTR PackagePath; diff --git a/dlls/msi/package.c b/dlls/msi/package.c index f0163c4..b78910d 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -490,7 +490,6 @@ static MSIPACKAGE *msi_alloc_package( void ) list_init( &package->extensions ); list_init( &package->progids ); list_init( &package->RunningActions ); - list_init( &package->pending_custom_actions ); for (i=0; i<PROPERTY_HASH_SIZE; i++) list_init( &package->props[i] );
1
0
0
0
← Newer
1
...
42
43
44
45
46
47
48
...
84
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
Results per page:
10
25
50
100
200