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
Vitaliy Margolen : winex11.drv: Popup windows with system menu are managed.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: abcbcc35da3b6800494bd908aa7294294c90708c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=abcbcc35da3b6800494bd908a…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Sat Feb 10 10:40:50 2007 -0700 winex11.drv: Popup windows with system menu are managed. --- dlls/winex11.drv/window.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 3f67069..38da952 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -86,10 +86,13 @@ inline static BOOL is_window_managed( HW if (style & WS_THICKFRAME) return TRUE; /* application windows are managed */ if (ex_style & WS_EX_APPWINDOW) return TRUE; - /* full-screen popup windows are managed */ if (style & WS_POPUP) { RECT rect; + + /* popup with sysmenu == caption are managed */ + if (style & WS_SYSMENU) return TRUE; + /* full-screen popup windows are managed */ GetWindowRect( hwnd, &rect ); if ((rect.right - rect.left) == screen_width && (rect.bottom - rect.top) == screen_height) return TRUE;
1
0
0
0
Leslie Choong : comctl32: updown: Getter and setter tests for updown control.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: b3c0a290610c53c90cdf57713ab607e464e77cfc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b3c0a290610c53c90cdf57713…
Author: Leslie Choong <septikus(a)gmail.com> Date: Sat Feb 10 20:37:26 2007 -0800 comctl32: updown: Getter and setter tests for updown control. --- dlls/comctl32/tests/updown.c | 172 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 172 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/tests/updown.c b/dlls/comctl32/tests/updown.c index 7caa0b3..b8e2a27 100644 --- a/dlls/comctl32/tests/updown.c +++ b/dlls/comctl32/tests/updown.c @@ -2,6 +2,7 @@ * * Copyright 2005 C. Scott Ananian * Copyright (C) 2007 James Hawkins + * Copyright (C) 2007 Leslie Choong * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -511,6 +512,171 @@ static HWND create_updown_control() return updown; } +static void test_updown_pos(void) +{ + int r; + + /* Set Range from 0 to 100 */ + SendMessage(updown, UDM_SETRANGE, 0 , MAKELONG(100,0) ); + r = SendMessage(updown, UDM_GETRANGE, 0,0); + ok(LOWORD(r) == 100, "Expected 100, got %d\n", LOWORD(r)); + ok(HIWORD(r) == 0, "Expected 0, got %d\n", HIWORD(r)); + + /* Set the position to 5, return is not checked as it was set before func call */ + SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(5,0) ); + /* Since UDM_SETBUDDYINT was not set at creation HIWORD(r) will always be 1 as a return from UDM_GETPOS */ + /* Get the position, which should be 5 */ + r = SendMessage(updown, UDM_GETPOS, 0 , 0 ); + ok(LOWORD(r) == 5, "Expected 5, got %d\n", LOWORD(r)); + ok(HIWORD(r) == 1, "Expected 1, got %d\n", HIWORD(r)); + + /* Set the position to 0, return should be 5 */ + r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(0,0) ); + ok(r == 5, "Expected 5, got %d\n", r); + /* Get the position, which should be 0 */ + r = SendMessage(updown, UDM_GETPOS, 0 , 0 ); + ok(LOWORD(r) == 0, "Expected 0, got %d\n", LOWORD(r)); + ok(HIWORD(r) == 1, "Expected 1, got %d\n", HIWORD(r)); + + /* Set the position to -1, return should be 0 */ + r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(-1,0) ); + ok(r == 0, "Expected 0, got %d\n", r); + /* Get the position, which should be 0 */ + r = SendMessage(updown, UDM_GETPOS, 0 , 0 ); + ok(LOWORD(r) == 0, "Expected 0, got %d\n", LOWORD(r)); + ok(HIWORD(r) == 1, "Expected 1, got %d\n", HIWORD(r)); + + /* Set the position to 100, return should be 0 */ + r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(100,0) ); + ok(r == 0, "Expected 0, got %d\n", r); + /* Get the position, which should be 100 */ + r = SendMessage(updown, UDM_GETPOS, 0 , 0 ); + ok(LOWORD(r) == 100, "Expected 100, got %d\n", LOWORD(r)); + ok(HIWORD(r) == 1, "Expected 1, got %d\n", HIWORD(r)); + + /* Set the position to 101, return should be 100 */ + r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(101,0) ); + ok(r == 100, "Expected 100, got %d\n", r); + /* Get the position, which should be 100 */ + r = SendMessage(updown, UDM_GETPOS, 0 , 0 ); + ok(LOWORD(r) == 100, "Expected 100, got %d\n", LOWORD(r)); + ok(HIWORD(r) == 1, "Expected 1, got %d\n", HIWORD(r)); +} + +static void test_updown_pos32(void) +{ + int r; + int low, high; + + /* Set the position to 0 to 1000 */ + SendMessage(updown, UDM_SETRANGE32, 0 , 1000 ); + + r = SendMessage(updown, UDM_GETRANGE32, (WPARAM) &low , (LPARAM) &high ); + ok(low == 0, "Expected 0, got %d\n", low); + ok(high == 1000, "Expected 1000, got %d\n", high); + + /* Set position to 500, don't check return since it is unset*/ + r = SendMessage(updown, UDM_SETPOS32, 0 , 500 ); + + /* Since UDM_SETBUDDYINT was not set at creation bRet will always be true as a return from UDM_GETPOS32 */ + + r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high ); + ok(r == 500, "Expected 500, got %d\n", r); + ok(high == 1 , "Expected 0, got %d\n", high); + + /* Set position to 0, return should be 500 */ + r = SendMessage(updown, UDM_SETPOS32, 0 , 0 ); + ok(r == 500, "Expected 500, got %d\n", r); + r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high ); + ok(r == 0, "Expected 0, got %d\n", r); + ok(high == 1 , "Expected 0, got %d\n", high); + + /* Set position to -1 which sohuld become 0, return should be 0 */ + r = SendMessage(updown, UDM_SETPOS32, 0 , -1 ); + ok(r == 0, "Expected 0, got %d\n", r); + r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high ); + ok(r == 0, "Expected 0, got %d\n", r); + ok(high == 1 , "Expected 0, got %d\n", high); + + /* Set position to 1000, return should be 0 */ + r = SendMessage(updown, UDM_SETPOS32, 0 , 1000 ); + ok(r == 0, "Expected 0, got %d\n", r); + r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high ); + ok(r == 1000, "Expected 1000, got %d\n", r); + ok(high == 1 , "Expected 0, got %d\n", high); + + /* Set position to 1001 which sohuld become 1000, return should be 1000 */ + r = SendMessage(updown, UDM_SETPOS32, 0 , 1001 ); + ok(r == 1000, "Expected 1000, got %d\n", r); + r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high ); + ok(r == 1000, "Expected 0, got %d\n", r); + ok(high == 1 , "Expected 0, got %d\n", high); +} + +static void test_updown_buddy(void) +{ + HWND buddyReturn; + + buddyReturn = (HWND)SendMessage(updown, UDM_GETBUDDY, 0 , 0 ); + ok(buddyReturn == edit, "Expected edit handle\n"); +} + +static void test_updown_base(void) +{ + int r; + + SendMessage(updown, UDM_SETBASE, 10 , 0); + r = SendMessage(updown, UDM_GETBASE, 0 , 0); + ok(r == 10, "Expected 10, got %d\n", r); + + /* Set base to an invalid value, should return 0 and stay at 10 */ + r = SendMessage(updown, UDM_SETBASE, 80 , 0); + ok(r == 0, "Expected 0, got %d\n", r); + r = SendMessage(updown, UDM_GETBASE, 0 , 0); + ok(r == 10, "Expected 10, got %d\n", r); + + /* Set base to 16 now, should get 16 as the return */ + r = SendMessage(updown, UDM_SETBASE, 16 , 0); + ok(r == 10, "Expected 10, got %d\n", r); + r = SendMessage(updown, UDM_GETBASE, 0 , 0); + ok(r == 16, "Expected 16, got %d\n", r); + + /* Set base to an invalid value, should return 0 and stay at 16 */ + r = SendMessage(updown, UDM_SETBASE, 80 , 0); + ok(r == 0, "Expected 0, got %d\n", r); + r = SendMessage(updown, UDM_GETBASE, 0 , 0); + ok(r == 16, "Expected 16, got %d\n", r); + + /* Set base back to 10, return should be 16 */ + r = SendMessage(updown, UDM_SETBASE, 10 , 0); + ok(r == 16, "Expected 16, got %d\n", r); + r = SendMessage(updown, UDM_GETBASE, 0 , 0); + ok(r == 10, "Expected 10, got %d\n", r); +} + +static void test_updown_unicode(void) +{ + int r; + + /* Set it to ANSI, don't check return as we don't know previous state */ + SendMessage(updown, UDM_SETUNICODEFORMAT, 0 , 0); + r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0); + ok(r == 0, "Expected 0, got %d\n", r); + + /* Now set it to Unicode format */ + r = SendMessage(updown, UDM_SETUNICODEFORMAT, 1 , 0); + ok(r == 0, "Expected 0, got %d\n", r); + r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0); + ok(r == 1, "Expected 1, got %d\n", r); + + /* And now set it back to ANSI */ + r = SendMessage(updown, UDM_SETUNICODEFORMAT, 0 , 0); + ok(r == 1, "Expected 1, got %d\n", r); + r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0); + ok(r == 0, "Expected 0, got %d\n", r); +} + + static void test_create_updown_control(void) { CHAR text[MAX_PATH]; @@ -539,6 +705,12 @@ static void test_create_updown_control(v ok_sequence(EDIT_SEQ_INDEX, get_edit_text_seq, "get edit text", FALSE); flush_sequences(); + + test_updown_pos(); + test_updown_pos32(); + test_updown_buddy(); + test_updown_base(); + test_updown_unicode(); } START_TEST(updown)
1
0
0
0
Anatoly Lyutin : wineconsole: Added range of value for all up-down controls on config dialog.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: 06999c504463ffa5f8745bbf6cbe69f5e424ea62 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=06999c504463ffa5f8745bbf6…
Author: Anatoly Lyutin <vostok(a)etersoft.ru> Date: Sat Feb 10 14:44:18 2007 +0300 wineconsole: Added range of value for all up-down controls on config dialog. --- programs/wineconsole/dialog.c | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/programs/wineconsole/dialog.c b/programs/wineconsole/dialog.c index aa8f096..cc43684 100644 --- a/programs/wineconsole/dialog.c +++ b/programs/wineconsole/dialog.c @@ -599,17 +599,25 @@ static INT_PTR WINAPI WCUSER_FontDlgProc static INT_PTR WINAPI WCUSER_ConfigDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { struct dialog_info* di; + int nMaxUD = 2000; switch (msg) { case WM_INITDIALOG: - di = (struct dialog_info*)((PROPSHEETPAGEA*)lParam)->lParam; - di->hDlg = hDlg; - SetWindowLongPtr(hDlg, DWLP_USER, (DWORD_PTR)di); - SetDlgItemInt(hDlg, IDC_CNF_SB_WIDTH, di->config.sb_width, FALSE); - SetDlgItemInt(hDlg, IDC_CNF_SB_HEIGHT, di->config.sb_height, FALSE); - SetDlgItemInt(hDlg, IDC_CNF_WIN_WIDTH, di->config.win_width, FALSE); - SetDlgItemInt(hDlg, IDC_CNF_WIN_HEIGHT, di->config.win_height, FALSE); + di = (struct dialog_info*)((PROPSHEETPAGEA*)lParam)->lParam; + di->hDlg = hDlg; + + SetWindowLongPtr(hDlg, DWLP_USER, (DWORD_PTR)di); + SetDlgItemInt(hDlg, IDC_CNF_SB_WIDTH, di->config.sb_width, FALSE); + SetDlgItemInt(hDlg, IDC_CNF_SB_HEIGHT, di->config.sb_height, FALSE); + SetDlgItemInt(hDlg, IDC_CNF_WIN_WIDTH, di->config.win_width, FALSE); + SetDlgItemInt(hDlg, IDC_CNF_WIN_HEIGHT, di->config.win_height, FALSE); + + SendMessage(GetDlgItem(hDlg,IDC_CNF_WIN_HEIGHT_UD), UDM_SETRANGE, (WPARAM) 0, MAKELONG (nMaxUD, 0)); + SendMessage(GetDlgItem(hDlg,IDC_CNF_WIN_WIDTH_UD), UDM_SETRANGE, (WPARAM) 0, MAKELONG (nMaxUD, 0)); + SendMessage(GetDlgItem(hDlg,IDC_CNF_SB_HEIGHT_UD), UDM_SETRANGE, (WPARAM) 0, MAKELONG (nMaxUD, 0)); + SendMessage(GetDlgItem(hDlg,IDC_CNF_SB_WIDTH_UD), UDM_SETRANGE, (WPARAM) 0, MAKELONG (nMaxUD, 0)); + SendDlgItemMessage(hDlg, IDC_CNF_CLOSE_EXIT, BM_SETCHECK, (di->config.exit_on_die) ? BST_CHECKED : BST_UNCHECKED, 0L); {
1
0
0
0
Anatoly Lyutin : comdlg32: fontdlg: Add initialisation for comboboxes.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: bea5ed4fa95ba3adebce18e02baecfea70d059d4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bea5ed4fa95ba3adebce18e02…
Author: Anatoly Lyutin <vostok(a)etersoft.ru> Date: Sat Feb 10 16:34:30 2007 +0300 comdlg32: fontdlg: Add initialisation for comboboxes. --- dlls/comdlg32/fontdlg.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c index cd36ed3..2f01b3b 100644 --- a/dlls/comdlg32/fontdlg.c +++ b/dlls/comdlg32/fontdlg.c @@ -709,6 +709,15 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPAR SendDlgItemMessageW(hDlg,cmb1,CB_SETCURSEL,0,0); SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb1, CBN_SELCHANGE), (LPARAM)GetDlgItem(hDlg,cmb1)); + SendDlgItemMessageW(hDlg,cmb2,CB_SETCURSEL,0,0); + SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb2, CBN_SELCHANGE), + (LPARAM)GetDlgItem(hDlg,cmb1)); + SendDlgItemMessageW(hDlg,cmb3,CB_SETCURSEL,0,0); + SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb3, CBN_SELCHANGE), + (LPARAM)GetDlgItem(hDlg,cmb3)); + SendDlgItemMessageW(hDlg,cmb5,CB_SETCURSEL,0,0); + SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb5, CBN_SELCHANGE), + (LPARAM)GetDlgItem(hDlg,cmb5)); } if ((lpcf->Flags & CF_USESTYLE) && lpcf->lpszStyle) {
1
0
0
0
Tijl Coosemans : wineshelllink: Fix mktemp usage on FreeBSD.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: 6f49b38a5e7ac31605fbf9ae2df95c26700ef059 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6f49b38a5e7ac31605fbf9ae2…
Author: Tijl Coosemans <tijl(a)ulyssis.org> Date: Fri Feb 9 18:31:18 2007 +0100 wineshelllink: Fix mktemp usage on FreeBSD. --- tools/wineshelllink | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/wineshelllink b/tools/wineshelllink index 84d4671..ad11b8c 100755 --- a/tools/wineshelllink +++ b/tools/wineshelllink @@ -156,7 +156,7 @@ write_menu_file() menu=`echo $1 | sed 's!/!-!g'` filename=`echo $2 | sed 's!/!-!g'` - tmpfile=`mktemp` + tmpfile=`mktemp /tmp/wine.XXXXXX` ( echo '<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"' echo '"
http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd
">'
1
0
0
0
Marcus Meissner : ntdll/tests: Fixed WCHAR overflow.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: fa32d538107551f4fe5e08a1db172c2259aff615 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa32d538107551f4fe5e08a1d…
Author: Marcus Meissner <meissner(a)suse.de> Date: Thu Feb 8 17:15:50 2007 +0100 ntdll/tests: Fixed WCHAR overflow. --- dlls/ntdll/tests/rtlstr.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c index 5c70eda..3d85aff 100644 --- a/dlls/ntdll/tests/rtlstr.c +++ b/dlls/ntdll/tests/rtlstr.c @@ -637,7 +637,7 @@ static void test_RtlDowncaseUnicodeStrin UNICODE_STRING result_str; UNICODE_STRING lower_str; - for (i = 0; i <= 1024; i++) { + for (i = 0; i < 1024; i++) { ch = (WCHAR) i; if (ch >= 'A' && ch <= 'Z') { lower_ch = ch - 'A' + 'a'; @@ -678,7 +678,6 @@ static void test_RtlDowncaseUnicodeStrin case 0x38c: lower_ch = 0x3cc; break; case 0x38e: lower_ch = 0x3cd; break; case 0x38f: lower_ch = 0x3ce; break; - case 0x400: lower_ch = 0x0; break; default: lower_ch = ch; break; } /* switch */ }
1
0
0
0
Kim Lilliestierna : cmd: Fix the "move" command the same way as the "copy" command.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: 9d90abe1b9f22809bf0249147803167e0e9e1e04 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9d90abe1b9f22809bf0249147…
Author: Kim Lilliestierna <kill(a)itr.no> Date: Sat Jan 27 15:26:03 2007 +0100 cmd: Fix the "move" command the same way as the "copy" command. --- programs/cmd/builtins.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 018a8e0..49548de 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -519,6 +519,8 @@ HANDLE hff; /* If 2nd parm is directory, then use original filename */ GetFullPathName (param2, sizeof(outpath), outpath, NULL); + if (outpath[strlen(outpath) - 1] == '\\') + outpath[strlen(outpath) - 1] = '\0'; hff = FindFirstFile (outpath, &fd); if (hff != INVALID_HANDLE_VALUE) { if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
1
0
0
0
Marcus Meissner : winedump: Free function_name on all error paths.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: aef6e2d35d267abe08ccd52ec45cd5d53c5fc9d0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aef6e2d35d267abe08ccd52ec…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Feb 13 08:49:24 2007 +0100 winedump: Free function_name on all error paths. --- tools/winedump/msmangle.c | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/tools/winedump/msmangle.c b/tools/winedump/msmangle.c index c330b8c..574a3b5 100644 --- a/tools/winedump/msmangle.c +++ b/tools/winedump/msmangle.c @@ -191,8 +191,10 @@ int symbol_demangle (parsed_symbol *sym) /* Class the function is associated with, terminated by '@@' */ class_name = name; while (*name && *name++ != '@') ; - if (*name++ != '@') + if (*name++ != '@') { + free (function_name); return -1; + } class_name = str_substring (class_name, name - 2); } @@ -215,6 +217,7 @@ int symbol_demangle (parsed_symbol *sym) { if (VERBOSE) printf ("/*FIXME: %s: unknown data*/\n", sym->symbol); + free (function_name); return -1; } sym->flags |= SYM_DATA; @@ -223,6 +226,7 @@ int symbol_demangle (parsed_symbol *sym) is_static ? "static_" : "_", function_name); sym->arg_text[0] = str_create (3, ct.expression, " ", sym->arg_name[0]); FREE_CT (ct); + free (function_name); return 0; break; @@ -238,8 +242,10 @@ int symbol_demangle (parsed_symbol *sym) if (VERBOSE) puts ("Demangled symbol OK [vtable]"); + free (function_name); return 0; } + free (function_name); return -1; break; @@ -284,6 +290,7 @@ int symbol_demangle (parsed_symbol *sym) break; /* FIXME: G,H / O,P / W,X are private / protected / public thunks */ default: + free (function_name); return -1; } @@ -297,6 +304,7 @@ int symbol_demangle (parsed_symbol *sym) case 'C': is_const = CT_VOLATILE; break; case 'D': is_const = (CT_CONST | CT_VOLATILE); break; default: + free (function_name); return -1; } } @@ -327,6 +335,7 @@ int symbol_demangle (parsed_symbol *sym) sym->flags |= SYM_STDCALL; break; default: + free (function_name); return -1; } @@ -355,8 +364,10 @@ int symbol_demangle (parsed_symbol *sym) if (*name != '@') { INIT_CT (ct); - if (!demangle_datatype(&name, &ct, sym)) + if (!demangle_datatype(&name, &ct, sym)) { + free (function_name); return -1; + } if (strcmp (ct.expression, "void")) { @@ -381,8 +392,10 @@ int symbol_demangle (parsed_symbol *sym) /* Functions are always terminated by 'Z'. If we made it this far and * Don't find it, we have incorrectly identified a data type. */ - if (*name != 'Z') + if (*name != 'Z') { + free (function_name); return -1; + } /* Note: '()' after 'Z' means 'throws', but we don't care here */
1
0
0
0
Peter Oberndorfer : ntdll: Test that shows RtlRaiseException with EXCEPTION_BREAKPOINT mangles Eip of context .
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: b54cecab406f93197a8bf6b1a53cc20e66dc25ab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b54cecab406f93197a8bf6b1a…
Author: Peter Oberndorfer <kumbayo84(a)arcor.de> Date: Mon Feb 12 21:22:37 2007 +0100 ntdll: Test that shows RtlRaiseException with EXCEPTION_BREAKPOINT mangles Eip of context. --- dlls/ntdll/tests/exception.c | 85 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 85 insertions(+), 0 deletions(-) diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index d18f3d2..e892bc6 100644 --- a/dlls/ntdll/tests/exception.c +++ b/dlls/ntdll/tests/exception.c @@ -39,6 +39,7 @@ static struct _TEB * (WINAPI *pNtCurrentTeb)(void); static NTSTATUS (WINAPI *pNtGetContextThread)(HANDLE,CONTEXT*); static NTSTATUS (WINAPI *pNtSetContextThread)(HANDLE,CONTEXT*); +static NTSTATUS (WINAPI *pRtlRaiseException)(EXCEPTION_RECORD *rec); static void *code_mem; /* Test various instruction combinations that cause a protection fault on the i386, @@ -184,6 +185,79 @@ static void run_exception_test(const voi pNtCurrentTeb()->Tib.ExceptionList = exc_frame.frame.Prev; } +static DWORD rtlraiseexception_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_RECORD *frame, + CONTEXT *context, EXCEPTION_REGISTRATION_RECORD **dispatcher ) +{ + trace( "exception: %08x flags:%x addr:%p context: Eip:%x\n", + rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, context->Eip ); + + todo_wine { + ok(rec->ExceptionAddress == (char *)code_mem + 0xb, "ExceptionAddress at %p instead of %p\n", + rec->ExceptionAddress, (char *)code_mem + 0xb); + } + + /* check that context.Eip is fixed up only for EXCEPTION_BREAKPOINT + * even if raised by RtlRaiseException + */ + if(rec->ExceptionCode == EXCEPTION_BREAKPOINT) + { + todo_wine { + ok(context->Eip == (DWORD)code_mem + 0xa, "Eip at %x instead of %x\n", + context->Eip, (DWORD)code_mem + 0xa); + } + } + else + { + ok(context->Eip == (DWORD)code_mem + 0xb, "Eip at %x instead of %x\n", + context->Eip, (DWORD)code_mem + 0xb); + } + + /* Eip in context is decreased by 1 + * Increase it again, else execution will continue in the middle of a instruction */ + if(rec->ExceptionCode == EXCEPTION_BREAKPOINT && (context->Eip == (DWORD)code_mem + 0xa)) + context->Eip += 1; + return ExceptionContinueExecution; +} + + +static const BYTE call_one_arg_code[] = { + 0x8b, 0x44, 0x24, 0x08, /* mov 0x8(%esp),%eax */ + 0x50, /* push %eax */ + 0x8b, 0x44, 0x24, 0x08, /* mov 0x8(%esp),%eax */ + 0xff, 0xd0, /* call *%eax */ + 0x90, /* nop */ + 0x90, /* nop */ + 0x90, /* nop */ + 0x90, /* nop */ + 0xc3, /* ret */ +}; + + +static void run_rtlraiseexception_test(DWORD exceptioncode) +{ + + EXCEPTION_REGISTRATION_RECORD frame; + EXCEPTION_RECORD record; + + void (*func)(void* function, EXCEPTION_RECORD* record) = code_mem; + + record.ExceptionCode = exceptioncode; + record.ExceptionFlags = 0; + record.ExceptionRecord = NULL; + record.ExceptionAddress = NULL; /* does not matter, copied return address */ + record.NumberParameters = 0; + + frame.Handler = rtlraiseexception_handler; + frame.Prev = pNtCurrentTeb()->Tib.ExceptionList; + + memcpy(code_mem, call_one_arg_code, sizeof(call_one_arg_code)); + + pNtCurrentTeb()->Tib.ExceptionList = &frame; + func(pRtlRaiseException, &record); + pNtCurrentTeb()->Tib.ExceptionList = frame.Prev; +} + + static DWORD handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, EXCEPTION_REGISTRATION_RECORD **dispatcher ) { @@ -391,6 +465,8 @@ static void test_exceptions(void) pNtGetContextThread = (void *)GetProcAddress( GetModuleHandleA("ntdll.dll"), "NtGetContextThread" ); pNtSetContextThread = (void *)GetProcAddress( GetModuleHandleA("ntdll.dll"), "NtSetContextThread" ); + pRtlRaiseException = (void *)GetProcAddress( GetModuleHandleA("ntdll.dll"), "RtlRaiseException" ); + if (!pNtGetContextThread || !pNtSetContextThread) { trace( "NtGetContextThread/NtSetContextThread not found, skipping tests\n" ); @@ -400,6 +476,15 @@ static void test_exceptions(void) /* test handling of debug registers */ run_exception_test(dreg_handler, NULL, &segfault_code, sizeof(segfault_code)); + if (pRtlRaiseException) + { + run_rtlraiseexception_test(0x12345); + run_rtlraiseexception_test(EXCEPTION_BREAKPOINT); + run_rtlraiseexception_test(EXCEPTION_INVALID_HANDLE); + } + else + skip( "RtlRaiseException not found\n" ); + ctx.ContextFlags = CONTEXT_DEBUG_REGISTERS; res = pNtGetContextThread(GetCurrentThread(), &ctx); ok (res == STATUS_SUCCESS,"NtGetContextThread failed with %x\n", res);
1
0
0
0
Michael Stefaniuc : atl: Fix a comparison between signed and unsigned.
by Alexandre Julliard
13 Feb '07
13 Feb '07
Module: wine Branch: master Commit: 90c0ffd45ec4ee655405977cc27bd4a5b118f745 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=90c0ffd45ec4ee655405977cc…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Feb 13 00:13:00 2007 +0100 atl: Fix a comparison between signed and unsigned. --- dlls/atl/registrar.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c index 612ebda..6fa2fbd 100644 --- a/dlls/atl/registrar.c +++ b/dlls/atl/registrar.c @@ -360,7 +360,7 @@ static HRESULT do_process_root_key(LPCOL LPCOLESTR iter = data; strbuf buf; HRESULT hres = S_OK; - int i; + unsigned int i; strbuf_init(&buf); hres = get_word(&iter, &buf);
1
0
0
0
← Newer
1
...
48
49
50
51
52
53
54
...
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