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 2008
----- 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
1216 discussions
Start a n
N
ew thread
Vijay Kiran Kamuju : include: Add commctrl.rh.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 564dc2bfcca6c222f50dbb51b96df7b210a15d68 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=564dc2bfcca6c222f50dbb51b…
Author: Vijay Kiran Kamuju <infyquest(a)gmail.com> Date: Fri Oct 17 12:35:37 2008 -0400 include: Add commctrl.rh. --- include/Makefile.in | 1 + include/commctrl.rh | 196 +++++++++++++++++++++++++++++++++++++++++++++++++++ include/winresrc.h | 2 +- 3 files changed, 198 insertions(+), 1 deletions(-) diff --git a/include/Makefile.in b/include/Makefile.in index 453d528..d7e85f4 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -100,6 +100,7 @@ SRCDIR_INCLUDES = \ cierror.h \ clusapi.h \ commctrl.h \ + commctrl.rh \ commdlg.h \ compobj.h \ cor.h \ diff --git a/include/commctrl.rh b/include/commctrl.rh new file mode 100644 index 0000000..1f41cdb --- /dev/null +++ b/include/commctrl.rh @@ -0,0 +1,196 @@ +/* + * Copyright (C) 2008 Vijay Kiran Kamuju + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* Header Control */ +#define HDS_HORZ 0x0000 +#define HDS_BUTTONS 0x0002 +#define HDS_HOTTRACK 0x0004 +#define HDS_HIDDEN 0x0008 +#define HDS_DRAGDROP 0x0040 +#define HDS_FULLDRAG 0x0080 +#define HDS_FILTERBAR 0x0100 +#define HDS_FLAT 0x0200 + +/* Rebar Control */ +#define RBS_TOOLTIPS 0x0100 +#define RBS_VARHEIGHT 0x0200 +#define RBS_BANDBORDERS 0x0400 +#define RBS_FIXEDORDER 0x0800 +#define RBS_REGISTERDROP 0x1000 +#define RBS_AUTOSIZE 0x2000 +#define RBS_VERTICALGRIPPER 0x4000 +#define RBS_DBLCLKTOGGLE 0x8000 + +/*Tool tips */ +#define TTS_ALWAYSTIP 0x01 +#define TTS_NOPREFIX 0x02 +#define TTS_NOANIMATE 0x10 +#define TTS_NOFADE 0x20 +#define TTS_BALLOON 0x40 +#define TTS_CLOSE 0x80 + +/* Statusbar Control */ +#define SBARS_SIZEGRIP 0x0100 +#define SBARS_TOOLTIPS 0x0800 +#define SBT_TOOLTIPS 0x0800 + +/* Toolbar Control */ +#define TBS_BOTTOM 0x0000 +#define TBS_HORZ 0x0000 +#define TBS_RIGHT 0x0000 +#define TBS_AUTOTICKS 0x0001 +#define TBS_VERT 0x0002 +#define TBS_LEFT 0x0004 +#define TBS_TOP 0x0004 +#define TBS_BOTH 0x0008 +#define TBS_NOTICKS 0x0010 +#define TBS_ENABLESELRANGE 0x0020 +#define TBS_FIXEDLENGTH 0x0040 +#define TBS_NOTHUMB 0x0080 +#define TBS_TOOLTIPS 0x0100 +#define TBS_REVERSED 0x0200 +#define TBS_DOWNISLEFT 0x0400 + +/* UpDown Control */ +#define UDS_WRAP 0x0001 +#define UDS_SETBUDDYINT 0x0002 +#define UDS_ALIGNRIGHT 0x0004 +#define UDS_ALIGNLEFT 0x0008 +#define UDS_AUTOBUDDY 0x0010 +#define UDS_ARROWKEYS 0x0020 +#define UDS_HORZ 0x0040 +#define UDS_NOTHOUSANDS 0x0080 +#define UDS_HOTTRACK 0x0100 + +/* Progressbar Control */ +#define PBS_SMOOTH 0x01 +#define PBS_VERTICAL 0x04 + +/* Common Control Styles */ +#define CCS_TOP 0x00000001L +#define CCS_NOMOVE 0x00000002L +#define CCS_BOTTOM 0x00000003L +#define CCS_NORESIZE 0x00000004L +#define CCS_NOPARENTALIGN 0x00000008L +#define CCS_ADJUSTABLE 0x00000020L +#define CCS_NODIVIDER 0x00000040L +#define CCS_VERT 0x00000080L +#define CCS_LEFT (CCS_VERT | CCS_TOP) +#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM) +#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY) + +/* Listview Control */ +#define LVS_ALIGNTOP 0x0000 +#define LVS_ICON 0x0000 +#define LVS_REPORT 0x0001 +#define LVS_SMALLICON 0x0002 +#define LVS_LIST 0x0003 +#define LVS_TYPEMASK 0x0003 +#define LVS_SINGLESEL 0x0004 +#define LVS_SHOWSELALWAYS 0x0008 +#define LVS_SORTASCENDING 0x0010 +#define LVS_SORTDESCENDING 0x0020 +#define LVS_SHAREIMAGELISTS 0x0040 +#define LVS_NOLABELWRAP 0x0080 +#define LVS_AUTOARRANGE 0x0100 +#define LVS_EDITLABELS 0x0200 +#define LVS_OWNERDRAWFIXED 0x0400 +#define LVS_ALIGNLEFT 0x0800 +#define LVS_ALIGNMASK 0x0c00 +#define LVS_OWNERDATA 0x1000 +#define LVS_NOSCROLL 0x2000 +#define LVS_NOCOLUMNHEADER 0x4000 +#define LVS_NOSORTHEADER 0x8000 +#define LVS_TYPESTYLEMASK 0xfc00 + +/* Treeview Control */ +#define TVS_HASBUTTONS 0x0001 +#define TVS_HASLINES 0x0002 +#define TVS_LINESATROOT 0x0004 +#define TVS_EDITLABELS 0x0008 +#define TVS_DISABLEDRAGDROP 0x0010 +#define TVS_SHOWSELALWAYS 0x0020 +#define TVS_RTLREADING 0x0040 +#define TVS_NOTOOLTIPS 0x0080 +#define TVS_CHECKBOXES 0x0100 +#define TVS_TRACKSELECT 0x0200 +#define TVS_SINGLEEXPAND 0x0400 +#define TVS_INFOTIP 0x0800 +#define TVS_FULLROWSELECT 0x1000 +#define TVS_NOSCROLL 0x2000 +#define TVS_NONEVENHEIGHT 0x4000 +#define TVS_NOHSCROLL 0x8000 + +/* Tab Control */ +#define TCS_RIGHTJUSTIFY 0x0000 +#define TCS_SINGLELINE 0x0000 +#define TCS_TABS 0x0000 +#define TCS_SCROLLOPPOSITE 0x0001 +#define TCS_BOTTOM 0x0002 +#define TCS_RIGHT 0x0002 +#define TCS_MULTISELECT 0x0004 +#define TCS_FLATBUTTONS 0x0008 +#define TCS_FORCEICONLEFT 0x0010 +#define TCS_FORCELABELLEFT 0x0020 +#define TCS_HOTTRACK 0x0040 +#define TCS_VERTICAL 0x0080 +#define TCS_BUTTONS 0x0100 +#define TCS_MULTILINE 0x0200 +#define TCS_FIXEDWIDTH 0x0400 +#define TCS_RAGGEDRIGHT 0x0800 +#define TCS_FOCUSONBUTTONDOWN 0x1000 +#define TCS_OWNERDRAWFIXED 0x2000 +#define TCS_TOOLTIPS 0x4000 +#define TCS_FOCUSNEVER 0x8000 + +/* Animate Control */ +#define ACS_CENTER 0x0001 +#define ACS_TRANSPARENT 0x0002 +#define ACS_AUTOPLAY 0x0004 +#define ACS_TIMER 0x0008 + +/* Month Calender Control */ +#define MCS_DAYSTATE 0x0001 +#define MCS_MULTISELECT 0x0002 +#define MCS_WEEKNUMBERS 0x0004 +#define MCS_NOTODAYCIRCLE 0x0008 +#define MCS_NOTODAY 0x0010 + +/* Datetime Control */ +#define DTS_SHORTDATEFORMAT 0x0000 +#define DTS_UPDOWN 0x0001 +#define DTS_SHOWNONE 0x0002 +#define DTS_LONGDATEFORMAT 0x0004 +#define DTS_TIMEFORMAT 0x0009 +#define DTS_SHORTDATECENTURYFORMAT 0x000C +#define DTS_APPCANPARSE 0x0010 +#define DTS_RIGHTALIGN 0x0020 + +/* Pager Control */ +#define PGS_VERT 0x00000000 +#define PGS_HORZ 0x00000001 +#define PGS_AUTOSCROLL 0x00000002 +#define PGS_DRAGNDROP 0x00000004 + +/* Native Font Control */ +#define NFS_EDIT 0x0001 +#define NFS_STATIC 0x0002 +#define NFS_LISTCOMBO 0x0004 +#define NFS_BUTTON 0x0008 +#define NFS_ALL 0x0010 +#define NFS_USEFONTASSOC 0x0020 diff --git a/include/winresrc.h b/include/winresrc.h index 380525c..688b922 100644 --- a/include/winresrc.h +++ b/include/winresrc.h @@ -36,7 +36,7 @@ #endif #include <winuser.rh> -/* FIXME: #include <commctrl.rh> */ +#include <commctrl.rh> /* FIXME: #include <dde.rh> */ /* FIXME: #include <winnt.rh> */ #include <dlgs.h>
1
0
0
0
Detlef Riekenberg : shlwapi/tests: Replace RegDeleteTreeW to run the tests again.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 40d74488957fb775a47913377fb6b2b3832a04f6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=40d74488957fb775a47913377…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Fri Oct 17 16:38:55 2008 +0200 shlwapi/tests: Replace RegDeleteTreeW to run the tests again. --- dlls/shlwapi/tests/assoc.c | 59 +++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 33 deletions(-) diff --git a/dlls/shlwapi/tests/assoc.c b/dlls/shlwapi/tests/assoc.c index 2e383bb..aa01814 100644 --- a/dlls/shlwapi/tests/assoc.c +++ b/dlls/shlwapi/tests/assoc.c @@ -32,19 +32,6 @@ static const WCHAR dotBad[] = { '.','b','a','d',0 }; static const WCHAR open[] = { 'o','p','e','n',0 }; static const WCHAR invalid[] = { 'i','n','v','a','l','i','d',0 }; -/* copied from libs/wine/string.c */ -WCHAR *strstrW(const WCHAR *str, const WCHAR *sub) -{ - while (*str) - { - const WCHAR *p1 = str, *p2 = sub; - while (*p1 && *p2 && *p1 == *p2) { p1++; p2++; } - if (!*p2) return (WCHAR *)str; - str++; - } - return NULL; -} - static void test_getstring_bad(void) { HRESULT hr; @@ -145,57 +132,63 @@ static void test_getstring_no_extra(void) LONG ret; HKEY hkey; HRESULT hr; - static const WCHAR dotWinetest[] = { + static const CHAR dotWinetest[] = { '.','w','i','n','e','t','e','s','t',0 }; - static const WCHAR winetestfile[] = { + static const CHAR winetestfile[] = { 'w','i','n','e','t','e','s','t', 'f','i','l','e',0 }; - static const WCHAR winetestfileAction[] = { + static const CHAR winetestfileAction[] = { 'w','i','n','e','t','e','s','t','f','i','l','e', '\\','s','h','e','l','l', '\\','f','o','o', '\\','c','o','m','m','a','n','d',0 }; - static const WCHAR action[] = { + static const CHAR action[] = { 'n','o','t','e','p','a','d','.','e','x','e',0 }; - WCHAR buf[MAX_PATH]; + CHAR buf[MAX_PATH]; DWORD len = MAX_PATH; - ret = RegCreateKeyW(HKEY_CLASSES_ROOT, dotWinetest, &hkey); - if (ret != ERROR_SUCCESS) + buf[0] = '\0'; + ret = RegCreateKeyA(HKEY_CLASSES_ROOT, dotWinetest, &hkey); + if (ret != ERROR_SUCCESS) { skip("failed to create dotWinetest key\n"); - ret = RegSetValueW(hkey, NULL, REG_SZ, winetestfile, - lstrlenW(winetestfile)); + return; + } + + ret = RegSetValueA(hkey, NULL, REG_SZ, winetestfile, lstrlenA(winetestfile)); RegCloseKey(hkey); if (ret != ERROR_SUCCESS) { - RegDeleteTreeW(HKEY_CLASSES_ROOT, dotWinetest); skip("failed to set dotWinetest key\n"); + goto cleanup; } - ret = RegCreateKeyW(HKEY_CLASSES_ROOT, winetestfileAction, &hkey); + ret = RegCreateKeyA(HKEY_CLASSES_ROOT, winetestfileAction, &hkey); if (ret != ERROR_SUCCESS) { - RegDeleteTreeW(HKEY_CLASSES_ROOT, dotWinetest); skip("failed to create winetestfileAction key\n"); + goto cleanup; } - ret = RegSetValueW(hkey, NULL, REG_SZ, action, lstrlenW(action)); + + ret = RegSetValueA(hkey, NULL, REG_SZ, action, lstrlenA(action)); RegCloseKey(hkey); if (ret != ERROR_SUCCESS) { - RegDeleteTreeW(HKEY_CLASSES_ROOT, dotWinetest); - RegDeleteTreeW(HKEY_CLASSES_ROOT, winetestfile); skip("failed to set winetestfileAction key\n"); + goto cleanup; } - hr = AssocQueryStringW(0, ASSOCSTR_EXECUTABLE, dotWinetest, NULL, - buf, &len); + hr = AssocQueryStringA(0, ASSOCSTR_EXECUTABLE, dotWinetest, NULL, buf, &len); expect_hr(S_OK, hr); - ok(strstrW(buf, action) != NULL, "exe path does not contain notepad\n"); - RegDeleteTreeW(HKEY_CLASSES_ROOT, dotWinetest); - RegDeleteTreeW(HKEY_CLASSES_ROOT, winetestfile); + ok(strstr(buf, action) != NULL, + "got '%s' (Expected result to include 'notepad.exe')\n", buf); + +cleanup: + SHDeleteKeyA(HKEY_CLASSES_ROOT, dotWinetest); + SHDeleteKeyA(HKEY_CLASSES_ROOT, winetestfile); + } START_TEST(assoc)
1
0
0
0
Detlef Riekenberg : shlwapi: Fix pointer and size in AssocQueryStringA.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 78c75e20aeff2a35911953c27559e8f5257e5d11 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=78c75e20aeff2a35911953c27…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Fri Oct 17 16:36:59 2008 +0200 shlwapi: Fix pointer and size in AssocQueryStringA. --- dlls/shlwapi/assoc.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/shlwapi/assoc.c b/dlls/shlwapi/assoc.c index 31a8420..0ca8678 100644 --- a/dlls/shlwapi/assoc.c +++ b/dlls/shlwapi/assoc.c @@ -303,6 +303,8 @@ HRESULT WINAPI AssocQueryStringA(ASSOCF cfFlags, ASSOCSTR str, LPCSTR pszAssoc, if (dwLenOut >= MAX_PATH) lpszReturnW = HeapAlloc(GetProcessHeap(), 0, (dwLenOut + 1) * sizeof(WCHAR)); + else + dwLenOut = sizeof(szReturnW) / sizeof(szReturnW[0]); if (!lpszReturnW) hRet = E_OUTOFMEMORY; @@ -312,9 +314,10 @@ HRESULT WINAPI AssocQueryStringA(ASSOCF cfFlags, ASSOCSTR str, LPCSTR pszAssoc, lpszReturnW, &dwLenOut); if (SUCCEEDED(hRet)) - WideCharToMultiByte(CP_ACP,0,szReturnW,-1,pszOut,dwLenOut,0,0); - *pcchOut = dwLenOut; + dwLenOut = WideCharToMultiByte(CP_ACP, 0, lpszReturnW, -1, + pszOut, *pcchOut, NULL, NULL); + *pcchOut = dwLenOut; if (lpszReturnW != szReturnW) HeapFree(GetProcessHeap(), 0, lpszReturnW); }
1
0
0
0
James Hawkins : msi: Use the quoted part of the registry value when searching for a file or directory .
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 03282df13d69a11f0922f3691dbaa76802a61c75 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03282df13d69a11f0922f3691…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:46 2008 -0500 msi: Use the quoted part of the registry value when searching for a file or directory. --- dlls/msi/appsearch.c | 10 ++++++++-- dlls/msi/tests/package.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 1679d80..5f40ada 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -372,6 +372,7 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT 'S','i','g','n','a','t','u','r','e','_',' ','=',' ', '\'','%','s','\'',0}; LPWSTR keyPath = NULL, valueName = NULL; LPWSTR deformatted = NULL; + LPWSTR ptr = NULL, end; int root, type; HKEY rootKey, key = NULL; DWORD sz = 0, regType; @@ -444,13 +445,18 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT if (sz == 0) goto end; + if ((ptr = strchrW((LPWSTR)value, '"')) && (end = strchrW(++ptr, '"'))) + *end = '\0'; + else + ptr = (LPWSTR)value; + switch (type & 0x0f) { case msidbLocatorTypeDirectory: - rc = ACTION_SearchDirectory(package, sig, (LPWSTR)value, 0, appValue); + rc = ACTION_SearchDirectory(package, sig, ptr, 0, appValue); break; case msidbLocatorTypeFileName: - *appValue = app_search_file((LPWSTR)value, sig); + *appValue = app_search_file(ptr, sig); break; case msidbLocatorTypeRawValue: ACTION_ConvertRegValue(regType, value, sz, appValue); diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 0e7a821..0f002a2 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -6254,6 +6254,14 @@ static void test_appsearch_reglocator(void) (const BYTE *)path, lstrlenA(path) + 1); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); + sprintf(path, "\"%s\\FileName1\" -option", CURR_DIR); + res = RegSetValueExA(hklm, "value16", 0, REG_SZ, + (const BYTE *)path, lstrlenA(path) + 1); + + sprintf(path, "%s\\FileName1 -option", CURR_DIR); + res = RegSetValueExA(hklm, "value17", 0, REG_SZ, + (const BYTE *)path, lstrlenA(path) + 1); + hdb = create_package_db(); ok(hdb, "Expected a valid database handle\n"); @@ -6344,6 +6352,12 @@ static void test_appsearch_reglocator(void) r = add_appsearch_entry(hdb, "'SIGPROP28', 'NewSignature28'"); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + r = add_appsearch_entry(hdb, "'SIGPROP29', 'NewSignature29'"); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = add_appsearch_entry(hdb, "'SIGPROP30', 'NewSignature30'"); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + r = create_reglocator_table(hdb); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); @@ -6487,6 +6501,16 @@ static void test_appsearch_reglocator(void) r = add_reglocator_entry(hdb, str); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + /* HKLM, msidbLocatorTypeFile, file exists, in quotes */ + str = "'NewSignature29', 2, 'Software\\Wine', 'Value16', 1"; + r = add_reglocator_entry(hdb, str); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* HKLM, msidbLocatorTypeFile, file exists, no quotes */ + str = "'NewSignature30', 2, 'Software\\Wine', 'Value17', 1"; + r = add_reglocator_entry(hdb, str); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + r = create_signature_table(hdb); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); @@ -6523,6 +6547,14 @@ static void test_appsearch_reglocator(void) r = add_signature_entry(hdb, str); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + str = "'NewSignature29', 'FileName1', '', '', '', '', '', '', ''"; + r = add_signature_entry(hdb, str); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + str = "'NewSignature30', 'FileName1', '', '', '', '', '', '', ''"; + r = add_signature_entry(hdb, str); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + hpkg = package_from_db(hdb); ok(hpkg, "Expected a valid package handle\n"); @@ -6692,6 +6724,17 @@ static void test_appsearch_reglocator(void) ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); + size = MAX_PATH; + sprintf(path, "%s\\FileName1", CURR_DIR); + r = MsiGetPropertyA(hpkg, "SIGPROP29", prop, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); + + size = MAX_PATH; + r = MsiGetPropertyA(hpkg, "SIGPROP30", prop, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); + RegSetValueA(hklm, NULL, REG_SZ, "", 0); RegDeleteValueA(hklm, "Value1"); RegDeleteValueA(hklm, "Value2"); @@ -6708,6 +6751,8 @@ static void test_appsearch_reglocator(void) RegDeleteValueA(hklm, "Value13"); RegDeleteValueA(hklm, "Value14"); RegDeleteValueA(hklm, "Value15"); + RegDeleteValueA(hklm, "Value16"); + RegDeleteValueA(hklm, "Value17"); RegDeleteKeyA(hklm, ""); RegCloseKey(hklm);
1
0
0
0
James Hawkins : msi: Fix a copy and paste error.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 6df69c6aaa202a9a43acd1f0539a3d975aac2bc9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6df69c6aaa202a9a43acd1f05…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:40 2008 -0500 msi: Fix a copy and paste error. --- dlls/msi/appsearch.c | 8 ++++---- dlls/msi/tests/package.c | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 163ddf8..1679d80 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -651,11 +651,11 @@ static UINT ACTION_FileVersionMatches(const MSISIGNATURE *sig, LPCWSTR filePath, HIWORD(sig->MinVersionLS), LOWORD(sig->MinVersionLS)); } - else if (info->dwFileVersionMS < sig->MinVersionMS - || (info->dwFileVersionMS == sig->MinVersionMS && - info->dwFileVersionLS < sig->MinVersionLS)) + else if (info->dwFileVersionMS > sig->MaxVersionMS + || (info->dwFileVersionMS == sig->MaxVersionMS && + info->dwFileVersionLS > sig->MaxVersionLS)) { - TRACE("Greater than minimum version %d.%d.%d.%d\n", + TRACE("Greater than maximum version %d.%d.%d.%d\n", HIWORD(sig->MaxVersionMS), LOWORD(sig->MaxVersionMS), HIWORD(sig->MaxVersionLS), diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index cc2b04a..0e7a821 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7180,10 +7180,7 @@ static void test_appsearch_drlocator(void) size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP9", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); - } + ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP10", prop, &size);
1
0
0
0
James Hawkins : msi: Strip the file off the parent path if it' s not a directory.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 7eba78dc7e19d9d9918f18c459407ba24bf3106b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7eba78dc7e19d9d9918f18c45…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:37 2008 -0500 msi: Strip the file off the parent path if it's not a directory. --- dlls/msi/appsearch.c | 6 ++++++ dlls/msi/tests/package.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 74d072f..163ddf8 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -964,6 +964,12 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATU if (parent) { + if (!(GetFileAttributesW(parent) & FILE_ATTRIBUTE_DIRECTORY)) + { + PathRemoveFileSpecW(parent); + PathAddBackslashW(parent); + } + strcpyW(path, parent); strcatW(path, expanded); } diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 9911bd1..cc2b04a 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7169,10 +7169,7 @@ static void test_appsearch_drlocator(void) sprintf(path, "%s\\one\\two\\three\\FileName2", CURR_DIR); r = MsiGetPropertyA(hpkg, "SIGPROP7", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); - } + ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); size = MAX_PATH; sprintf(path, "%s\\FileName3.dll", CURR_DIR);
1
0
0
0
James Hawkins : msi: Only check the file signature if the candidate file is not a directory.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 0ed516908b69aafc988a787a35f18b16c152d45a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0ed516908b69aafc988a787a3…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:30 2008 -0500 msi: Only check the file signature if the candidate file is not a directory. --- dlls/msi/appsearch.c | 19 +++++++++---------- dlls/msi/tests/package.c | 5 +---- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 79554db..74d072f 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -760,18 +760,17 @@ static UINT ACTION_RecurseSearchDirectory(MSIPACKAGE *package, LPWSTR *appValue, hFind = FindFirstFileW(buf, &findData); if (hFind != INVALID_HANDLE_VALUE) { - BOOL matches; - - /* assuming Signature can't contain wildcards for the file name, - * so don't bother with FindNextFileW here. - */ - rc = ACTION_FileMatchesSig(sig, &findData, buf, &matches); - if (rc == ERROR_SUCCESS && matches) + if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { - TRACE("found file, returning %s\n", debugstr_w(buf)); - *appValue = buf; - } + BOOL matches; + rc = ACTION_FileMatchesSig(sig, &findData, buf, &matches); + if (rc == ERROR_SUCCESS && matches) + { + TRACE("found file, returning %s\n", debugstr_w(buf)); + *appValue = buf; + } + } FindClose(hFind); } diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 30c9567..9911bd1 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7163,10 +7163,7 @@ static void test_appsearch_drlocator(void) size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP6", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); - } + ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); size = MAX_PATH; sprintf(path, "%s\\one\\two\\three\\FileName2", CURR_DIR);
1
0
0
0
James Hawkins : msi: Append the next directory to search to the current directory when recursing .
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 1fb22654e4f0a3a724ebb7ef1503b6d991143364 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1fb22654e4f0a3a724ebb7ef1…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:25 2008 -0500 msi: Append the next directory to search to the current directory when recursing. --- dlls/msi/appsearch.c | 27 ++++++++++++++++++++------- dlls/msi/tests/package.c | 5 +---- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 056cd24..79554db 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -731,15 +731,18 @@ static UINT ACTION_RecurseSearchDirectory(MSIPACKAGE *package, LPWSTR *appValue, WIN32_FIND_DATAW findData; UINT rc = ERROR_SUCCESS; size_t dirLen = lstrlenW(dir), fileLen = lstrlenW(sig->File); + WCHAR subpath[MAX_PATH]; WCHAR *buf; + static const WCHAR dot[] = {'.',0}; + static const WCHAR dotdot[] = {'.','.',0}; static const WCHAR starDotStarW[] = { '*','.','*',0 }; TRACE("Searching directory %s for file %s, depth %d\n", debugstr_w(dir), debugstr_w(sig->File), depth); if (depth < 0) - return ERROR_INVALID_PARAMETER; + return ERROR_SUCCESS; *appValue = NULL; /* We need the buffer in both paths below, so go ahead and allocate it @@ -772,7 +775,7 @@ static UINT ACTION_RecurseSearchDirectory(MSIPACKAGE *package, LPWSTR *appValue, FindClose(hFind); } - if (rc == ERROR_SUCCESS && !*appValue && depth > 0) + if (rc == ERROR_SUCCESS && !*appValue) { lstrcpyW(buf, dir); PathAddBackslashW(buf); @@ -781,18 +784,28 @@ static UINT ACTION_RecurseSearchDirectory(MSIPACKAGE *package, LPWSTR *appValue, hFind = FindFirstFileW(buf, &findData); if (hFind != INVALID_HANDLE_VALUE) { - if (findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) + if (findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY && + lstrcmpW(findData.cFileName, dot) && + lstrcmpW(findData.cFileName, dotdot)) + { + lstrcpyW(subpath, dir); + PathAppendW(subpath, findData.cFileName); rc = ACTION_RecurseSearchDirectory(package, appValue, sig, - findData.cFileName, - depth - 1); + subpath, depth - 1); + } while (rc == ERROR_SUCCESS && !*appValue && FindNextFileW(hFind, &findData) != 0) { + if (!lstrcmpW(findData.cFileName, dot) || + !lstrcmpW(findData.cFileName, dotdot)) + continue; + + lstrcpyW(subpath, dir); + PathAppendW(subpath, findData.cFileName); if (findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) rc = ACTION_RecurseSearchDirectory(package, appValue, - sig, findData.cFileName, - depth - 1); + sig, subpath, depth - 1); } FindClose(hFind); diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 981c39e..30c9567 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7158,10 +7158,7 @@ static void test_appsearch_drlocator(void) sprintf(path, "%s\\one\\two\\three\\FileName2", CURR_DIR); r = MsiGetPropertyA(hpkg, "SIGPROP5", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); - } + ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP6", prop, &size);
1
0
0
0
James Hawkins : msi: Only append a backslash to directories.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 4aca381ff77e538e539140d1b51106502752b7c2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4aca381ff77e538e539140d1b…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:20 2008 -0500 msi: Only append a backslash to directories. --- dlls/msi/appsearch.c | 5 ++++- dlls/msi/tests/package.c | 10 ++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 55bc472..056cd24 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -837,6 +837,7 @@ static UINT ACTION_SearchDirectory(MSIPACKAGE *package, MSISIGNATURE *sig, LPCWSTR path, int depth, LPWSTR *appValue) { UINT rc; + DWORD attr; LPWSTR val = NULL; TRACE("%p, %p, %s, %d, %p\n", package, sig, debugstr_w(path), depth, @@ -881,7 +882,9 @@ static UINT ACTION_SearchDirectory(MSIPACKAGE *package, MSISIGNATURE *sig, } } - if (val && val[lstrlenW(val) - 1] != '\\') + attr = GetFileAttributesW(val); + if ((attr & FILE_ATTRIBUTE_DIRECTORY) && + val && val[lstrlenW(val) - 1] != '\\') { val = msi_realloc(val, (lstrlenW(val) + 2) * sizeof(WCHAR)); if (!val) diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 288e227..981c39e 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7135,10 +7135,7 @@ static void test_appsearch_drlocator(void) sprintf(path, "%s\\FileName1", CURR_DIR); r = MsiGetPropertyA(hpkg, "SIGPROP1", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); - } + ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); size = MAX_PATH; sprintf(path, "%s\\", CURR_DIR); @@ -7187,10 +7184,7 @@ static void test_appsearch_drlocator(void) sprintf(path, "%s\\FileName3.dll", CURR_DIR); r = MsiGetPropertyA(hpkg, "SIGPROP8", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); - } + ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop); size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP9", prop, &size);
1
0
0
0
James Hawkins : msi: Don' t get rid of the file signature when searching the DrLocator table.
by Alexandre Julliard
20 Oct '08
20 Oct '08
Module: wine Branch: master Commit: 7497f1ab5c8914e5c905feefedbb3f59b3adadc6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7497f1ab5c8914e5c905feefe…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Mon Oct 20 04:20:15 2008 -0500 msi: Don't get rid of the file signature when searching the DrLocator table. --- dlls/msi/appsearch.c | 3 --- dlls/msi/tests/package.c | 10 ++-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index e2f03c6..55bc472 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -917,9 +917,6 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATU TRACE("%s\n", debugstr_w(sig->Name)); - msi_free(sig->File); - sig->File = NULL; - *appValue = NULL; row = MSI_QueryGetRecord( package->db, query, sig->Name ); diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index e9a9bb0..288e227 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7155,10 +7155,7 @@ static void test_appsearch_drlocator(void) size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP4", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); - } + ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); size = MAX_PATH; sprintf(path, "%s\\one\\two\\three\\FileName2", CURR_DIR); @@ -7206,10 +7203,7 @@ static void test_appsearch_drlocator(void) size = MAX_PATH; r = MsiGetPropertyA(hpkg, "SIGPROP10", prop, &size); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - todo_wine - { - ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); - } + ok(!lstrcmpA(prop, ""), "Expected \"\", got \"%s\"\n", prop); DeleteFileA("FileName1"); DeleteFileA("FileName3.dll");
1
0
0
0
← Newer
1
...
33
34
35
36
37
38
39
...
122
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
Results per page:
10
25
50
100
200