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
November 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
792 discussions
Start a n
N
ew thread
Francois Gouget : winepath: Fix --unix so it works whether the Windows path refers to an existing file /directory or not.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 5d531fc1d5bcbc137f5b116414ec4ba5a5717fab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5d531fc1d5bcbc137f5b11641…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Fri Nov 10 15:40:59 2006 +0100 winepath: Fix --unix so it works whether the Windows path refers to an existing file/directory or not. --- programs/winepath/winepath.c | 59 +++++++++++++++++++++++++++++++++++++---- 1 files changed, 53 insertions(+), 6 deletions(-) diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index 0fc4623..7179214 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c @@ -189,14 +189,61 @@ int wmain(int argc, const WCHAR *argv[]) printf("%s\n", path); } if (outputformats & UNIXFORMAT) { - char *unix_name; - - if ((unix_name = wine_get_unix_file_name_ptr(argv[i]))) + WCHAR *ntpath, *tail; + int ntpathlen=lstrlenW(argv[i]); + ntpath=HeapAlloc(GetProcessHeap(), 0, sizeof(*ntpath)*(ntpathlen+1)); + lstrcpyW(ntpath, argv[i]); + tail=NULL; + while (1) { - printf("%s\n", unix_name); - HeapFree( GetProcessHeap(), 0, unix_name ); + char *unix_name; + WCHAR *slash, *c; + + unix_name = wine_get_unix_file_name_ptr(ntpath); + if (unix_name) + { + if (tail) + { + WideCharToMultiByte(CP_UNIXCP, 0, tail+1, -1, path, MAX_PATH, NULL, NULL); + printf("%s/%s\n", unix_name, path); + } + else + { + printf("%s\n", unix_name); + } + HeapFree( GetProcessHeap(), 0, unix_name ); + break; + } + + slash=(tail ? tail : ntpath+ntpathlen); + while (slash != ntpath && *slash != '/' && *slash != '\\') + slash--; + if (slash == ntpath) + { + /* This is a complete path conversion failure. + * It would typically happen if ntpath == "". + */ + printf("\n"); + break; + } + c=slash+1; + while (*c != '\0' && *c != '*' && *c != '?' && + *c != '<' && *c != '>' && *c != '|' && *c != '"') + c++; + if (*c != '\0') + { + /* If this is not a valid NT path to start with, + * then obviously we cannot convert it. + */ + printf("\n"); + break; + } + if (tail) + *tail='/'; + tail=slash; + *tail='\0'; } - else printf( "\n" ); + HeapFree(GetProcessHeap(), 0, ntpath); } if (outputformats & WINDOWSFORMAT) { WCHAR* windows_name;
1
0
0
0
Alexandre Julliard : gphoto2.ds: Don' t warn about libjpeg if gphoto support is not enabled.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 86ba62a5637c2cfac38f223697fecdd09cc2bb73 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=86ba62a5637c2cfac38f22369…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 27 13:47:17 2006 +0100 gphoto2.ds: Don't warn about libjpeg if gphoto support is not enabled. --- dlls/gphoto2.ds/gphoto2_i.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gphoto2.ds/gphoto2_i.h b/dlls/gphoto2.ds/gphoto2_i.h index 3e91d6c..bb2b6e3 100644 --- a/dlls/gphoto2.ds/gphoto2_i.h +++ b/dlls/gphoto2.ds/gphoto2_i.h @@ -24,7 +24,7 @@ # error You must include config.h first #endif -#if !defined(HAVE_JPEGLIB_H) +#if defined(HAVE_GPHOTO2) && !defined(HAVE_JPEGLIB_H) # warning "gphoto2 support in twain needs jpeg development headers" # undef HAVE_GPHOTO2 #endif
1
0
0
0
Roderick Colenbrander : wgl: Unify pixel format code.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 57ff710cde876b58c302b9463109e1bbe76ea1c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=57ff710cde876b58c302b9463…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Sat Nov 18 23:29:48 2006 +0100 wgl: Unify pixel format code. --- dlls/winex11.drv/opengl.c | 221 ++++++++++++++++++++++----------------------- 1 files changed, 108 insertions(+), 113 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=57ff710cde876b58c302b…
1
0
0
0
Mike McCormack : msi: Use MSI_QueryGetRecord in ACTION_AppSearchReg.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 54ab47ef596f2f82974b2ca15c9131a090fdd4bd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=54ab47ef596f2f82974b2ca15…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Nov 27 18:16:34 2006 +0900 msi: Use MSI_QueryGetRecord in ACTION_AppSearchReg. --- dlls/msi/appsearch.c | 209 ++++++++++++++++++++++---------------------------- 1 files changed, 91 insertions(+), 118 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 34196a7..8f1e388 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -235,139 +235,112 @@ static void ACTION_ConvertRegValue(DWORD static UINT ACTION_SearchDirectory(MSIPACKAGE *package, MSISIGNATURE *sig, LPCWSTR path, int depth, LPWSTR *appValue); -static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, - MSISIGNATURE *sig) +static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATURE *sig) { - MSIQUERY *view; + static const WCHAR query[] = { + 's','e','l','e','c','t',' ','*',' ', + 'f','r','o','m',' ', + 'R','e','g','L','o','c','a','t','o','r',' ', + 'w','h','e','r','e',' ', + 'S','i','g','n','a','t','u','r','e','_',' ','=',' ', '\'','%','s','\'',0}; + LPWSTR keyPath = NULL, valueName = NULL; + int root, type; + HKEY rootKey, key = NULL; + DWORD sz = 0, regType; + LPBYTE value = NULL; + MSIRECORD *row; UINT rc; - static const WCHAR ExecSeqQuery[] = { - 's','e','l','e','c','t',' ','*',' ', - 'f','r','o','m',' ', - 'R','e','g','L','o','c','a','t','o','r',' ', - 'w','h','e','r','e',' ','S','i','g','n','a','t','u','r','e','_',' ','=',' ', - '\'','%','s','\'',0}; - TRACE("(package %p, appValue %p, sig %p)\n", package, appValue, sig); + TRACE("%s\n", debugstr_w(sig->Name)); + *appValue = NULL; - rc = MSI_OpenQuery(package->db, &view, ExecSeqQuery, sig->Name); - if (rc == ERROR_SUCCESS) + + row = MSI_QueryGetRecord( package->db, query, sig->Name ); + if (!row) { - MSIRECORD *row = 0; - LPWSTR keyPath = NULL, valueName = NULL; - int root, type; - HKEY rootKey, key = NULL; - DWORD sz = 0, regType; - LPBYTE value = NULL; + TRACE("failed to query RegLocator for %s\n", debugstr_w(sig->Name)); + return ERROR_SUCCESS; + } - rc = MSI_ViewExecute(view, 0); - if (rc != ERROR_SUCCESS) - { - TRACE("MSI_ViewExecute returned %d\n", rc); - goto end; - } - rc = MSI_ViewFetch(view,&row); - if (rc != ERROR_SUCCESS) - { - TRACE("MSI_ViewFetch returned %d\n", rc); - rc = ERROR_SUCCESS; - goto end; - } + root = MSI_RecordGetInteger(row,2); + keyPath = msi_dup_record_field(row,3); + /* FIXME: keyPath needs to be expanded for properties */ + valueName = msi_dup_record_field(row,4); + /* FIXME: valueName probably does too */ + type = MSI_RecordGetInteger(row,5); - root = MSI_RecordGetInteger(row,2); - keyPath = msi_dup_record_field(row,3); - /* FIXME: keyPath needs to be expanded for properties */ - valueName = msi_dup_record_field(row,4); - /* FIXME: valueName probably does too */ - type = MSI_RecordGetInteger(row,5); + switch (root) + { + case msidbRegistryRootClassesRoot: + rootKey = HKEY_CLASSES_ROOT; + break; + case msidbRegistryRootCurrentUser: + rootKey = HKEY_CURRENT_USER; + break; + case msidbRegistryRootLocalMachine: + rootKey = HKEY_LOCAL_MACHINE; + break; + case msidbRegistryRootUsers: + rootKey = HKEY_USERS; + break; + default: + WARN("Unknown root key %d\n", root); + goto end; + } - switch (root) - { - case msidbRegistryRootClassesRoot: - rootKey = HKEY_CLASSES_ROOT; - break; - case msidbRegistryRootCurrentUser: - rootKey = HKEY_CURRENT_USER; - break; - case msidbRegistryRootLocalMachine: - rootKey = HKEY_LOCAL_MACHINE; - break; - case msidbRegistryRootUsers: - rootKey = HKEY_USERS; - break; - default: - WARN("Unknown root key %d\n", root); - goto end; - } + rc = RegOpenKeyW(rootKey, keyPath, &key); + if (rc) + { + TRACE("RegOpenKeyW returned %d\n", rc); + goto end; + } - rc = RegOpenKeyW(rootKey, keyPath, &key); - if (rc) - { - TRACE("RegOpenKeyW returned %d\n", rc); - rc = ERROR_SUCCESS; - goto end; - } - rc = RegQueryValueExW(key, valueName, NULL, NULL, NULL, &sz); - if (rc) - { - TRACE("RegQueryValueExW returned %d\n", rc); - rc = ERROR_SUCCESS; - goto end; - } - /* FIXME: sanity-check sz before allocating (is there an upper-limit - * on the value of a property?) - */ - value = msi_alloc( sz); - rc = RegQueryValueExW(key, valueName, NULL, ®Type, value, &sz); - if (rc) - { - TRACE("RegQueryValueExW returned %d\n", rc); - rc = ERROR_SUCCESS; - goto end; - } + rc = RegQueryValueExW(key, valueName, NULL, NULL, NULL, &sz); + if (rc) + { + TRACE("RegQueryValueExW returned %d\n", rc); + goto end; + } + /* FIXME: sanity-check sz before allocating (is there an upper-limit + * on the value of a property?) + */ + value = msi_alloc( sz ); + rc = RegQueryValueExW(key, valueName, NULL, ®Type, value, &sz); + if (rc) + { + TRACE("RegQueryValueExW returned %d\n", rc); + goto end; + } - /* bail out if the registry key is empty */ - if (sz == 0) - { - rc = ERROR_SUCCESS; - goto end; - } + /* bail out if the registry key is empty */ + if (sz == 0) + goto end; - switch (type & 0x0f) - { - case msidbLocatorTypeDirectory: - rc = ACTION_SearchDirectory(package, sig, (LPCWSTR)value, 0, - appValue); - break; - case msidbLocatorTypeFileName: - *appValue = strdupW((LPCWSTR)value); - break; - case msidbLocatorTypeRawValue: - ACTION_ConvertRegValue(regType, value, sz, appValue); - break; - default: - FIXME("AppSearch unimplemented for type %d (key path %s, value %s)\n", - type, debugstr_w(keyPath), debugstr_w(valueName)); - } + switch (type & 0x0f) + { + case msidbLocatorTypeDirectory: + rc = ACTION_SearchDirectory(package, sig, (LPWSTR)value, 0, appValue); + break; + case msidbLocatorTypeFileName: + *appValue = strdupW((LPWSTR)value); + break; + case msidbLocatorTypeRawValue: + ACTION_ConvertRegValue(regType, value, sz, appValue); + break; + default: + FIXME("AppSearch unimplemented for type %d (key path %s, value %s)\n", + type, debugstr_w(keyPath), debugstr_w(valueName)); + } end: - msi_free( value); - RegCloseKey(key); + msi_free( value ); + RegCloseKey( key ); - msi_free( keyPath); - msi_free( valueName); + msi_free( keyPath ); + msi_free( valueName ); - if (row) - msiobj_release(&row->hdr); - MSI_ViewClose(view); - msiobj_release(&view->hdr); - } - else - { - TRACE("MSI_OpenQuery returned %d\n", rc); - rc = ERROR_SUCCESS; - } + msiobj_release(&row->hdr); - TRACE("returning %d\n", rc); - return rc; + return ERROR_SUCCESS; } static UINT ACTION_AppSearchIni(MSIPACKAGE *package, LPWSTR *appValue,
1
0
0
0
Mike McCormack : msi: Use MSI_QueryGetRecord in ACTION_AppSearchComponents.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: fa6bc9e50b57b3c9fe18aeb6d1cc689df2826ae2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa6bc9e50b57b3c9fe18aeb6d…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Nov 27 18:03:55 2006 +0900 msi: Use MSI_QueryGetRecord in ACTION_AppSearchComponents. --- dlls/msi/appsearch.c | 75 ++++++++++++++------------------------------------ 1 files changed, 21 insertions(+), 54 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 7ae47f5..34196a7 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -154,67 +154,34 @@ static void ACTION_FreeSignature(MSISIGN msi_free(sig->Languages); } -static UINT ACTION_AppSearchComponents(MSIPACKAGE *package, LPWSTR *appValue, - MSISIGNATURE *sig) +static UINT ACTION_AppSearchComponents(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATURE *sig) { - MSIQUERY *view; - UINT rc; - static const WCHAR ExecSeqQuery[] = { - 's','e','l','e','c','t',' ','*',' ', - 'f','r','o','m',' ', - 'C','o','m','p','L','o','c','a','t','o','r',' ', - 'w','h','e','r','e',' ','S','i','g','n','a','t','u','r','e','_',' ','=',' ', - '\'','%','s','\'',0}; + static const WCHAR query[] = { + 's','e','l','e','c','t',' ','*',' ', + 'f','r','o','m',' ', + 'C','o','m','p','L','o','c','a','t','o','r',' ', + 'w','h','e','r','e',' ','S','i','g','n','a','t','u','r','e','_',' ','=',' ', + '\'','%','s','\'',0}; + MSIRECORD *row; + LPWSTR guid; - TRACE("(package %p, appValue %p, sig %p)\n", package, appValue, sig); - *appValue = NULL; - rc = MSI_OpenQuery(package->db, &view, ExecSeqQuery, sig->Name); - if (rc == ERROR_SUCCESS) - { - MSIRECORD *row = 0; - WCHAR guid[50]; - DWORD sz; + TRACE("%s\n", debugstr_w(sig->Name)); - rc = MSI_ViewExecute(view, 0); - if (rc != ERROR_SUCCESS) - { - TRACE("MSI_ViewExecute returned %d\n", rc); - goto end; - } - rc = MSI_ViewFetch(view,&row); - if (rc != ERROR_SUCCESS) - { - TRACE("MSI_ViewFetch returned %d\n", rc); - rc = ERROR_SUCCESS; - goto end; - } - - /* get GUID */ - guid[0] = 0; - sz=sizeof(guid)/sizeof(guid[0]); - rc = MSI_RecordGetStringW(row,2,guid,&sz); - if (rc != ERROR_SUCCESS) - { - ERR("Error is %x\n",rc); - goto end; - } - FIXME("AppSearch unimplemented for CompLocator table (GUID %s)\n", - debugstr_w(guid)); + *appValue = NULL; -end: - if (row) - msiobj_release(&row->hdr); - MSI_ViewClose(view); - msiobj_release(&view->hdr); - } - else + row = MSI_QueryGetRecord( package->db, query, sig->Name ); + if (!row) { - TRACE("MSI_OpenQuery returned %d\n", rc); - rc = ERROR_SUCCESS; + TRACE("failed to query CompLocator for %s\n", debugstr_w(sig->Name)); + return ERROR_SUCCESS; } - TRACE("returning %d\n", rc); - return rc; + guid = msi_dup_record_field( row, 2 ); + FIXME("AppSearch CompLocator (%s) unimplemented\n", debugstr_w(guid)); + msi_free( guid ); + msiobj_release( &row->hdr ); + + return ERROR_SUCCESS; } static void ACTION_ConvertRegValue(DWORD regType, const BYTE *value, DWORD sz,
1
0
0
0
Mike McCormack : msi: Use MSI_QueryGetRecord in ACTION_AppSearchGetSignature.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: a1c969ee23894334efbda4ecb3bb001f7e7ed472 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a1c969ee23894334efbda4ecb…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Nov 27 17:48:37 2006 +0900 msi: Use MSI_QueryGetRecord in ACTION_AppSearchGetSignature. --- dlls/msi/appsearch.c | 137 ++++++++++++++++++++----------------------------- 1 files changed, 56 insertions(+), 81 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 57bffe7..7ae47f5 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -80,96 +80,71 @@ static void ACTION_VerStrToInteger(LPCWS * Returns ERROR_SUCCESS upon success (where not finding the record counts as * success), something else on error. */ -static UINT ACTION_AppSearchGetSignature(MSIPACKAGE *package, MSISIGNATURE *sig, - LPCWSTR name) +static UINT ACTION_AppSearchGetSignature(MSIPACKAGE *package, MSISIGNATURE *sig, LPCWSTR name) { - MSIQUERY *view; - UINT rc; - static const WCHAR ExecSeqQuery[] = { - 's','e','l','e','c','t',' ','*',' ', - 'f','r','o','m',' ', - 'S','i','g','n','a','t','u','r','e',' ', - 'w','h','e','r','e',' ','S','i','g','n','a','t','u','r','e',' ','=',' ', - '\'','%','s','\'',0}; + static const WCHAR query[] = { + 's','e','l','e','c','t',' ','*',' ', + 'f','r','o','m',' ', + 'S','i','g','n','a','t','u','r','e',' ', + 'w','h','e','r','e',' ','S','i','g','n','a','t','u','r','e',' ','=',' ', + '\'','%','s','\'',0}; + LPWSTR minVersion, maxVersion; + MSIRECORD *row; + DWORD time; + + TRACE("package %p, sig %p\n", package, sig); - TRACE("(package %p, sig %p)\n", package, sig); memset(sig, 0, sizeof(*sig)); sig->Name = name; - rc = MSI_OpenQuery(package->db, &view, ExecSeqQuery, name); - if (rc == ERROR_SUCCESS) + row = MSI_QueryGetRecord( package->db, query, name ); + if (!row) { - MSIRECORD *row = 0; - DWORD time; - WCHAR *minVersion, *maxVersion; - - rc = MSI_ViewExecute(view, 0); - if (rc != ERROR_SUCCESS) - { - TRACE("MSI_ViewExecute returned %d\n", rc); - goto end; - } - rc = MSI_ViewFetch(view,&row); - if (rc != ERROR_SUCCESS) - { - TRACE("MSI_ViewFetch returned %d\n", rc); - rc = ERROR_SUCCESS; - goto end; - } - - /* get properties */ - sig->File = msi_dup_record_field(row,2); - minVersion = msi_dup_record_field(row,3); - if (minVersion) - { - ACTION_VerStrToInteger(minVersion, &sig->MinVersionMS, - &sig->MinVersionLS); - msi_free( minVersion); - } - maxVersion = msi_dup_record_field(row,4); - if (maxVersion) - { - ACTION_VerStrToInteger(maxVersion, &sig->MaxVersionMS, - &sig->MaxVersionLS); - msi_free( maxVersion); - } - sig->MinSize = MSI_RecordGetInteger(row,5); - if (sig->MinSize == MSI_NULL_INTEGER) - sig->MinSize = 0; - sig->MaxSize = MSI_RecordGetInteger(row,6); - if (sig->MaxSize == MSI_NULL_INTEGER) - sig->MaxSize = 0; - sig->Languages = msi_dup_record_field(row,9); - time = MSI_RecordGetInteger(row,7); - if (time != MSI_NULL_INTEGER) - DosDateTimeToFileTime(HIWORD(time), LOWORD(time), &sig->MinTime); - time = MSI_RecordGetInteger(row,8); - if (time != MSI_NULL_INTEGER) - DosDateTimeToFileTime(HIWORD(time), LOWORD(time), &sig->MaxTime); - TRACE("Found file name %s for Signature_ %s;\n", - debugstr_w(sig->File), debugstr_w(name)); - TRACE("MinVersion is %d.%d.%d.%d\n", HIWORD(sig->MinVersionMS), - LOWORD(sig->MinVersionMS), HIWORD(sig->MinVersionLS), - LOWORD(sig->MinVersionLS)); - TRACE("MaxVersion is %d.%d.%d.%d\n", HIWORD(sig->MaxVersionMS), - LOWORD(sig->MaxVersionMS), HIWORD(sig->MaxVersionLS), - LOWORD(sig->MaxVersionLS)); - TRACE("MinSize is %d, MaxSize is %d;\n", sig->MinSize, sig->MaxSize); - TRACE("Languages is %s\n", debugstr_w(sig->Languages)); + TRACE("failed to query signature for %s\n", debugstr_w(name)); + return ERROR_SUCCESS; + } -end: - if (row) - msiobj_release(&row->hdr); - MSI_ViewClose(view); - msiobj_release(&view->hdr); + /* get properties */ + sig->File = msi_dup_record_field(row,2); + minVersion = msi_dup_record_field(row,3); + if (minVersion) + { + ACTION_VerStrToInteger(minVersion, &sig->MinVersionMS, &sig->MinVersionLS); + msi_free( minVersion ); } - else + maxVersion = msi_dup_record_field(row,4); + if (maxVersion) { - TRACE("MSI_OpenQuery returned %d\n", rc); - rc = ERROR_SUCCESS; + ACTION_VerStrToInteger(maxVersion, &sig->MaxVersionMS, &sig->MaxVersionLS); + msi_free( maxVersion ); } - - TRACE("returning %d\n", rc); - return rc; + sig->MinSize = MSI_RecordGetInteger(row,5); + if (sig->MinSize == MSI_NULL_INTEGER) + sig->MinSize = 0; + sig->MaxSize = MSI_RecordGetInteger(row,6); + if (sig->MaxSize == MSI_NULL_INTEGER) + sig->MaxSize = 0; + sig->Languages = msi_dup_record_field(row,9); + time = MSI_RecordGetInteger(row,7); + if (time != MSI_NULL_INTEGER) + DosDateTimeToFileTime(HIWORD(time), LOWORD(time), &sig->MinTime); + time = MSI_RecordGetInteger(row,8); + if (time != MSI_NULL_INTEGER) + DosDateTimeToFileTime(HIWORD(time), LOWORD(time), &sig->MaxTime); + + TRACE("Found file name %s for Signature_ %s;\n", + debugstr_w(sig->File), debugstr_w(name)); + TRACE("MinVersion is %d.%d.%d.%d\n", HIWORD(sig->MinVersionMS), + LOWORD(sig->MinVersionMS), HIWORD(sig->MinVersionLS), + LOWORD(sig->MinVersionLS)); + TRACE("MaxVersion is %d.%d.%d.%d\n", HIWORD(sig->MaxVersionMS), + LOWORD(sig->MaxVersionMS), HIWORD(sig->MaxVersionLS), + LOWORD(sig->MaxVersionLS)); + TRACE("MinSize is %d, MaxSize is %d;\n", sig->MinSize, sig->MaxSize); + TRACE("Languages is %s\n", debugstr_w(sig->Languages)); + + msiobj_release( &row->hdr ); + + return ERROR_SUCCESS; } /* Frees any memory allocated in sig */
1
0
0
0
Mike McCormack : msi: Use MSI_IterateRecords when cloning properties.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 0670ebc67b10eafba194cab418ce8637715faba7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0670ebc67b10eafba194cab41…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Nov 27 17:48:10 2006 +0900 msi: Use MSI_IterateRecords when cloning properties. --- dlls/msi/package.c | 52 ++++++++++++++++++++-------------------------------- 1 files changed, 20 insertions(+), 32 deletions(-) diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 164c7f2..57bf0f6 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -60,45 +60,33 @@ static void MSI_FreePackage( MSIOBJECTHD msi_free_properties( package ); } +static UINT iterate_clone_props(MSIRECORD *row, LPVOID param) +{ + MSIPACKAGE *package = param; + LPCWSTR name, value; + + name = MSI_RecordGetString( row, 1 ); + value = MSI_RecordGetString( row, 2 ); + MSI_SetPropertyW( package, name, value ); + + return ERROR_SUCCESS; +} + static UINT clone_properties( MSIPACKAGE *package ) { - MSIQUERY * view = NULL; - UINT rc; static const WCHAR Query[] = { - 'S','E','L','E','C','T',' ','*',' ', - 'F','R','O','M',' ','`','P','r','o','p','e','r','t','y','`',0}; - - /* clone the existing properties */ - rc = MSI_DatabaseOpenViewW( package->db, Query, &view ); - if (rc != ERROR_SUCCESS) - return rc; + 'S','E','L','E','C','T',' ','*',' ', + 'F','R','O','M',' ','`','P','r','o','p','e','r','t','y','`',0}; + MSIQUERY *view = NULL; + UINT r; - rc = MSI_ViewExecute(view, 0); - if (rc != ERROR_SUCCESS) + r = MSI_OpenQuery( package->db, &view, Query ); + if (r == ERROR_SUCCESS) { - MSI_ViewClose(view); + r = MSI_IterateRecords( view, NULL, iterate_clone_props, package ); msiobj_release(&view->hdr); - return rc; - } - while (1) - { - MSIRECORD * row; - LPCWSTR name, value; - - rc = MSI_ViewFetch(view,&row); - if (rc != ERROR_SUCCESS) - break; - - name = MSI_RecordGetString( row, 1 ); - value = MSI_RecordGetString( row, 2 ); - MSI_SetPropertyW( package, name, value ); - - msiobj_release( &row->hdr ); } - MSI_ViewClose(view); - msiobj_release(&view->hdr); - - return rc; + return r; } /*
1
0
0
0
Clinton Stimpson : riched20: Only send EN_CHANGE when it is supposed to be sent.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 78584b6ee1da4473aecca4bc8736dddb4cfe21af URL:
http://source.winehq.org/git/wine.git/?a=commit;h=78584b6ee1da4473aecca4bc8…
Author: Clinton Stimpson <cjstimpson(a)utwire.net> Date: Sat Nov 25 22:04:20 2006 -0700 riched20: Only send EN_CHANGE when it is supposed to be sent. --- dlls/riched20/paint.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 71ae918..e924f80 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -117,7 +117,11 @@ void ME_UpdateRepaint(ME_TextEditor *edi pCursor = &editor->pCursors[0]; ME_EnsureVisible(editor, pCursor->pRun); - ME_SendOldNotify(editor, EN_CHANGE); + /* send EN_CHANGE if the event mask asks for it */ + if(editor->nEventMask & ENM_CHANGE) + { + ME_SendOldNotify(editor, EN_CHANGE); + } ME_Repaint(editor); ME_SendSelChange(editor); }
1
0
0
0
Dmitry Timoshkov : winedump: Constify some data.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: 7669035472609e2339b2670152834ff0ab752eb6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7669035472609e2339b267015…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Sun Nov 26 16:04:56 2006 +0800 winedump: Constify some data. --- tools/winedump/symbol.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/winedump/symbol.c b/tools/winedump/symbol.c index c79442f..f584c5d 100644 --- a/tools/winedump/symbol.c +++ b/tools/winedump/symbol.c @@ -27,7 +27,7 @@ /* Items that are swapped in arguments after the symbol structure * has been populated */ -static const char *swap_after[] = +static const char * const swap_after[] = { "\r", " ", /* Remove whitespace, normalise pointers and brackets */ "\t", " ", @@ -49,7 +49,7 @@ static const char *swap_after[] = * strings, unless they contain more that one '*'. A preceding 'LP' * counts as a '*', so 'LPWCSTR *' is a pointer, not a string */ -static const char *wide_strings[] = +static const char * const wide_strings[] = { "WSTR", "WCSTR", NULL }; @@ -58,7 +58,7 @@ static const char *wide_strings[] = * unless they contain one '*'. A preceding 'LP' counts as a '*', * so 'WCHAR *' is string, while 'LPWCHAR *' is a pointer */ -static const char *wide_chars[] = +static const char * const wide_chars[] = { "WCHAR", NULL }; @@ -66,7 +66,7 @@ static const char *wide_chars[] = /* Items containing these substrings are assumed to be ASCII character * strings, as above */ -static const char *ascii_strings[] = +static const char * const ascii_strings[] = { "STR", "CSTR", NULL }; @@ -75,7 +75,7 @@ static const char *ascii_strings[] = /* Items containing these substrings are assumed to be ASCII characters, * as above */ -static const char *ascii_chars[] = +static const char * const ascii_chars[] = { "CHAR", "char", NULL }; @@ -83,7 +83,7 @@ static const char *ascii_chars[] = /* Any type other than the following will produce a FIXME warning with -v * when mapped to a long, to allow fixups */ -static const char *known_longs[] = +static const char * const known_longs[] = { "char", "CHAR", "float", "int", "INT", "short", "SHORT", "long", "LONG", "WCHAR", "BOOL", "bool", "INT16", "WORD", "DWORD", NULL @@ -194,7 +194,7 @@ const char *symbol_get_spec_type (const int symbol_get_type (const char *string) { const char *iter = string; - const char **tab; + const char * const *tab; int ptrs = 0; while (*iter && isspace(*iter)) @@ -289,7 +289,7 @@ int symbol_get_type (const char *strin */ void symbol_clean_string (const char *string) { - const char **tab = swap_after; + const char * const *tab = swap_after; char *str = (char *)string; #define SWAP(i, p, x, y) do { i = p; while ((i = str_replace (i, x, y))); } while(0)
1
0
0
0
Dmitry Timoshkov : winedump: Fix a copy/paste typo.
by Alexandre Julliard
27 Nov '06
27 Nov '06
Module: wine Branch: master Commit: d8725b8850371d21f2735f2f3a9f177987dc5537 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d8725b8850371d21f2735f2f3…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Sun Nov 26 16:04:33 2006 +0800 winedump: Fix a copy/paste typo. --- tools/winedump/lnk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index f4669c1..78b2c45 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -454,11 +454,11 @@ static int dump_lnk_fd(int fd) return 0; } -int dump_lnk(const char *emf) +int dump_lnk(const char *lnk) { int fd; - fd = open(emf,O_RDONLY); + fd = open(lnk,O_RDONLY); if (fd<0) return -1; dump_lnk_fd(fd);
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
80
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
Results per page:
10
25
50
100
200