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
July 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
838 discussions
Start a n
N
ew thread
Nikolay Sivov : comctl32/monthcal: Remove unused variable (Clang).
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: 6cf25732dd7a43b83bccd9c677267a6f71c94978 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6cf25732dd7a43b83bccd9c67…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Jul 3 11:37:14 2011 +0400 comctl32/monthcal: Remove unused variable (Clang). --- dlls/comctl32/monthcal.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index ebe53f4..ccede7f 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -1004,7 +1004,7 @@ static void MONTHCAL_PaintLeadTrailMonths(const MONTHCAL_INFO *infoPtr, HDC hdc, static void MONTHCAL_PaintCalendar(const MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT *ps, INT calIdx) { const SYSTEMTIME *date = &infoPtr->calendars[calIdx].month; - INT prev_month, i, j, length; + INT i, j, length; RECT r, fill_bk_rect; SYSTEMTIME st; WCHAR buf[80]; @@ -1026,9 +1026,6 @@ static void MONTHCAL_PaintCalendar(const MONTHCAL_INFO *infoPtr, HDC hdc, const infoPtr->calendars[calIdx].title.bottom + infoPtr->textHeight + 1); SelectObject(hdc, old_pen); - prev_month = date->wMonth - 1; - if (prev_month == 0) prev_month = 12; - infoPtr->calendars[calIdx].wdays.left = infoPtr->calendars[calIdx].days.left = infoPtr->calendars[calIdx].weeknums.right;
1
0
0
0
Nikolay Sivov : comctl32/treeview: Remove redundant initializer (Clang).
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: 7445dcee05384481350d9d29dae6c6000aa685b8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7445dcee05384481350d9d29d…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Jul 3 11:33:06 2011 +0400 comctl32/treeview: Remove redundant initializer (Clang). --- dlls/comctl32/treeview.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 909c1eb..c14bcab 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -3026,7 +3026,7 @@ TREEVIEW_CountChildren(const TREEVIEW_ITEM *item) static HDPA TREEVIEW_BuildChildDPA(const TREEVIEW_ITEM *item) { - HTREEITEM child = item->firstChild; + HTREEITEM child; HDPA list = DPA_Create(8); if (list == 0) return NULL;
1
0
0
0
Nikolay Sivov : comctl32/tab: Make WM_RBUTTONUP reach default window procedure.
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: 7d31d39f001ed0aa4f276c8d4f560be018c2e7be URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d31d39f001ed0aa4f276c8d4…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Jul 3 10:19:21 2011 +0400 comctl32/tab: Make WM_RBUTTONUP reach default window procedure. --- dlls/comctl32/tab.c | 6 +++--- dlls/comctl32/tests/tab.c | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index c2f2d25..374d4ee 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -706,11 +706,10 @@ TAB_LButtonUp (const TAB_INFO *infoPtr) return 0; } -static inline LRESULT +static inline void TAB_RButtonUp (const TAB_INFO *infoPtr) { TAB_SendSimpleNotify(infoPtr, NM_RCLICK); - return 0; } /****************************************************************************** @@ -3430,7 +3429,8 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return SendMessageW(infoPtr->hwndNotify, WM_NOTIFY, wParam, lParam); case WM_RBUTTONUP: - return TAB_RButtonUp (infoPtr); + TAB_RButtonUp (infoPtr); + return DefWindowProcW (hwnd, uMsg, wParam, lParam); case WM_MOUSEMOVE: return TAB_MouseMove (infoPtr, wParam, lParam); diff --git a/dlls/comctl32/tests/tab.c b/dlls/comctl32/tests/tab.c index c82f128..36179dc 100644 --- a/dlls/comctl32/tests/tab.c +++ b/dlls/comctl32/tests/tab.c @@ -286,6 +286,11 @@ static const struct message delete_focus_seq[] = { { 0 } }; +static const struct message rbuttonup_seq[] = { + { WM_RBUTTONUP, sent|wparam|lparam, 0, 0 }, + { WM_CONTEXTMENU, sent|defwinproc }, + { 0 } +}; static HWND create_tabcontrol (DWORD style, DWORD mask) @@ -1407,6 +1412,22 @@ static void test_TCS_OWNERDRAWFIXED(void) DestroyWindow(hTab); } +static void test_WM_CONTEXTMENU(void) +{ + HWND hTab; + + hTab = createFilledTabControl(parent_wnd, TCS_FIXEDWIDTH, TCIF_TEXT|TCIF_IMAGE, 4); + ok(hTab != NULL, "Failed to create tab control\n"); + + flush_sequences(sequences, NUM_MSG_SEQUENCES); + + SendMessageA(hTab, WM_RBUTTONUP, 0, 0); + + ok_sequence(sequences, TAB_SEQ_INDEX, rbuttonup_seq, "WM_RBUTTONUP response sequence", FALSE); + + DestroyWindow(hTab); +} + START_TEST(tab) { LOGFONTA logfont; @@ -1443,6 +1464,7 @@ START_TEST(tab) test_removeimage(); test_TCM_SETITEMEXTRA(); test_TCS_OWNERDRAWFIXED(); + test_WM_CONTEXTMENU(); DestroyWindow(parent_wnd); }
1
0
0
0
Daniel Verkamp : msvcrt/tests: Add test for _get_pgmptr.
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: fcd04e598701ae0db7bce246be748a2ae1c385db URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fcd04e598701ae0db7bce246b…
Author: Daniel Verkamp <daniel(a)drv.nu> Date: Fri Jul 1 21:43:57 2011 -0700 msvcrt/tests: Add test for _get_pgmptr. --- dlls/msvcrt/tests/data.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/dlls/msvcrt/tests/data.c b/dlls/msvcrt/tests/data.c index 7061124..c20be18 100644 --- a/dlls/msvcrt/tests/data.c +++ b/dlls/msvcrt/tests/data.c @@ -34,6 +34,8 @@ typedef void (__cdecl *_INITTERMFUN)(void); static void (__cdecl *p_initterm)(_INITTERMFUN *start, _INITTERMFUN *end); +static int (__cdecl *p_get_pgmptr)(char **p); + static int callbacked; static void __cdecl initcallback(void) @@ -108,6 +110,20 @@ static void test_initvar( HMODULE hmsvcrt ) osplatform, osvi.dwPlatformId); } +static void test_get_pgmptr(void) +{ + char *pgm = NULL; + int res; + + if (!p_get_pgmptr) + return; + + res = p_get_pgmptr(&pgm); + + ok( res == 0, "Wrong _get_pgmptr return value %d expected 0\n", res); + ok( pgm != NULL, "_get_pgmptr returned a NULL pointer\n" ); +} + START_TEST(data) { HMODULE hmsvcrt; @@ -116,7 +132,11 @@ START_TEST(data) if (!hmsvcrt) hmsvcrt = GetModuleHandleA("msvcrtd.dll"); if (hmsvcrt) + { p_initterm=(void*)GetProcAddress(hmsvcrt, "_initterm"); + p_get_pgmptr=(void*)GetProcAddress(hmsvcrt, "_get_pgmptr"); + } test_initterm(); test_initvar(hmsvcrt); + test_get_pgmptr(); }
1
0
0
0
Daniel Verkamp : msvcrt: Add _get_pgmptr and _get_wpgmptr.
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: 1357589ecaff3b1252f963a19c14ad1662b55f18 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1357589ecaff3b1252f963a19…
Author: Daniel Verkamp <daniel(a)drv.nu> Date: Fri Jul 1 21:42:06 2011 -0700 msvcrt: Add _get_pgmptr and _get_wpgmptr. --- dlls/msvcr100/msvcr100.spec | 4 ++-- dlls/msvcr80/msvcr80.spec | 4 ++-- dlls/msvcr90/msvcr90.spec | 4 ++-- dlls/msvcrt/data.c | 30 ++++++++++++++++++++++++++++++ dlls/msvcrt/msvcrt.spec | 4 ++-- 5 files changed, 38 insertions(+), 8 deletions(-) diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index 537c5ca..1a2fa4b 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -685,14 +685,14 @@ @ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler @ cdecl _get_osfhandle(long) msvcrt._get_osfhandle @ cdecl _get_output_format() msvcrt._get_output_format -@ stub _get_pgmptr +@ cdecl _get_pgmptr(ptr) msvcrt._get_pgmptr @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_terminate() msvcrt._get_terminate @ stub _get_timezone @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_unexpected() msvcrt._get_unexpected -@ stub _get_wpgmptr +@ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr @ stub _getc_nolock @ cdecl _getch() msvcrt._getch @ stub _getch_nolock diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index d9b451e..1e14bfc 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -529,7 +529,7 @@ @ cdecl _get_osplatform(ptr) msvcrt._get_osplatform @ stub _get_osver @ cdecl _get_output_format() msvcrt._get_output_format -@ stub _get_pgmptr +@ cdecl _get_pgmptr(ptr) msvcrt._get_pgmptr @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @@ -540,7 +540,7 @@ @ stub _get_winmajor @ stub _get_winminor @ stub _get_winver -@ stub _get_wpgmptr +@ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr @ cdecl _getch() msvcrt._getch @ stub _getch_nolock @ cdecl _getche() msvcrt._getche diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index f2b3770..02cb845 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -519,7 +519,7 @@ @ cdecl _get_invalid_parameter_handler() msvcrt._get_invalid_parameter_handler @ cdecl _get_osfhandle(long) msvcrt._get_osfhandle @ cdecl _get_output_format() msvcrt._get_output_format -@ stub _get_pgmptr +@ cdecl _get_pgmptr(ptr) msvcrt._get_pgmptr @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @@ -527,7 +527,7 @@ @ stub _get_timezone @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_unexpected() msvcrt._get_unexpected -@ stub _get_wpgmptr +@ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr @ stub _getc_nolock @ cdecl _getch() msvcrt._getch @ stub _getch_nolock diff --git a/dlls/msvcrt/data.c b/dlls/msvcrt/data.c index 9e9d460..7829846 100644 --- a/dlls/msvcrt/data.c +++ b/dlls/msvcrt/data.c @@ -156,6 +156,36 @@ char** CDECL __p__pgmptr(void) { return &MSVCRT__pgmptr; } WCHAR** CDECL __p__wpgmptr(void) { return &MSVCRT__wpgmptr; } /*********************************************************************** + * _get_pgmptr (MSVCRT.@) + */ +int CDECL _get_pgmptr(char** p) +{ + if (!MSVCRT_CHECK_PMT(p)) + { + *MSVCRT__errno() = MSVCRT_EINVAL; + return MSVCRT_EINVAL; + } + + *p = MSVCRT__pgmptr; + return 0; +} + +/*********************************************************************** + * _get_wpgmptr (MSVCRT.@) + */ +int CDECL _get_wpgmptr(WCHAR** p) +{ + if (!MSVCRT_CHECK_PMT(p)) + { + *MSVCRT__errno() = MSVCRT_EINVAL; + return MSVCRT_EINVAL; + } + + *p = MSVCRT__wpgmptr; + return 0; +} + +/*********************************************************************** * __p__fmode (MSVCRT.@) */ unsigned int* CDECL __p__fmode(void) { return &MSVCRT__fmode; } diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 41d95bc..7d65642 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -480,13 +480,13 @@ @ cdecl _get_osplatform(ptr) MSVCRT__get_osplatform # stub _get_osver(ptr) @ cdecl _get_output_format() -# stub _get_pgmptr(ptr) +@ cdecl _get_pgmptr(ptr) @ cdecl _get_sbh_threshold() # stub _get_wenviron(ptr) # stub _get_winmajor(ptr) # stub _get_winminor(ptr) # stub _get_winver(ptr) -# stub _get_wpgmptr(ptr) +@ cdecl _get_wpgmptr(ptr) @ cdecl _get_terminate() MSVCRT__get_terminate @ cdecl _get_tzname(ptr str long long) MSVCRT__get_tzname @ cdecl _get_unexpected() MSVCRT__get_unexpected
1
0
0
0
Dylan Smith : d3dx9/tests: Added tests for rounding of denormalized number for D3DXFloat32To16Array.
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: d621accbea5afa2fdeeaa5daba78fe5fc1b4ff62 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d621accbea5afa2fdeeaa5dab…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Sun Jul 3 03:36:52 2011 -0400 d3dx9/tests: Added tests for rounding of denormalized number for D3DXFloat32To16Array. --- dlls/d3dx9_36/tests/math.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 5dbc863..dd214c2 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -2254,6 +2254,11 @@ static void test_D3DXFloat_Array(void) { -NAN, 0xffff, 0xffff, -131008.0f, -131008.0f }, { 0.0f, 0x0, 0x0, 0.0f, 0.0f }, { -0.0f, 0x8000, 0x8000, 0.0f, 0.0f }, + { 2.9809595e-08f, 0x0, 0x0, 0.0f, 0.0f }, + { -2.9809595e-08f, 0x8000, 0x8000, -0.0f, -0.0f }, + { 2.9809598e-08f, 0x1, 0x1, 5.96046e-08f, 5.96046e-08f }, + { -2.9809598e-08f, 0x8001, 0x8001, -5.96046e-08f, -5.96046e-08f }, + { 8.9406967e-08f, 0x2, 0x2, 1.19209e-07f, 1.19209e-07f } }; /* exception on NULL out or in parameter */
1
0
0
0
Dylan Smith : d3dx9: Implement D3DXFloat32To16Array.
by Alexandre Julliard
04 Jul '11
04 Jul '11
Module: wine Branch: master Commit: cac35191b9dde6e3b3f3ffcbeaa099478edf9cca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cac35191b9dde6e3b3f3ffcbe…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Sun Jul 3 03:36:44 2011 -0400 d3dx9: Implement D3DXFloat32To16Array. Derived from patch submitted by Misha Koshelev. Corrected rounding of denormalized numbers. --- dlls/d3dx9_36/d3dx9_36.spec | 2 +- dlls/d3dx9_36/math.c | 99 +++++++++++++++++++++++++++++++++++++++++++ dlls/d3dx9_36/tests/math.c | 9 ++++ 3 files changed, 109 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec index 5973d20..19c38c1 100644 --- a/dlls/d3dx9_36/d3dx9_36.spec +++ b/dlls/d3dx9_36/d3dx9_36.spec @@ -131,7 +131,7 @@ @ stdcall D3DXFilterTexture(ptr ptr long long) @ stdcall D3DXFindShaderComment(ptr long ptr ptr) @ stdcall D3DXFloat16To32Array(ptr ptr long) -@ stub D3DXFloat32To16Array(ptr ptr long) +@ stdcall D3DXFloat32To16Array(ptr ptr long) @ stub D3DXFrameAppendChild(ptr ptr) @ stub D3DXFrameCalculateBoundingSphere(ptr ptr ptr) @ stdcall D3DXFrameDestroy(ptr ptr) diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c index fde3e4e..f13f2fb 100644 --- a/dlls/d3dx9_36/math.c +++ b/dlls/d3dx9_36/math.c @@ -25,6 +25,8 @@ #define NONAMELESSUNION #include "config.h" +#include "wine/port.h" + #include "windef.h" #include "wingdi.h" #include "d3dx9_36_private.h" @@ -1770,6 +1772,103 @@ D3DXVECTOR4* WINAPI D3DXVec4TransformArray(D3DXVECTOR4* out, UINT outstride, CON return out; } +static inline unsigned short float_32_to_16(const float in) +{ + int exp = 0, origexp; + float tmp = fabs(in); + int sign = signbit(in); + unsigned int mantissa; + unsigned short ret; + + /* Deal with special numbers */ + if (isinf(in)) return (sign ? 0xffff : 0x7fff); + if (isnan(in)) return (sign ? 0xffff : 0x7fff); + if (in == 0.0f) return (sign ? 0x8000 : 0x0000); + + if (tmp < powf(2, 10)) + { + do + { + tmp *= 2.0f; + exp--; + } while (tmp < powf(2, 10)); + } + else if (tmp >= powf(2, 11)) + { + do + { + tmp /= 2.0f; + exp++; + } while (tmp >= powf(2, 11)); + } + + exp += 10; /* Normalize the mantissa */ + exp += 15; /* Exponent is encoded with excess 15 */ + + origexp = exp; + + mantissa = (unsigned int) tmp; + if ((tmp - mantissa == 0.5f && mantissa % 2 == 1) || /* round half to even */ + (tmp - mantissa > 0.5f)) + { + mantissa++; /* round to nearest, away from zero */ + } + if (mantissa == 2048) + { + mantissa = 1024; + exp++; + } + + if (exp > 31) + { + /* too big */ + ret = 0x7fff; /* INF */ + } + else if (exp <= 0) + { + unsigned int rounding = 0; + + /* Denormalized half float */ + + /* return 0x0000 (=0.0) for numbers too small to represent in half floats */ + if (exp < -11) + return (sign ? 0x8000 : 0x0000); + + exp = origexp; + + /* the 13 extra bits from single precision are used for rounding */ + mantissa = (unsigned int)(tmp * powf(2, 13)); + mantissa >>= 1 - exp; /* denormalize */ + + mantissa -= ~(mantissa >> 13) & 1; /* round half to even */ + /* remove 13 least significant bits to get half float precision */ + mantissa >>= 12; + rounding = mantissa & 1; + mantissa >>= 1; + + ret = mantissa + rounding; + } + else + { + ret = (exp << 10) | (mantissa & 0x3ff); + } + + ret |= ((sign ? 1 : 0) << 15); /* Add the sign */ + return ret; +} + +D3DXFLOAT16 *WINAPI D3DXFloat32To16Array(D3DXFLOAT16 *pout, CONST FLOAT *pin, UINT n) +{ + unsigned int i; + + for (i = 0; i < n; ++i) + { + pout[i].value = float_32_to_16(pin[i]); + } + + return pout; +} + /* Native d3dx9's D3DXFloat16to32Array lacks support for NaN and Inf. Specifically, e = 16 is treated as a * regular number - e.g., 0x7fff is converted to 131008.0 and 0xffff to -131008.0. */ static inline float float_16_to_32(const unsigned short in) diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index aa3f135..5dbc863 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -2257,11 +2257,20 @@ static void test_D3DXFloat_Array(void) }; /* exception on NULL out or in parameter */ + out = D3DXFloat32To16Array(&half, &single, 0); + ok(out == &half, "Got %p, expected %p.\n", out, &half); + out = D3DXFloat16To32Array(&single, (D3DXFLOAT16 *)&half, 0); ok(out == &single, "Got %p, expected %p.\n", out, &single); for (i = 0; i < sizeof(testdata)/sizeof(testdata[0]); i++) { + out = D3DXFloat32To16Array(&half, &testdata[i].single_in, 1); + ok(out == &half, "Got %p, expected %p.\n", out, &half); + ok(half.value == testdata[i].half_ver1 || half.value == testdata[i].half_ver2, + "Got %x, expected %x or %x for index %d.\n", half.value, testdata[i].half_ver1, + testdata[i].half_ver2, i); + out = D3DXFloat16To32Array(&single, (D3DXFLOAT16 *)&testdata[i].half_ver1, 1); ok(out == &single, "Got %p, expected %p.\n", out, &single); ok(relative_error(single, testdata[i].single_out_ver1) < admitted_error,
1
0
0
0
André Hentschel : shell32: Add stub for SetCurrentProcessExplicitAppUserModelID.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: 38c13e56a7e8588ff1dfb42425d889ddabf58368 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=38c13e56a7e8588ff1dfb4242…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Fri Jul 1 00:03:55 2011 +0200 shell32: Add stub for SetCurrentProcessExplicitAppUserModelID. --- dlls/shell32/shell32.spec | 1 + dlls/shell32/shell32_main.c | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec index 97e52e5..04b72c9 100644 --- a/dlls/shell32/shell32.spec +++ b/dlls/shell32/shell32.spec @@ -324,6 +324,7 @@ @ stub RealShellExecuteExW @ stub RealShellExecuteW @ stub RegenerateUserEnvironment +@ stdcall SetCurrentProcessExplicitAppUserModelID(wstr) @ stdcall SHAddToRecentDocs (long ptr) @ stdcall SHAppBarMessage(long ptr) @ stdcall SHBindToParent(ptr ptr ptr ptr) diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index d03d3d9..dd04280 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -1283,3 +1283,9 @@ HRESULT WINAPI SHGetLocalizedName(LPCWSTR path, LPWSTR module, UINT size, INT *r FIXME("%s %p %u %p: stub\n", debugstr_w(path), module, size, res); return E_NOTIMPL; } + +HRESULT WINAPI SetCurrentProcessExplicitAppUserModelID(PCWSTR appid) +{ + FIXME("%s: stub\n", debugstr_w(appid)); + return E_NOTIMPL; +}
1
0
0
0
André Hentschel : imm32: Test and fix ImmIsUIMessageA/ W.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: 7673d67c1e1cfdcdf7560beea9162c3699329aa5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7673d67c1e1cfdcdf7560beea…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Sat Jun 25 16:13:41 2011 +0200 imm32: Test and fix ImmIsUIMessageA/W. --- dlls/imm32/imm.c | 58 +++++++++++++++++++++++---------------------- dlls/imm32/tests/imm32.c | 51 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 28 deletions(-) diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 00a7c6a..fe394e3 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -1885,21 +1885,21 @@ BOOL WINAPI ImmIsUIMessageA( TRACE("(%p, %x, %ld, %ld)\n", hWndIME, msg, wParam, lParam); if ((msg >= WM_IME_STARTCOMPOSITION && msg <= WM_IME_KEYLAST) || - (msg >= WM_IME_SETCONTEXT && msg <= WM_IME_KEYUP) || - (msg == WM_MSIME_SERVICE) || - (msg == WM_MSIME_RECONVERTOPTIONS) || - (msg == WM_MSIME_MOUSE) || - (msg == WM_MSIME_RECONVERTREQUEST) || - (msg == WM_MSIME_RECONVERT) || - (msg == WM_MSIME_QUERYPOSITION) || - (msg == WM_MSIME_DOCUMENTFEED)) - - { - if (!IMM_GetThreadData()->hwndDefault) - ImmGetDefaultIMEWnd(NULL); - - if (hWndIME == NULL) - PostMessageA(IMM_GetThreadData()->hwndDefault, msg, wParam, lParam); + (msg == WM_IME_SETCONTEXT) || + (msg == WM_IME_NOTIFY) || + (msg == WM_IME_COMPOSITIONFULL) || + (msg == WM_IME_SELECT) || + (msg == WM_IME_SELECT) || + (msg == 0x287 /* FIXME: WM_IME_SYSTEM */) || + (msg == WM_MSIME_RECONVERTOPTIONS) || + (msg == WM_MSIME_MOUSE) || + (msg == WM_MSIME_RECONVERTREQUEST) || + (msg == WM_MSIME_RECONVERT) || + (msg == WM_MSIME_QUERYPOSITION) || + (msg == WM_MSIME_DOCUMENTFEED)) + { + if (hWndIME) + SendMessageA(hWndIME, msg, wParam, lParam); rc = TRUE; } @@ -1913,22 +1913,24 @@ BOOL WINAPI ImmIsUIMessageW( HWND hWndIME, UINT msg, WPARAM wParam, LPARAM lParam) { BOOL rc = FALSE; - TRACE("(%p, %d, %ld, %ld):\n", hWndIME, msg, wParam, lParam); + + TRACE("(%p, %x, %ld, %ld)\n", hWndIME, msg, wParam, lParam); if ((msg >= WM_IME_STARTCOMPOSITION && msg <= WM_IME_KEYLAST) || - (msg >= WM_IME_SETCONTEXT && msg <= WM_IME_KEYUP) || - (msg == WM_MSIME_SERVICE) || - (msg == WM_MSIME_RECONVERTOPTIONS) || - (msg == WM_MSIME_MOUSE) || - (msg == WM_MSIME_RECONVERTREQUEST) || - (msg == WM_MSIME_RECONVERT) || - (msg == WM_MSIME_QUERYPOSITION) || - (msg == WM_MSIME_DOCUMENTFEED)) - { - if (!IMM_GetThreadData()->hwndDefault) - ImmGetDefaultIMEWnd(NULL); - - if (hWndIME == NULL) - PostMessageW(IMM_GetThreadData()->hwndDefault, msg, wParam, lParam); + (msg == WM_IME_SETCONTEXT) || + (msg == WM_IME_NOTIFY) || + (msg == WM_IME_COMPOSITIONFULL) || + (msg == WM_IME_SELECT) || + (msg == WM_IME_SELECT) || + (msg == 0x287 /* FIXME: WM_IME_SYSTEM */) || + (msg == WM_MSIME_RECONVERTOPTIONS) || + (msg == WM_MSIME_MOUSE) || + (msg == WM_MSIME_RECONVERTREQUEST) || + (msg == WM_MSIME_RECONVERT) || + (msg == WM_MSIME_QUERYPOSITION) || + (msg == WM_MSIME_DOCUMENTFEED)) + { + if (hWndIME) + SendMessageW(hWndIME, msg, wParam, lParam); rc = TRUE; } diff --git a/dlls/imm32/tests/imm32.c b/dlls/imm32/tests/imm32.c index 9f40953..39bedb2 100644 --- a/dlls/imm32/tests/imm32.c +++ b/dlls/imm32/tests/imm32.c @@ -28,6 +28,7 @@ #define NUMELEMS(array) (sizeof((array))/sizeof((array)[0])) static BOOL (WINAPI *pImmAssociateContextEx)(HWND,HIMC,DWORD); +static BOOL (WINAPI *pImmIsUIMessageA)(HWND,UINT,WPARAM,LPARAM); /* * msgspy - record and analyse message traces sent to a certain window @@ -156,6 +157,7 @@ static BOOL init(void) { hmod = GetModuleHandleA("imm32.dll"); pImmAssociateContextEx = (void*)GetProcAddress(hmod, "ImmAssociateContextEx"); + pImmIsUIMessageA = (void*)GetProcAddress(hmod, "ImmIsUIMessageA"); wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; @@ -507,6 +509,54 @@ static void test_ImmThreads(void) todo_wine ok(himc == NULL, "Should not be able to get himc from other process window\n"); } +static void test_ImmIsUIMessage(void) +{ + struct test + { + UINT msg; + BOOL ret; + }; + + static const struct test tests[] = + { + { WM_MOUSEMOVE, FALSE }, + { WM_IME_STARTCOMPOSITION, TRUE }, + { WM_IME_ENDCOMPOSITION, TRUE }, + { WM_IME_COMPOSITION, TRUE }, + { WM_IME_SETCONTEXT, TRUE }, + { WM_IME_NOTIFY, TRUE }, + { WM_IME_CONTROL, FALSE }, + { WM_IME_COMPOSITIONFULL, TRUE }, + { WM_IME_SELECT, TRUE }, + { WM_IME_CHAR, FALSE }, + { 0x287 /* FIXME */, TRUE }, + { WM_IME_REQUEST, FALSE }, + { WM_IME_KEYDOWN, FALSE }, + { WM_IME_KEYUP, FALSE }, + { 0, FALSE } /* mark the end */ + }; + + const struct test *test; + BOOL ret; + + if (!pImmIsUIMessageA) return; + + for (test = tests; test->msg; test++) + { + msg_spy_flush_msgs(); + ret = pImmIsUIMessageA(NULL, test->msg, 0, 0); + ok(ret == test->ret, "ImmIsUIMessageA returned %x for %x\n", ret, test->msg); + ok(!msg_spy_find_msg(test->msg), "Windows does not send 0x%x for NULL hwnd\n", test->msg); + + ret = pImmIsUIMessageA(hwnd, test->msg, 0, 0); + ok(ret == test->ret, "ImmIsUIMessageA returned %x for %x\n", ret, test->msg); + if (ret) + ok(msg_spy_find_msg(test->msg) != NULL, "Windows does send 0x%x\n", test->msg); + else + ok(!msg_spy_find_msg(test->msg), "Windows does not send 0x%x\n", test->msg); + } +} + START_TEST(imm32) { if (init()) { @@ -516,6 +566,7 @@ START_TEST(imm32) { test_ImmIME(); test_ImmAssociateContextEx(); test_ImmThreads(); + test_ImmIsUIMessage(); } cleanup(); }
1
0
0
0
Louis Lenders : httpapi: Add stub for HttpCreateHttpHandle.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: 9916931d4164b7e6adaad0dd248a5daba14a6b60 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9916931d4164b7e6adaad0dd2…
Author: Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> Date: Sat Jun 25 13:14:20 2011 +0200 httpapi: Add stub for HttpCreateHttpHandle. --- dlls/httpapi/httpapi.spec | 2 +- dlls/httpapi/httpapi_main.c | 19 +++++++++++++++++++ include/http.h | 1 + 3 files changed, 21 insertions(+), 1 deletions(-) diff --git a/dlls/httpapi/httpapi.spec b/dlls/httpapi/httpapi.spec index a33286a..7e5eede 100644 --- a/dlls/httpapi/httpapi.spec +++ b/dlls/httpapi/httpapi.spec @@ -5,7 +5,7 @@ @ stub HttpCreateAppPool @ stub HttpCreateConfigGroup @ stub HttpCreateFilter -@ stub HttpCreateHttpHandle +@ stdcall HttpCreateHttpHandle(ptr long) @ stub HttpDeleteConfigGroup @ stdcall HttpDeleteServiceConfiguration(ptr long ptr long ptr) @ stub HttpFilterAccept diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c index 7b29a15..3375cb6 100644 --- a/dlls/httpapi/httpapi_main.c +++ b/dlls/httpapi/httpapi_main.c @@ -157,3 +157,22 @@ ULONG WINAPI HttpSetServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle, type, config, length, overlapped ); return NO_ERROR; } + +/*********************************************************************** + * HttpCreateHttpHandle (HTTPAPI.@) + * + * Creates a handle to the HTTP request queue + * + * PARAMS + * handle [O] handle to request queue + * reserved [I] reserved, must be NULL + * + * RETURNS + * NO_ERROR if function succeeds, or error code if function fails + * + */ +ULONG WINAPI HttpCreateHttpHandle( PHANDLE handle, ULONG reserved ) +{ + FIXME( "(%p, %d): stub!\n", handle, reserved); + return ERROR_CALL_NOT_IMPLEMENTED; +} diff --git a/include/http.h b/include/http.h index 2e116e5..b42cbca 100644 --- a/include/http.h +++ b/include/http.h @@ -53,6 +53,7 @@ typedef enum _HTTP_SERVICE_CONFIG_ID ULONG WINAPI HttpInitialize(HTTPAPI_VERSION,ULONG,PVOID); ULONG WINAPI HttpTerminate(ULONG,PVOID); +ULONG WINAPI HttpCreateHttpHandle(PHANDLE,ULONG); ULONG WINAPI HttpDeleteServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED); ULONG WINAPI HttpQueryServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,PVOID,ULONG,PULONG,LPOVERLAPPED); ULONG WINAPI HttpSetServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
1
0
0
0
← Newer
1
...
76
77
78
79
80
81
82
83
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