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
December 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1233 discussions
Start a n
N
ew thread
Alexandre Julliard : user32: Store the 16-bit winproc in a different array from the 32-bit A/W ones.
by Alexandre Julliard
16 Dec '09
16 Dec '09
Module: wine Branch: master Commit: fc0244cb32b5db1b075fd008a23e3c35324b9a96 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fc0244cb32b5db1b075fd008a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 15 20:11:16 2009 +0100 user32: Store the 16-bit winproc in a different array from the 32-bit A/W ones. --- dlls/user32/winproc.c | 245 ++++++++++++++++++++++-------------------------- 1 files changed, 112 insertions(+), 133 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=fc0244cb32b5db1b075fd…
1
0
0
0
Alexandre Julliard : user32: Move more 16-bit winproc functions inside the i386 ifdef.
by Alexandre Julliard
16 Dec '09
16 Dec '09
Module: wine Branch: master Commit: 73c93466a24ef0757142a01eee713fff8757d3b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=73c93466a24ef0757142a01ee…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 15 20:09:04 2009 +0100 user32: Move more 16-bit winproc functions inside the i386 ifdef. --- dlls/user32/winproc.c | 367 ++++++++++++++++++++++++------------------------- 1 files changed, 181 insertions(+), 186 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=73c93466a24ef0757142a…
1
0
0
0
André Hentschel : patches: Some HTML markup fixes.
by Alexandre Julliard
16 Dec '09
16 Dec '09
Module: tools Branch: master Commit: fb4a2111a94ca767b26161086bd9b16c46f97fc0 URL:
http://source.winehq.org/git/tools.git/?a=commit;h=fb4a2111a94ca767b2616108…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Mon Dec 14 19:16:56 2009 +0100 patches: Some HTML markup fixes. --- patches/index.cgi | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/index.cgi b/patches/index.cgi index 93ce068..36826f8 100755 --- a/patches/index.cgi +++ b/patches/index.cgi @@ -54,7 +54,7 @@ my @legend = [ "applyfail", "<ul><li>The patch got mangled in transit.</li>" . "<li>It's not relative to the latest git.</li>" . "<li>Someone else sent a patch that changes the same area and causes conflicts.</li>" . - "<li>The patch is relative to a subdirectory (using 'git format-patch' is strongly recommended).</ul>" ], + "<li>The patch is relative to a subdirectory (using 'git format-patch' is strongly recommended).</li></ul>" ], [ "buildfail", "<ul><li>Syntax error or other compile problem.</li>" . "<li>You forgot to include some changes or new files required for compilation.</li>" . "<li>The patch causes compiler warnings (maintainer mode implies -Werror).</li></ul>" ], @@ -147,7 +147,7 @@ print "<div class=\"legend\"><h2><a name=\"legend\">Legend</a></h2>\n"; print "<table class=\"legend\"><tr><th class=\"status\">Status</th><th class=\"causes\">Possible causes</th></tr>\n"; foreach my $status (@legend) { - printf "<tr class=\"%s\"><td class=\"status %s\">%s</td><td class=\"causes\">%s</td>\n", + printf "<tr class=\"%s\"><td class=\"status %s\">%s</td><td class=\"causes\">%s</td></tr>\n", $row & 1 ? "odd" : "even", $status->[0], $status_descr{$status->[0]}, $status->[1]; $row++;
1
0
0
0
Huw Davies : qedit: Fix a memory leak.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 33a193439d03a06555e8517d371e27b12e64c00d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=33a193439d03a06555e8517d3…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Dec 15 15:20:29 2009 +0000 qedit: Fix a memory leak. Found by Valgrind. --- dlls/qedit/mediadet.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/qedit/mediadet.c b/dlls/qedit/mediadet.c index d27a638..3a13f71 100644 --- a/dlls/qedit/mediadet.c +++ b/dlls/qedit/mediadet.c @@ -310,7 +310,11 @@ static HRESULT GetFilterInfo(IMoniker *pMoniker, GUID *pclsid, VARIANT *pvar) hr = IPropertyBag_Read(pPropBagCat, wszClsidName, pvar, NULL); if (SUCCEEDED(hr)) + { hr = CLSIDFromString(V_UNION(pvar, bstrVal), pclsid); + VariantClear(pvar); + V_VT(pvar) = VT_BSTR; + } if (SUCCEEDED(hr)) hr = IPropertyBag_Read(pPropBagCat, wszFriendlyName, pvar, NULL); @@ -387,10 +391,14 @@ static HRESULT GetSplitter(MediaDetImpl *This) hr = CoCreateInstance(&clsid, NULL, CLSCTX_INPROC_SERVER, &IID_IBaseFilter, (void **) &splitter); if (FAILED(hr)) + { + VariantClear(&var); return hr; + } hr = IGraphBuilder_AddFilter(This->graph, splitter, V_UNION(&var, bstrVal)); + VariantClear(&var); if (FAILED(hr)) { IBaseFilter_Release(splitter);
1
0
0
0
Huw Davies : oleaut32: Fix a leak in the tests.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 08760936e427f8e012012e4a73107ecc3407a0f0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=08760936e427f8e012012e4a7…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Dec 15 15:17:22 2009 +0000 oleaut32: Fix a leak in the tests. Found by Valgrind. --- dlls/oleaut32/tests/vartype.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index 3ea6ac2..8f19294 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -5460,6 +5460,8 @@ static void test_BstrCopy(void) bstr = Get(V_BSTR(&vt2)); ok (bstr->dwLen == 3, "Expected 3, got %d\n", bstr->dwLen); ok (!lstrcmpA((LPCSTR)bstr->szString, szTestTruncA), "String different\n"); + VariantClear(&vt2); + VariantClear(&vt1); } }
1
0
0
0
Huw Davies : oleaut32: Fix a memory leak in the tests.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 0535a2d39c928b7e04def6fe9a1d9c11cf04ce4a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0535a2d39c928b7e04def6fe9…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Dec 15 12:26:37 2009 +0000 oleaut32: Fix a memory leak in the tests. Found by Valgrind. --- dlls/oleaut32/tests/varformat.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c index 6833a27..9d15fd9 100644 --- a/dlls/oleaut32/tests/varformat.c +++ b/dlls/oleaut32/tests/varformat.c @@ -387,7 +387,9 @@ static void test_VarFormat(void) /* 'out' is not cleared */ out = (BSTR)0x1; - pVarFormat(&in,NULL,fd,fw,flags,&out); /* Would crash if out is cleared */ + hres = pVarFormat(&in,NULL,fd,fw,flags,&out); /* Would crash if out is cleared */ + ok(hres == S_OK, "got %08x\n", hres); + SysFreeString(out); out = NULL; /* VT_NULL */
1
0
0
0
Alexandre Julliard : user32: Turn the static winproc into a Wow handler.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 8649f73056d79a06159b5b5787f0e86b4e2ab69a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8649f73056d79a06159b5b578…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 15 13:19:53 2009 +0100 user32: Turn the static winproc into a Wow handler. --- dlls/user32/controls.h | 3 +++ dlls/user32/msg16.c | 19 +++++++++++++++++++ dlls/user32/static.c | 25 +++---------------------- dlls/user32/winproc.c | 2 ++ 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 82036bf..036282b 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -66,6 +66,7 @@ struct wow_handlers16 LRESULT (*edit_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*listbox_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*scrollbar_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); + LRESULT (*static_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); }; struct wow_handlers32 @@ -75,6 +76,7 @@ struct wow_handlers32 LRESULT (*edit_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*listbox_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*scrollbar_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); + LRESULT (*static_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); }; extern struct wow_handlers16 wow_handlers DECLSPEC_HIDDEN; @@ -84,6 +86,7 @@ extern LRESULT ComboWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN extern LRESULT EditWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; extern LRESULT ListBoxWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; extern LRESULT ScrollBarWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; +extern LRESULT StaticWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; extern void register_wow_handlers(void) DECLSPEC_HIDDEN; extern void WINAPI UserRegisterWowHandlers( const struct wow_handlers16 *new, diff --git a/dlls/user32/msg16.c b/dlls/user32/msg16.c index 239e8e5..7ccf049 100644 --- a/dlls/user32/msg16.c +++ b/dlls/user32/msg16.c @@ -1191,6 +1191,24 @@ static LRESULT scrollbar_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar } +/*********************************************************************** + * static_proc16 + */ +static LRESULT static_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode ) +{ + switch (msg) + { + case STM_SETICON16: + wParam = (WPARAM)HICON_32( (HICON16)wParam ); + return wow_handlers32.static_proc( hwnd, STM_SETICON, wParam, lParam, FALSE ); + case STM_GETICON16: + return HICON_16( wow_handlers32.static_proc( hwnd, STM_GETICON, wParam, lParam, FALSE )); + default: + return wow_handlers32.static_proc( hwnd, msg, wParam, lParam, unicode ); + } +} + + void register_wow_handlers(void) { static const struct wow_handlers16 handlers16 = @@ -1200,6 +1218,7 @@ void register_wow_handlers(void) edit_proc16, listbox_proc16, scrollbar_proc16, + static_proc16, }; UserRegisterWowHandlers( &handlers16, &wow_handlers32 ); diff --git a/dlls/user32/static.c b/dlls/user32/static.c index 80c502d..b33033a 100644 --- a/dlls/user32/static.c +++ b/dlls/user32/static.c @@ -47,7 +47,6 @@ #include "windef.h" #include "winbase.h" #include "wingdi.h" -#include "wine/winuser16.h" #include "controls.h" #include "user_private.h" #include "wine/debug.h" @@ -400,8 +399,7 @@ static BOOL hasTextStyle( DWORD style ) /*********************************************************************** * StaticWndProc_common */ -static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, - LPARAM lParam, BOOL unicode ) +LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode ) { LRESULT lResult = 0; LONG full_style = GetWindowLongW( hwnd, GWL_STYLE ); @@ -607,29 +605,12 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, } /*********************************************************************** - * StaticWndProc_wrapper16 - */ -static LRESULT StaticWndProc_wrapper16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode ) -{ - switch (msg) - { - case STM_SETICON16: - wParam = (WPARAM)HICON_32( (HICON16)wParam ); - return StaticWndProc_common( hwnd, STM_SETICON, wParam, lParam, FALSE ); - case STM_GETICON16: - return HICON_16( StaticWndProc_common( hwnd, STM_GETICON, wParam, lParam, FALSE )); - default: - return StaticWndProc_common( hwnd, msg, wParam, lParam, unicode ); - } -} - -/*********************************************************************** * StaticWndProcA */ static LRESULT WINAPI StaticWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { if (!IsWindow( hWnd )) return 0; - return StaticWndProc_wrapper16(hWnd, uMsg, wParam, lParam, FALSE); + return wow_handlers.static_proc(hWnd, uMsg, wParam, lParam, FALSE); } /*********************************************************************** @@ -638,7 +619,7 @@ static LRESULT WINAPI StaticWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARA static LRESULT WINAPI StaticWndProcW( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { if (!IsWindow( hWnd )) return 0; - return StaticWndProc_wrapper16(hWnd, uMsg, wParam, lParam, TRUE); + return wow_handlers.static_proc(hWnd, uMsg, wParam, lParam, TRUE); } static void STATIC_PaintOwnerDrawfn( HWND hwnd, HDC hdc, DWORD style ) diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index d434961..67671c9 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -2393,6 +2393,7 @@ void WINAPI UserRegisterWowHandlers( const struct wow_handlers16 *new, struct wo orig->edit_proc = EditWndProc_common; orig->listbox_proc = ListBoxWndProc_common; orig->scrollbar_proc = ScrollBarWndProc_common; + orig->static_proc = StaticWndProc_common; wow_handlers = *new; } @@ -2404,4 +2405,5 @@ struct wow_handlers16 wow_handlers = EditWndProc_common, ListBoxWndProc_common, ScrollBarWndProc_common, + StaticWndProc_common, };
1
0
0
0
Alexandre Julliard : user32: Add 16-bit translation for parameters of the WM_H/VSCROLL edit messages.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 6af1df86ce21bb895f896dd0d9ab514bd49a8cab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6af1df86ce21bb895f896dd0d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 15 13:22:45 2009 +0100 user32: Add 16-bit translation for parameters of the WM_H/VSCROLL edit messages. --- dlls/user32/edit.c | 15 +++++---------- dlls/user32/msg16.c | 5 +++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 4b73ec7..a2ce5f1 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -51,11 +51,8 @@ #include "windef.h" #include "winbase.h" #include "winnt.h" -#include "wownt32.h" #include "win.h" #include "imm.h" -#include "wine/winbase16.h" -#include "wine/winuser16.h" #include "wine/unicode.h" #include "controls.h" #include "user_private.h" @@ -3918,7 +3915,6 @@ static LRESULT EDIT_WM_HScroll(EDITSTATE *es, INT action, INT pos) * although it's also a regular control message. */ case EM_GETTHUMB: /* this one is used by NT notepad */ - case EM_GETTHUMB16: { LRESULT ret; if(GetWindowLongW( es->hwndSelf, GWL_STYLE ) & WS_HSCROLL) @@ -3932,7 +3928,7 @@ static LRESULT EDIT_WM_HScroll(EDITSTATE *es, INT action, INT pos) TRACE("EM_GETTHUMB: returning %ld\n", ret); return ret; } - case EM_LINESCROLL16: + case EM_LINESCROLL: TRACE("EM_LINESCROLL16\n"); dx = pos; break; @@ -4042,7 +4038,6 @@ static LRESULT EDIT_WM_VScroll(EDITSTATE *es, INT action, INT pos) * although it's also a regular control message. */ case EM_GETTHUMB: /* this one is used by NT notepad */ - case EM_GETTHUMB16: { LRESULT ret; if(GetWindowLongW( es->hwndSelf, GWL_STYLE ) & WS_VSCROLL) @@ -4056,8 +4051,8 @@ static LRESULT EDIT_WM_VScroll(EDITSTATE *es, INT action, INT pos) TRACE("EM_GETTHUMB: returning %ld\n", ret); return ret; } - case EM_LINESCROLL16: - TRACE("EM_LINESCROLL16 %d\n", pos); + case EM_LINESCROLL: + TRACE("EM_LINESCROLL %d\n", pos); dy = pos; break; @@ -4083,8 +4078,8 @@ static LRESULT EDIT_WM_VScroll(EDITSTATE *es, INT action, INT pos) */ static LRESULT EDIT_EM_GetThumb(EDITSTATE *es) { - return MAKELONG(EDIT_WM_VScroll(es, EM_GETTHUMB16, 0), - EDIT_WM_HScroll(es, EM_GETTHUMB16, 0)); + return MAKELONG(EDIT_WM_VScroll(es, EM_GETTHUMB, 0), + EDIT_WM_HScroll(es, EM_GETTHUMB, 0)); } diff --git a/dlls/user32/msg16.c b/dlls/user32/msg16.c index 7ccf049..674b18c 100644 --- a/dlls/user32/msg16.c +++ b/dlls/user32/msg16.c @@ -1038,6 +1038,11 @@ static LRESULT edit_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B case WM_NCDESTROY: edit_destroy_handle( hwnd ); return wow_handlers32.edit_proc( hwnd, msg, wParam, lParam, unicode ); /* no unlock on destroy */ + case WM_HSCROLL: + case WM_VSCROLL: + if (LOWORD(wParam) == EM_GETTHUMB16 || LOWORD(wParam) == EM_LINESCROLL16) wParam -= msg16_offset; + result = wow_handlers32.edit_proc( hwnd, msg, wParam, lParam, unicode ); + break; default: result = wow_handlers32.edit_proc( hwnd, msg, wParam, lParam, unicode ); break;
1
0
0
0
Alexandre Julliard : user32: Turn the scrollbar winproc into a Wow handler.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 3dc6317fc6cbdec26c0dbab798bef5dffd178650 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3dc6317fc6cbdec26c0dbab79…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 15 13:19:30 2009 +0100 user32: Turn the scrollbar winproc into a Wow handler. --- dlls/user32/controls.h | 3 +++ dlls/user32/msg16.c | 33 +++++++++++++++++++++++++++++++++ dlls/user32/scroll.c | 40 ++++------------------------------------ dlls/user32/winproc.c | 10 ++++++---- 4 files changed, 46 insertions(+), 40 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 80f6bf5..82036bf 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -65,6 +65,7 @@ struct wow_handlers16 LRESULT (*combo_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*edit_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*listbox_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); + LRESULT (*scrollbar_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); }; struct wow_handlers32 @@ -73,6 +74,7 @@ struct wow_handlers32 LRESULT (*combo_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*edit_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); LRESULT (*listbox_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); + LRESULT (*scrollbar_proc)(HWND,UINT,WPARAM,LPARAM,BOOL); }; extern struct wow_handlers16 wow_handlers DECLSPEC_HIDDEN; @@ -81,6 +83,7 @@ extern LRESULT ButtonWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDE extern LRESULT ComboWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; extern LRESULT EditWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; extern LRESULT ListBoxWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; +extern LRESULT ScrollBarWndProc_common(HWND,UINT,WPARAM,LPARAM,BOOL) DECLSPEC_HIDDEN; extern void register_wow_handlers(void) DECLSPEC_HIDDEN; extern void WINAPI UserRegisterWowHandlers( const struct wow_handlers16 *new, diff --git a/dlls/user32/msg16.c b/dlls/user32/msg16.c index 2ebb133..239e8e5 100644 --- a/dlls/user32/msg16.c +++ b/dlls/user32/msg16.c @@ -1159,6 +1159,38 @@ static LRESULT listbox_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam } +/*********************************************************************** + * scrollbar_proc16 + */ +static LRESULT scrollbar_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode ) +{ + static const UINT msg16_offset = SBM_SETPOS16 - SBM_SETPOS; + + switch (msg) + { + case SBM_SETPOS16: + case SBM_GETPOS16: + case SBM_ENABLE_ARROWS16: + msg -= msg16_offset; + break; + case SBM_SETRANGE16: + msg = wParam ? SBM_SETRANGEREDRAW : SBM_SETRANGE; + wParam = LOWORD(lParam); + lParam = HIWORD(lParam); + break; + case SBM_GETRANGE16: + { + INT min, max; + wow_handlers32.scrollbar_proc( hwnd, SBM_GETRANGE, (WPARAM)&min, (LPARAM)&max, FALSE ); + return MAKELRESULT(min, max); + } + default: + return wow_handlers32.scrollbar_proc( hwnd, msg, wParam, lParam, unicode ); + } + return wow_handlers32.scrollbar_proc( hwnd, msg, wParam, lParam, FALSE ); +} + + void register_wow_handlers(void) { static const struct wow_handlers16 handlers16 = @@ -1167,6 +1199,7 @@ void register_wow_handlers(void) combo_proc16, edit_proc16, listbox_proc16, + scrollbar_proc16, }; UserRegisterWowHandlers( &handlers16, &wow_handlers32 ); diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c index 6ab1e56..b948c82 100644 --- a/dlls/user32/scroll.c +++ b/dlls/user32/scroll.c @@ -33,7 +33,6 @@ #include "windef.h" #include "winbase.h" #include "wingdi.h" -#include "wine/winuser16.h" #include "controls.h" #include "win.h" #include "wine/debug.h" @@ -1401,9 +1400,9 @@ static BOOL SCROLL_SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal) /*********************************************************************** - * ScrollBarWndProc + * ScrollBarWndProc_common */ -static LRESULT ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode ) +LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode ) { if (!IsWindow( hwnd )) return 0; @@ -1576,42 +1575,11 @@ static LRESULT ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM /*********************************************************************** - * ScrollBarWndProc_wrapper16 - */ -static LRESULT ScrollBarWndProc_wrapper16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode ) -{ - static const UINT msg16_offset = SBM_SETPOS16 - SBM_SETPOS; - - switch (msg) - { - case SBM_SETPOS16: - case SBM_GETPOS16: - case SBM_ENABLE_ARROWS16: - msg -= msg16_offset; - break; - case SBM_SETRANGE16: - msg = wParam ? SBM_SETRANGEREDRAW : SBM_SETRANGE; - wParam = LOWORD(lParam); - lParam = HIWORD(lParam); - break; - case SBM_GETRANGE16: - { - INT min, max; - ScrollBarWndProc( hwnd, SBM_GETRANGE, (WPARAM)&min, (LPARAM)&max, FALSE ); - return MAKELRESULT(min, max); - } - default: - return ScrollBarWndProc( hwnd, msg, wParam, lParam, unicode ); - } - return ScrollBarWndProc( hwnd, msg, wParam, lParam, FALSE ); -} - -/*********************************************************************** * ScrollBarWndProcA */ static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) { - return ScrollBarWndProc_wrapper16( hwnd, message, wParam, lParam, FALSE ); + return wow_handlers.scrollbar_proc( hwnd, message, wParam, lParam, FALSE ); } @@ -1620,7 +1588,7 @@ static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT message, WPARAM wParam, */ static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) { - return ScrollBarWndProc_wrapper16( hwnd, message, wParam, lParam, TRUE ); + return wow_handlers.scrollbar_proc( hwnd, message, wParam, lParam, TRUE ); } diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index 0a91a58..d434961 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -2388,10 +2388,11 @@ INT_PTR WINPROC_CallDlgProcW( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, */ void WINAPI UserRegisterWowHandlers( const struct wow_handlers16 *new, struct wow_handlers32 *orig ) { - orig->button_proc = ButtonWndProc_common; - orig->combo_proc = ComboWndProc_common; - orig->edit_proc = EditWndProc_common; - orig->listbox_proc = ListBoxWndProc_common; + orig->button_proc = ButtonWndProc_common; + orig->combo_proc = ComboWndProc_common; + orig->edit_proc = EditWndProc_common; + orig->listbox_proc = ListBoxWndProc_common; + orig->scrollbar_proc = ScrollBarWndProc_common; wow_handlers = *new; } @@ -2402,4 +2403,5 @@ struct wow_handlers16 wow_handlers = ComboWndProc_common, EditWndProc_common, ListBoxWndProc_common, + ScrollBarWndProc_common, };
1
0
0
0
Alexandre Julliard : user32: Turn the edit winproc into a Wow handler.
by Alexandre Julliard
15 Dec '09
15 Dec '09
Module: wine Branch: master Commit: 57e5c8f67ab1a78959b43bd814b9d49632e3f9aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=57e5c8f67ab1a78959b43bd81…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 15 13:19:03 2009 +0100 user32: Turn the edit winproc into a Wow handler. --- dlls/user32/controls.h | 3 + dlls/user32/edit.c | 400 +----------------------------------------------- dlls/user32/msg16.c | 364 +++++++++++++++++++++++++++++++++++++++++++ dlls/user32/winproc.c | 2 + 4 files changed, 372 insertions(+), 397 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=57e5c8f67ab1a78959b43…
1
0
0
0
← Newer
1
...
51
52
53
54
55
56
57
...
124
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Results per page:
10
25
50
100
200