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
October 2006
----- 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
1032 discussions
Start a n
N
ew thread
Mikołaj Zalewski : resources: Change Dutch sublanguage code to SUBLANG_NEUTRAL.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: 58bd35c8c5b36733552347f3c3d7d380db1378b0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=58bd35c8c5b36733552347f3c…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Tue Oct 24 10:46:09 2006 +0200 resources: Change Dutch sublanguage code to SUBLANG_NEUTRAL. --- dlls/avifil32/avifile_Nl.rc | 2 +- dlls/comctl32/comctl_Nl.rc | 2 +- dlls/comdlg32/cdlg_Nl.rc | 2 +- dlls/gphoto2.ds/gphoto2_Nl.rc | 2 +- dlls/hhctrl.ocx/Nl.rc | 2 +- dlls/mpr/mpr_Nl.rc | 2 +- dlls/msacm32/msacm_Nl.rc | 2 +- dlls/mshtml/Nl.rc | 2 +- dlls/msi/msi_Nl.rc | 2 +- dlls/msrle32/msrle_Nl.rc | 2 +- dlls/oleaut32/oleaut32_Nl.rc | 2 +- dlls/oledlg/oledlg_Nl.rc | 2 +- dlls/sane.ds/sane_Nl.rc | 2 +- dlls/serialui/Nl.rc | 2 +- dlls/setupapi/Nl.rc | 2 +- dlls/shdocvw/Nl.rc | 2 +- dlls/shell32/shell32_Nl.rc | 2 +- dlls/shlwapi/shlwapi_Nl.rc | 2 +- dlls/user/resources/user32_Nl.rc | 2 +- dlls/wineps.drv/wps_Nl.rc | 2 +- dlls/wininet/wininet_Nl.rc | 2 +- dlls/winmm/winmm_Nl.rc | 2 +- dlls/winspool.drv/Nl.rc | 2 +- dlls/wldap32/wldap32_Nl.rc | 2 +- programs/clock/Nl.rc | 2 +- programs/cmd/Nl.rc | 2 +- programs/cmdlgtst/Nl.rc | 2 +- programs/notepad/Nl.rc | 2 +- programs/progman/Nl.rc | 18 +++++++++--------- programs/regedit/Nl.rc | 2 +- programs/start/Nl.rc | 4 ++-- programs/taskmgr/Nl.rc | 2 +- programs/view/Nl.rc | 2 +- programs/winecfg/Nl.rc | 2 +- programs/wineconsole/wineconsole_Nl.rc | 2 +- programs/winefile/Nl.rc | 2 +- programs/winemine/Nl.rc | 2 +- programs/winhelp/Nl.rc | 4 ++-- programs/wordpad/Nl.rc | 2 +- 39 files changed, 49 insertions(+), 49 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=58bd35c8c5b3673355234…
1
0
0
0
Alexandre Julliard : notepad: Fallback to default position if saved position if off-screen.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: cd5a04fd95f08282f93cfcbe4a4ceacc27f92d4c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cd5a04fd95f08282f93cfcbe4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Oct 24 12:27:28 2006 +0200 notepad: Fallback to default position if saved position if off-screen. --- programs/notepad/main.c | 60 ++++++++++++++++++++++++++++------------------ programs/notepad/main.h | 5 ---- 2 files changed, 36 insertions(+), 29 deletions(-) diff --git a/programs/notepad/main.c b/programs/notepad/main.c index 3ffa14b..4012c84 100644 --- a/programs/notepad/main.c +++ b/programs/notepad/main.c @@ -34,6 +34,7 @@ #include "notepad_res.h" NOTEPAD_GLOBALS Globals; static ATOM aFINDMSGSTRING; +static RECT main_rect; static const WCHAR notepad_reg_key[] = {'S','o','f','t','w','a','r','e','\\', 'M','i','c','r','o','s','o','f','t','\\','N','o','t','e','p','a','d','\0'}; @@ -111,20 +112,15 @@ static VOID NOTEPAD_SaveSettingToRegistr REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, &disp) == ERROR_SUCCESS) { DWORD data; - RECT rect; - - GetWindowRect(Globals.hMainWnd, &rect); - Globals.iWindowPosX = rect.left; - Globals.iWindowPosY = rect.top; - Globals.iWindowPosDX = rect.right - rect.left; - Globals.iWindowPosDY = rect.bottom - rect.top; -#define SET_NOTEPAD_REG(hkey, value_name, value_data) do { DWORD data = (DWORD)value_data; RegSetValueEx(hkey, value_name, 0, REG_DWORD, (LPBYTE)&data, sizeof(DWORD)); }while(0) + GetWindowRect(Globals.hMainWnd, &main_rect); + +#define SET_NOTEPAD_REG(hkey, value_name, value_data) do { DWORD data = (DWORD)(value_data); RegSetValueEx(hkey, value_name, 0, REG_DWORD, (LPBYTE)&data, sizeof(DWORD)); }while(0) SET_NOTEPAD_REG(hkey, value_fWrap, Globals.bWrapLongLines); - SET_NOTEPAD_REG(hkey, value_iWindowPosX, Globals.iWindowPosX); - SET_NOTEPAD_REG(hkey, value_iWindowPosY, Globals.iWindowPosY); - SET_NOTEPAD_REG(hkey, value_iWindowPosDX, Globals.iWindowPosDX); - SET_NOTEPAD_REG(hkey, value_iWindowPosDY, Globals.iWindowPosDY); + SET_NOTEPAD_REG(hkey, value_iWindowPosX, main_rect.left); + SET_NOTEPAD_REG(hkey, value_iWindowPosY, main_rect.top); + SET_NOTEPAD_REG(hkey, value_iWindowPosDX, main_rect.right - main_rect.left); + SET_NOTEPAD_REG(hkey, value_iWindowPosDY, main_rect.bottom - main_rect.top); SET_NOTEPAD_REG(hkey, value_lfCharSet, Globals.lfFont.lfCharSet); SET_NOTEPAD_REG(hkey, value_lfClipPrecision, Globals.lfFont.lfClipPrecision); SET_NOTEPAD_REG(hkey, value_lfEscapement, Globals.lfFont.lfEscapement); @@ -158,15 +154,14 @@ static VOID NOTEPAD_LoadSettingFromRegis { static const WCHAR systemW[] = { 'S','y','s','t','e','m','\0' }; HKEY hkey; - INT base_length; + INT base_length, dx, dy; base_length = (GetSystemMetrics(SM_CXSCREEN) > GetSystemMetrics(SM_CYSCREEN))? GetSystemMetrics(SM_CYSCREEN) : GetSystemMetrics(SM_CXSCREEN); - Globals.iWindowPosX = 0; - Globals.iWindowPosY = 0; - Globals.iWindowPosDX = base_length * .95; - Globals.iWindowPosDY = Globals.iWindowPosDX * 3 / 4; + dx = base_length * .95; + dy = dx * 3 / 4; + SetRect( &main_rect, 0, 0, dx, dy ); Globals.bWrapLongLines = TRUE; @@ -192,10 +187,10 @@ static VOID NOTEPAD_LoadSettingFromRegis #define QUERY_NOTEPAD_REG(hkey, value_name, ret) do { DWORD type, data; DWORD size = sizeof(DWORD); if(RegQueryValueEx(hkey, value_name, 0, &type, (LPBYTE)&data, &size) == ERROR_SUCCESS) if(type == REG_DWORD) ret = (typeof(ret))data; } while(0) QUERY_NOTEPAD_REG(hkey, value_fWrap, Globals.bWrapLongLines); - QUERY_NOTEPAD_REG(hkey, value_iWindowPosX, Globals.iWindowPosX); - QUERY_NOTEPAD_REG(hkey, value_iWindowPosY, Globals.iWindowPosY); - QUERY_NOTEPAD_REG(hkey, value_iWindowPosDX, Globals.iWindowPosDX); - QUERY_NOTEPAD_REG(hkey, value_iWindowPosDY, Globals.iWindowPosDY); + QUERY_NOTEPAD_REG(hkey, value_iWindowPosX, main_rect.left); + QUERY_NOTEPAD_REG(hkey, value_iWindowPosY, main_rect.top); + QUERY_NOTEPAD_REG(hkey, value_iWindowPosDX, dx); + QUERY_NOTEPAD_REG(hkey, value_iWindowPosDY, dy); QUERY_NOTEPAD_REG(hkey, value_lfCharSet, Globals.lfFont.lfCharSet); QUERY_NOTEPAD_REG(hkey, value_lfClipPrecision, Globals.lfFont.lfClipPrecision); QUERY_NOTEPAD_REG(hkey, value_lfEscapement, Globals.lfFont.lfEscapement); @@ -209,6 +204,9 @@ #define QUERY_NOTEPAD_REG(hkey, value_na QUERY_NOTEPAD_REG(hkey, value_lfWeight, Globals.lfFont.lfWeight); #undef QUERY_NOTEPAD_REG + main_rect.right = main_rect.left + dx; + main_rect.bottom = main_rect.top + dy; + size = sizeof(DWORD); if(RegQueryValueEx(hkey, value_iPointSize, 0, &type, (LPBYTE)&data, &size) == ERROR_SUCCESS) if(type == REG_DWORD) @@ -593,6 +591,9 @@ int PASCAL WinMain(HINSTANCE hInstance, MSG msg; HACCEL hAccel; WNDCLASSEX class; + HMONITOR monitor; + MONITORINFO info; + INT x, y; static const WCHAR className[] = {'N','o','t','e','p','a','d',0}; static const WCHAR winName[] = {'N','o','t','e','p','a','d',0}; @@ -616,10 +617,21 @@ int PASCAL WinMain(HINSTANCE hInstance, /* Setup windows */ + monitor = MonitorFromRect( &main_rect, MONITOR_DEFAULTTOPRIMARY ); + info.cbSize = sizeof(info); + GetMonitorInfoW( monitor, &info ); + + x = main_rect.left; + y = main_rect.top; + if (main_rect.left >= info.rcWork.right || + main_rect.top >= info.rcWork.bottom || + main_rect.right < info.rcWork.left || + main_rect.bottom < info.rcWork.top) + x = y = CW_USEDEFAULT; + Globals.hMainWnd = - CreateWindow(className, winName, WS_OVERLAPPEDWINDOW, - Globals.iWindowPosX, Globals.iWindowPosY, - Globals.iWindowPosDX, Globals.iWindowPosDY, + CreateWindow(className, winName, WS_OVERLAPPEDWINDOW, x, y, + main_rect.right - main_rect.left, main_rect.bottom - main_rect.top, NULL, NULL, Globals.hInstance, NULL); if (!Globals.hMainWnd) { diff --git a/programs/notepad/main.h b/programs/notepad/main.h index 075a248..a0c5e5e 100644 --- a/programs/notepad/main.h +++ b/programs/notepad/main.h @@ -45,11 +45,6 @@ typedef struct WCHAR szHeader[MAX_PATH]; WCHAR szFooter[MAX_PATH]; - INT iWindowPosX; - INT iWindowPosY; - INT iWindowPosDX; - INT iWindowPosDY; - FINDREPLACE find; FINDREPLACE lastFind; HGLOBAL hDevMode; /* printer mode */
1
0
0
0
Alexandre Julliard : user: Make sure the desktop window exists before calling monitor functions.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: 1dc38cf26b2ee0c1c2c37e9ac53dfd20a726dc6e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1dc38cf26b2ee0c1c2c37e9ac…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Oct 24 12:22:43 2006 +0200 user: Make sure the desktop window exists before calling monitor functions. --- dlls/user/misc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/user/misc.c b/dlls/user/misc.c index 4cc1105..842819b 100644 --- a/dlls/user/misc.c +++ b/dlls/user/misc.c @@ -396,6 +396,9 @@ HMONITOR WINAPI MonitorFromRect( LPRECT { struct monitor_enum_info info; + /* make sure the desktop window exists */ + GetDesktopWindow(); + info.rect = *rect; info.max_area = 0; info.min_distance = ~0u;
1
0
0
0
lostwages/templates/en git.template
by Jeremy Newman
24 Oct '06
24 Oct '06
ChangeSet ID: 29227 CVSROOT: /opt/cvs-commit Module name: lostwages Changes by: jnewman(a)winehq.org 2006/10/24 10:47:48 Modified files: templates/en : git.template Log message: fix broken horizonal line images, need to use the {$root} template var Patch:
http://cvs.winehq.org/patch.py?id=29227
Old revision New revision Changes Path 1.1 1.2 +2 -2 lostwages/templates/en/git.template Index: lostwages/templates/en/git.template diff -u -p lostwages/templates/en/git.template:1.1 lostwages/templates/en/git.template:1.2 --- lostwages/templates/en/git.template:1.1 24 Oct 2006 15:47:48 -0000 +++ lostwages/templates/en/git.template 24 Oct 2006 15:47:48 -0000 @@ -22,7 +22,7 @@ such as the Linux Kernel source. </p> <li><a href="#sourcetree">Source Tree Browsing via the Web</a> </ol> -<p><img src="./images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p> +<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p> <a name="clone" class="hidden"></a> @@ -37,7 +37,7 @@ such as the Linux Kernel source. </p> </td></tr> </table> -<p><img src="./images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p> +<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p> <a name="uptodate" class="hidden"></a>
1
0
0
0
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : oledlg: Updated Korean resource.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: 41951dc1246a49d21a48ec60cb74eb80b88ecb16 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=41951dc1246a49d21a48ec60c…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Tue Oct 24 16:14:52 2006 +0900 oledlg: Updated Korean resource. --- dlls/oledlg/oledlg_Ko.rc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oledlg/oledlg_Ko.rc b/dlls/oledlg/oledlg_Ko.rc index 762e85f..fe5eaf9 100644 --- a/dlls/oledlg/oledlg_Ko.rc +++ b/dlls/oledlg/oledlg_Ko.rc @@ -91,5 +91,5 @@ STRINGTABLE DISCARDABLE IDS_PS_NON_OLE "����� ������ Ŭ�������� ���� �����ϱ�." IDS_PS_UNKNOWN_TYPE "�˼� ���� ����" IDS_PS_UNKNOWN_SRC "�˼� ���� ����" - IDS_PS_UNKNOWN_APP "�� ���α��� �̰����� ����������ϴ�" + IDS_PS_UNKNOWN_APP "�� ���α��� �� �� ���� ���α����� ����������ϴ�" }
1
0
0
0
Mikołaj Zalewski : resources: Change German sublanguage code to SUBLANG_NEUTRAL.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: e32aa5570355c10870580c64905e5bd53608581b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e32aa5570355c10870580c649…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Tue Oct 24 10:44:14 2006 +0200 resources: Change German sublanguage code to SUBLANG_NEUTRAL. --- dlls/avifil32/avifile_De.rc | 2 +- dlls/comctl32/comctl_De.rc | 2 +- dlls/comdlg32/cdlg_De.rc | 2 +- dlls/crypt32/crypt32_De.rc | 2 +- dlls/devenum/devenum.rc | 2 +- dlls/hhctrl.ocx/De.rc | 2 +- dlls/iccvid/iccvid_De.rc | 2 +- dlls/kernel32/nls/winerr_deu.mc | 2 +- dlls/mpr/mpr_De.rc | 2 +- dlls/msacm32/msacm_De.rc | 2 +- dlls/mshtml/De.rc | 2 +- dlls/msi/msi_De.rc | 2 +- dlls/msrle32/msrle_De.rc | 2 +- dlls/msvfw32/msvfw32_De.rc | 2 +- dlls/msvidc32/msvidc32_De.rc | 2 +- dlls/oleaut32/oleaut32_De.rc | 2 +- dlls/oledlg/oledlg_De.rc | 2 +- dlls/sane.ds/sane_De.rc | 2 +- dlls/serialui/De.rc | 2 +- dlls/setupapi/De.rc | 2 +- dlls/shdocvw/De.rc | 2 +- dlls/shell32/shell32_De.rc | 2 +- dlls/shlwapi/shlwapi_De.rc | 2 +- dlls/user/resources/user32_De.rc | 2 +- dlls/wineps.drv/wps_De.rc | 2 +- dlls/wininet/wininet_De.rc | 2 +- dlls/winmm/winmm_De.rc | 2 +- dlls/winspool.drv/De.rc | 2 +- dlls/wldap32/wldap32_De.rc | 2 +- programs/clock/De.rc | 6 +++--- programs/cmd/De.rc | 2 +- programs/cmdlgtst/De.rc | 2 +- programs/notepad/De.rc | 2 +- programs/progman/De.rc | 20 ++++++++++---------- programs/regedit/De.rc | 2 +- programs/start/De.rc | 4 ++-- programs/taskmgr/De.rc | 2 +- programs/view/De.rc | 2 +- programs/winecfg/De.rc | 2 +- programs/wineconsole/wineconsole_De.rc | 2 +- programs/winefile/De.rc | 4 ++-- programs/winemine/De.rc | 2 +- programs/winhelp/De.rc | 4 ++-- programs/wordpad/De.rc | 2 +- 44 files changed, 58 insertions(+), 58 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e32aa5570355c10870580…
1
0
0
0
Mike McCormack : msi: Split code to get a file' s verion into a separate comment.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: d1723de5661a502c847d6d05ef9512ec622ee113 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d1723de5661a502c847d6d05e…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Oct 24 17:37:26 2006 +0900 msi: Split code to get a file's verion into a separate comment. --- dlls/msi/action.c | 77 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 44 insertions(+), 33 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 66504e8..84275f9 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -1957,7 +1957,40 @@ static UINT ITERATE_CostFinalizeConditio return ERROR_SUCCESS; } -/* +LPWSTR msi_get_disk_file_version( LPCWSTR filename ) +{ + static const WCHAR name_fmt[] = + {'%','u','.','%','u','.','%','u','.','%','u',0}; + static WCHAR name[] = {'\\',0}; + VS_FIXEDFILEINFO *lpVer; + WCHAR filever[0x100]; + LPVOID version; + DWORD versize; + DWORD handle; + UINT sz; + + TRACE("%s\n", debugstr_w(filename)); + + versize = GetFileVersionInfoSizeW( filename, &handle ); + if (!versize) + return NULL; + + version = msi_alloc( versize ); + GetFileVersionInfoW( filename, 0, versize, version ); + + VerQueryValueW( version, name, (LPVOID*)&lpVer, &sz ); + msi_free( version ); + + sprintfW( filever, name_fmt, + HIWORD(lpVer->dwFileVersionMS), + LOWORD(lpVer->dwFileVersionMS), + HIWORD(lpVer->dwFileVersionLS), + LOWORD(lpVer->dwFileVersionLS)); + + return strdupW( filever ); +} + +/* * A lot is done in this function aside from just the costing. * The costing needs to be implemented at some point but for now I am going * to focus on the directory building @@ -1980,11 +2013,11 @@ static UINT ACTION_CostFinalize(MSIPACKA MSIFILE *file; UINT rc; MSIQUERY * view; - LPWSTR level; + LPWSTR level, file_version; if ( 1 == msi_get_property_int( package, szCosting, 0 ) ) return ERROR_SUCCESS; - + TRACE("Building Directory properties\n"); rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view); @@ -2014,14 +2047,14 @@ static UINT ACTION_CostFinalize(MSIPACKA msi_free(file->TargetPath); TRACE("file %s is named %s\n", - debugstr_w(file->File),debugstr_w(file->FileName)); + debugstr_w(file->File), debugstr_w(file->FileName)); file->TargetPath = build_directory_name(2, p, file->FileName); msi_free(p); TRACE("file %s resolves to %s\n", - debugstr_w(file->File),debugstr_w(file->TargetPath)); + debugstr_w(file->File), debugstr_w(file->TargetPath)); if (GetFileAttributesW(file->TargetPath) == INVALID_FILE_ATTRIBUTES) { @@ -2030,42 +2063,20 @@ static UINT ACTION_CostFinalize(MSIPACKA continue; } - if (file->Version) + if (file->Version && + (file_version = msi_get_disk_file_version( file->TargetPath ))) { - DWORD handle; - DWORD versize; - UINT sz; - LPVOID version; - static WCHAR name[] = {'\\',0}; - static const WCHAR name_fmt[] = - {'%','u','.','%','u','.','%','u','.','%','u',0}; - WCHAR filever[0x100]; - VS_FIXEDFILEINFO *lpVer; - - TRACE("Version comparison..\n"); - versize = GetFileVersionInfoSizeW(file->TargetPath,&handle); - version = msi_alloc(versize); - GetFileVersionInfoW(file->TargetPath, 0, versize, version); - - VerQueryValueW(version, name, (LPVOID*)&lpVer, &sz); - - sprintfW(filever,name_fmt, - HIWORD(lpVer->dwFileVersionMS), - LOWORD(lpVer->dwFileVersionMS), - HIWORD(lpVer->dwFileVersionLS), - LOWORD(lpVer->dwFileVersionLS)); - TRACE("new %s old %s\n", debugstr_w(file->Version), - debugstr_w(filever)); - if (strcmpiW(filever,file->Version)<0) + debugstr_w(file_version)); + /* FIXME: seems like a bad way to compare version numbers */ + if (lstrcmpiW(file_version, file->Version)<0) { file->state = msifs_overwrite; - /* FIXME: cost should be diff in size */ comp->Cost += file->FileSize; } else file->state = msifs_present; - msi_free(version); + msi_free( file_version ); } else file->state = msifs_present;
1
0
0
0
Mike McCormack : riched20: Create macro functions for allocating and freeing memory.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: 8939587b19027f6582340ef42099b594459dfdec URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8939587b19027f6582340ef42…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Oct 24 14:26:28 2006 +0900 riched20: Create macro functions for allocating and freeing memory. --- dlls/riched20/clipboard.c | 8 ++++---- dlls/riched20/editor.c | 4 ++-- dlls/riched20/editor.h | 24 ++++++++++++++++++++---- dlls/riched20/reader.c | 20 +++----------------- dlls/riched20/richole.c | 4 ++-- 5 files changed, 31 insertions(+), 29 deletions(-) diff --git a/dlls/riched20/clipboard.c b/dlls/riched20/clipboard.c index 3bb8b7b..99d9503 100644 --- a/dlls/riched20/clipboard.c +++ b/dlls/riched20/clipboard.c @@ -77,7 +77,7 @@ static ULONG WINAPI EnumFormatImpl_Relea if(!ref) { GlobalFree(This->fmtetc); - HeapFree(GetProcessHeap(), 0, This); + richedit_free(This); } return ref; @@ -152,7 +152,7 @@ static HRESULT EnumFormatImpl_Create(FOR EnumFormatImpl *ret; TRACE("\n"); - ret = HeapAlloc(GetProcessHeap(), 0, sizeof(EnumFormatImpl)); + ret = richedit_alloc(sizeof(EnumFormatImpl)); ret->lpVtbl = &VT_EnumFormatImpl; ret->ref = 1; ret->cur = 0; @@ -195,7 +195,7 @@ static ULONG WINAPI DataObjectImpl_Relea if(This->unicode) GlobalFree(This->unicode); if(This->rtf) GlobalFree(This->rtf); if(This->fmtetc) GlobalFree(This->fmtetc); - HeapFree(GetProcessHeap(), 0, This); + richedit_free(This); } return ref; @@ -388,7 +388,7 @@ HRESULT ME_GetDataObject(ME_TextEditor * DataObjectImpl *obj; TRACE("(%p,%d,%d)\n", editor, lpchrg->cpMin, lpchrg->cpMax); - obj = HeapAlloc(GetProcessHeap(), 0, sizeof(DataObjectImpl)); + obj = richedit_alloc(sizeof(DataObjectImpl)); if(cfRTF == 0) cfRTF = RegisterClipboardFormatA("Rich Text Format"); diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 0969787..93aed91 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -1998,7 +1998,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND /* potentially each char may be a CR, why calculate the exact value with O(N) when we can just take a bigger buffer? :) */ int crlfmul = (ex->flags & GT_USECRLF) ? 2 : 1; - LPWSTR buffer = HeapAlloc(GetProcessHeap(), 0, (crlfmul*nCount + 1) * sizeof(WCHAR)); + LPWSTR buffer = richedit_alloc((crlfmul*nCount + 1) * sizeof(WCHAR)); DWORD buflen = ex->cb; LRESULT rc; DWORD flags = 0; @@ -2006,7 +2006,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND buflen = ME_GetTextW(editor, buffer, nStart, nCount, ex->flags & GT_USECRLF); rc = WideCharToMultiByte(ex->codepage, flags, buffer, -1, (LPSTR)lParam, ex->cb, ex->lpDefaultChar, ex->lpUsedDefaultChar); - HeapFree(GetProcessHeap(),0,buffer); + richedit_free(buffer); return rc; } } diff --git a/dlls/riched20/editor.h b/dlls/riched20/editor.h index bb3be88..87742c5 100644 --- a/dlls/riched20/editor.h +++ b/dlls/riched20/editor.h @@ -21,9 +21,26 @@ #include "editstr.h" #include "wine/unicode.h" -#define ALLOC_OBJ(type) HeapAlloc(me_heap, 0, sizeof(type)) -#define ALLOC_N_OBJ(type, count) HeapAlloc(me_heap, 0, (count)*sizeof(type)) -#define FREE_OBJ(ptr) HeapFree(me_heap, 0, ptr) +extern HANDLE me_heap; + +static inline void *richedit_alloc( size_t len ) +{ + return HeapAlloc( me_heap, 0, len ); +} + +static inline BOOL richedit_free( void *ptr ) +{ + return HeapFree( me_heap, 0, ptr ); +} + +static inline void *richedit_realloc( void *ptr, size_t len ) +{ + return HeapReAlloc( me_heap, 0, ptr, len ); +} + +#define ALLOC_OBJ(type) richedit_alloc(sizeof(type)) +#define ALLOC_N_OBJ(type, count) richedit_alloc((count)*sizeof(type)) +#define FREE_OBJ(ptr) richedit_free(ptr) #define RUN_IS_HIDDEN(run) ((run)->style->fmt.dwMask & CFM_HIDDEN \ && (run)->style->fmt.dwEffects & CFE_HIDDEN) @@ -264,7 +281,6 @@ ME_DisplayItem *ME_FindItemAtOffset(ME_T void ME_StreamInFill(ME_InStream *stream); int ME_AutoURLDetect(ME_TextEditor *editor, WCHAR curChar); extern int me_debug; -extern HANDLE me_heap; extern void DoWrap(ME_TextEditor *editor); /* writer.c */ diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c index f3a917c..b2fb444 100644 --- a/dlls/riched20/reader.c +++ b/dlls/riched20/reader.c @@ -86,17 +86,9 @@ static void RTFPutCodePageChar(RTF_Info * Return pointer to block of size bytes, or NULL if there's * not enough memory available. */ -static inline void *RTFAlloc(int size) -{ - return HeapAlloc(me_heap, 0, size); -} - - -static inline void * RTFReAlloc(void *ptr, int size) -{ - return HeapReAlloc(me_heap, 0, ptr, size); -} - +#define RTFAlloc(size) richedit_alloc(size) +#define RTFReAlloc(ptr, size) richedit_realloc(ptr, size) +#define RTFFree(ptr) richedit_free(ptr) /* * Saves a string on the heap and returns a pointer to it. @@ -112,12 +104,6 @@ static inline char *RTFStrSave(char *s) } -static inline void RTFFree(void *p) -{ - HeapFree(me_heap, 0, p); -} - - /* ---------------------------------------------------------------------- */ diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c index 4601a1a..0585e43 100644 --- a/dlls/riched20/richole.c +++ b/dlls/riched20/richole.c @@ -112,7 +112,7 @@ IRichEditOle_fnRelease(IRichEditOle *me) if (!ref) { TRACE ("Destroying %p\n", This); - HeapFree(GetProcessHeap(),0,This); + richedit_free(This); } return ref; } @@ -529,7 +529,7 @@ LRESULT CreateIRichEditOle(ME_TextEditor { IRichEditOleImpl *reo; - reo = HeapAlloc(GetProcessHeap(), 0, sizeof(IRichEditOleImpl)); + reo = richedit_alloc(sizeof(IRichEditOleImpl)); if (!reo) return 0;
1
0
0
0
Mike McCormack : riched20: Make sure to use GlobalAlloc with GlobalFree.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: e971e0fb89e4c0db6149eaedb706a5ab6d4de7e9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e971e0fb89e4c0db6149eaedb…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Oct 24 14:24:48 2006 +0900 riched20: Make sure to use GlobalAlloc with GlobalFree. --- dlls/riched20/clipboard.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/riched20/clipboard.c b/dlls/riched20/clipboard.c index 72529a0..3bb8b7b 100644 --- a/dlls/riched20/clipboard.c +++ b/dlls/riched20/clipboard.c @@ -76,7 +76,7 @@ static ULONG WINAPI EnumFormatImpl_Relea TRACE("(%p) ref=%d\n", This, ref); if(!ref) { - HeapFree(GetProcessHeap(), 0, This->fmtetc); + GlobalFree(This->fmtetc); HeapFree(GetProcessHeap(), 0, This); } @@ -157,7 +157,7 @@ static HRESULT EnumFormatImpl_Create(FOR ret->ref = 1; ret->cur = 0; ret->fmtetc_cnt = fmtetc_cnt; - ret->fmtetc = HeapAlloc(GetProcessHeap(), 0, fmtetc_cnt*sizeof(FORMATETC)); + ret->fmtetc = GlobalAlloc(GMEM_ZEROINIT, fmtetc_cnt*sizeof(FORMATETC)); memcpy(ret->fmtetc, fmtetc, fmtetc_cnt*sizeof(FORMATETC)); *lplpformatetc = (LPENUMFORMATETC)ret; return S_OK; @@ -400,7 +400,7 @@ HRESULT ME_GetDataObject(ME_TextEditor * obj->fmtetc_cnt = 1; if(editor->mode & TM_RICHTEXT) obj->fmtetc_cnt++; - obj->fmtetc = HeapAlloc(GetProcessHeap(), 0, obj->fmtetc_cnt*sizeof(FORMATETC)); + obj->fmtetc = GlobalAlloc(GMEM_ZEROINIT, obj->fmtetc_cnt*sizeof(FORMATETC)); InitFormatEtc(obj->fmtetc[0], CF_UNICODETEXT, TYMED_HGLOBAL); if(editor->mode & TM_RICHTEXT) { obj->rtf = get_rtf_text(editor, lpchrg);
1
0
0
0
James Hawkins : advpack: Fix the full path check.
by Alexandre Julliard
24 Oct '06
24 Oct '06
Module: wine Branch: master Commit: 615d09f285015e392c66c5873e97c871323f9144 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=615d09f285015e392c66c5873…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Oct 23 18:44:59 2006 -0700 advpack: Fix the full path check. --- dlls/advpack/install.c | 2 +- dlls/advpack/tests/install.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletions(-) diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c index d63a959..b86c70a 100644 --- a/dlls/advpack/install.c +++ b/dlls/advpack/install.c @@ -221,7 +221,7 @@ static BOOL is_full_path(LPWSTR path) if (!path || lstrlenW(path) < MIN_PATH_LEN) return FALSE; - if (path[1] == ':' || (path[0] == '\\' && path[1] == '\\')) + if ((path[1] == ':' && path[2] == '\\') || (path[0] == '\\' && path[1] == '\\')) return TRUE; return FALSE; diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index 00ed378..b594a1e 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -226,6 +226,23 @@ static void test_LaunchINFSection() DeleteFileA("test.inf"); } +static void test_LaunchINFSectionEx() +{ + HRESULT hr; + char cmdline[MAX_PATH]; + + create_inf_file("test.inf"); + + /* try an invalid CAB filename */ + lstrcpy(cmdline, CURR_DIR); + lstrcpy(cmdline, "\\"); + lstrcpy(cmdline, "test.inf,DefaultInstall,c:imacab.cab,4"); + hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); + ok(hr == 0, "Expected 0, got %d\n", hr); + + DeleteFileA("test.inf"); +} + START_TEST(install) { if (!init_function_pointers()) @@ -235,4 +252,5 @@ START_TEST(install) test_RunSetupCommand(); test_LaunchINFSection(); + test_LaunchINFSectionEx(); }
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
104
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
Results per page:
10
25
50
100
200