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
April 2012
----- 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
2 participants
718 discussions
Start a n
N
ew thread
Hans Leidekker : msi: Check supported languages in the AppSearch action.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: c8bb33599046928b8710d04e16352fa55c56a8aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c8bb33599046928b8710d04e1…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Apr 23 15:47:15 2012 +0200 msi: Check supported languages in the AppSearch action. --- dlls/msi/appsearch.c | 159 ++++++++++++++++++++++++++++++++------------------ dlls/msi/msi.c | 6 +-- dlls/msi/msipriv.h | 1 + 3 files changed, 104 insertions(+), 62 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index 0010fd8..21daf43 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -608,6 +608,65 @@ static void ACTION_ExpandAnyPath(MSIPACKAGE *package, WCHAR *src, WCHAR *dst, msi_free(deformatted); } +static LANGID *parse_languages( const WCHAR *languages, DWORD *num_ids ) +{ + UINT i, count = 1; + WCHAR *str = strdupW( languages ), *p, *q; + LANGID *ret; + + if (!str) return NULL; + for (p = q = str; (q = strchrW( q, ',' )); q++) count++; + + if (!(ret = msi_alloc( count * sizeof(LANGID) ))) + { + msi_free( str ); + return NULL; + } + i = 0; + while (*p) + { + q = strchrW( p, ',' ); + if (q) *q = 0; + ret[i] = atoiW( p ); + if (!q) break; + p = q + 1; + i++; + } + msi_free( str ); + *num_ids = count; + return ret; +} + +static BOOL match_languages( const void *version, const WCHAR *languages ) +{ + struct lang + { + USHORT id; + USHORT codepage; + } *lang; + DWORD len, num_ids, i, j; + BOOL found = FALSE; + LANGID *ids; + + if (!languages || !languages[0]) return TRUE; + if (!VerQueryValueW( version, szLangResource, (void **)&lang, &len )) return FALSE; + if (!(ids = parse_languages( languages, &num_ids ))) return FALSE; + + for (i = 0; i < num_ids; i++) + { + found = FALSE; + for (j = 0; j < len / sizeof(struct lang); j++) + { + if (!ids[i] || ids[i] == lang[j].id) found = TRUE; + } + if (!found) goto done; + } + +done: + msi_free( ids ); + return found; +} + /* Sets *matches to whether the file (whose path is filePath) matches the * versions set in sig. * Return ERROR_SUCCESS in case of success (whether or not the file matches), @@ -616,69 +675,55 @@ static void ACTION_ExpandAnyPath(MSIPACKAGE *package, WCHAR *src, WCHAR *dst, static UINT ACTION_FileVersionMatches(const MSISIGNATURE *sig, LPCWSTR filePath, BOOL *matches) { - UINT rc = ERROR_SUCCESS; + UINT len; + void *version; + VS_FIXEDFILEINFO *info = NULL; + DWORD zero, size = GetFileVersionInfoSizeW( filePath, &zero ); *matches = FALSE; - if (sig->Languages) - { - FIXME(": need to check version for languages %s\n", - debugstr_w(sig->Languages)); - } - else - { - DWORD zero, size = GetFileVersionInfoSizeW(filePath, &zero); - if (size) - { - LPVOID buf = msi_alloc( size); + if (!size) return ERROR_SUCCESS; + if (!(version = msi_alloc( size ))) return ERROR_OUTOFMEMORY; - if (buf) - { - UINT versionLen; - LPVOID subBlock = NULL; - - if (GetFileVersionInfoW(filePath, 0, size, buf)) - VerQueryValueW(buf, szBackSlash, &subBlock, &versionLen); - if (subBlock) - { - VS_FIXEDFILEINFO *info = subBlock; - - TRACE("Comparing file version %d.%d.%d.%d:\n", - HIWORD(info->dwFileVersionMS), - LOWORD(info->dwFileVersionMS), - HIWORD(info->dwFileVersionLS), - LOWORD(info->dwFileVersionLS)); - if (info->dwFileVersionMS < sig->MinVersionMS - || (info->dwFileVersionMS == sig->MinVersionMS && - info->dwFileVersionLS < sig->MinVersionLS)) - { - TRACE("Less than minimum version %d.%d.%d.%d\n", - HIWORD(sig->MinVersionMS), - LOWORD(sig->MinVersionMS), - HIWORD(sig->MinVersionLS), - LOWORD(sig->MinVersionLS)); - } - else if ((sig->MaxVersionMS || sig->MaxVersionLS) && - (info->dwFileVersionMS > sig->MaxVersionMS || - (info->dwFileVersionMS == sig->MaxVersionMS && - info->dwFileVersionLS > sig->MaxVersionLS))) - { - TRACE("Greater than maximum version %d.%d.%d.%d\n", - HIWORD(sig->MaxVersionMS), - LOWORD(sig->MaxVersionMS), - HIWORD(sig->MaxVersionLS), - LOWORD(sig->MaxVersionLS)); - } - else - *matches = TRUE; - } - msi_free( buf); - } - else - rc = ERROR_OUTOFMEMORY; + if (GetFileVersionInfoW( filePath, 0, size, version )) + VerQueryValueW( version, szBackSlash, (void **)&info, &len ); + + if (info) + { + TRACE("comparing file version %d.%d.%d.%d:\n", + HIWORD(info->dwFileVersionMS), + LOWORD(info->dwFileVersionMS), + HIWORD(info->dwFileVersionLS), + LOWORD(info->dwFileVersionLS)); + if (info->dwFileVersionMS < sig->MinVersionMS + || (info->dwFileVersionMS == sig->MinVersionMS && + info->dwFileVersionLS < sig->MinVersionLS)) + { + TRACE("less than minimum version %d.%d.%d.%d\n", + HIWORD(sig->MinVersionMS), + LOWORD(sig->MinVersionMS), + HIWORD(sig->MinVersionLS), + LOWORD(sig->MinVersionLS)); + } + else if ((sig->MaxVersionMS || sig->MaxVersionLS) && + (info->dwFileVersionMS > sig->MaxVersionMS || + (info->dwFileVersionMS == sig->MaxVersionMS && + info->dwFileVersionLS > sig->MaxVersionLS))) + { + TRACE("greater than maximum version %d.%d.%d.%d\n", + HIWORD(sig->MaxVersionMS), + LOWORD(sig->MaxVersionMS), + HIWORD(sig->MaxVersionLS), + LOWORD(sig->MaxVersionLS)); + } + else if (!match_languages( version, sig->Languages )) + { + TRACE("languages %s not supported\n", debugstr_w( sig->Languages )); } + else *matches = TRUE; } - return rc; + msi_free( version ); + return ERROR_SUCCESS; } /* Sets *matches to whether the file in findData matches that in sig. diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index baef974..973bebd 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -3133,11 +3133,7 @@ static UINT get_file_version( const WCHAR *path, WCHAR *verbuf, DWORD *verlen, WCHAR *langbuf, DWORD *langlen ) { static const WCHAR szVersionResource[] = {'\\',0}; - static const WCHAR szVersionFormat[] = { - '%','d','.','%','d','.','%','d','.','%','d',0}; - static const WCHAR szLangResource[] = { - '\\','V','a','r','F','i','l','e','I','n','f','o','\\', - 'T','r','a','n','s','l','a','t','i','o','n',0}; + static const WCHAR szVersionFormat[] = {'%','d','.','%','d','.','%','d','.','%','d',0}; static const WCHAR szLangFormat[] = {'%','d',0}; UINT ret = ERROR_SUCCESS; DWORD len, error; diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index dc748e2..bdce06b 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -1172,6 +1172,7 @@ static const WCHAR szAppDataFolder[] = {'A','p','p','D','a','t','a','F','o','l', static const WCHAR szRollbackDisabled[] = {'R','o','l','l','b','a','c','k','D','i','s','a','b','l','e','d',0}; static const WCHAR szName[] = {'N','a','m','e',0}; static const WCHAR szData[] = {'D','a','t','a',0}; +static const WCHAR szLangResource[] = {'\\','V','a','r','F','i','l','e','I','n','f','o','\\','T','r','a','n','s','l','a','t','i','o','n',0}; /* memory allocation macro functions */ static void *msi_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
1
0
0
0
Hans Leidekker : msi: Remove child folders first in the RemoveFolders action.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: 52f3d5beadf201e4293f09b90be5bef1f607faca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=52f3d5beadf201e4293f09b90…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Apr 23 15:46:50 2012 +0200 msi: Remove child folders first in the RemoveFolders action. --- dlls/msi/action.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index eb755be..aa2cfca 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -884,6 +884,20 @@ static UINT ACTION_CreateFolders(MSIPACKAGE *package) return rc; } +static void remove_persistent_folder( MSIFOLDER *folder ) +{ + FolderList *fl; + + LIST_FOR_EACH_ENTRY( fl, &folder->children, FolderList, entry ) + { + remove_persistent_folder( fl->folder ); + } + if (folder->persistent && folder->State != FOLDER_STATE_REMOVED) + { + if (RemoveDirectoryW( folder->ResolvedTarget )) folder->State = FOLDER_STATE_REMOVED; + } +} + static UINT ITERATE_RemoveFolders( MSIRECORD *row, LPVOID param ) { MSIPACKAGE *package = param; @@ -927,9 +941,8 @@ static UINT ITERATE_RemoveFolders( MSIRECORD *row, LPVOID param ) msi_ui_actiondata( package, szRemoveFolders, uirow ); msiobj_release( &uirow->hdr ); - RemoveDirectoryW( full_path ); folder = msi_get_loaded_folder( package, dir ); - folder->State = FOLDER_STATE_REMOVED; + remove_persistent_folder( folder ); return ERROR_SUCCESS; }
1
0
0
0
Hans Leidekker : msi: Dynamically allocate the path buffer in MsiQueryComponentStateW.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: 2e5bf9ca066c8c042ac0be5ef12497245b4a0c11 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2e5bf9ca066c8c042ac0be5ef…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Apr 23 15:46:41 2012 +0200 msi: Dynamically allocate the path buffer in MsiQueryComponentStateW. --- dlls/msi/msi.c | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 35ffe9e..baef974 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -2148,7 +2148,7 @@ static BOOL msi_comp_find_package(LPCWSTR prodcode, MSIINSTALLCONTEXT context) return (res == ERROR_SUCCESS); } -static BOOL msi_comp_find_prodcode(LPWSTR squished_pc, +static UINT msi_comp_find_prodcode(LPWSTR squished_pc, MSIINSTALLCONTEXT context, LPCWSTR comp, LPWSTR val, DWORD *sz) { @@ -2162,14 +2162,14 @@ static BOOL msi_comp_find_prodcode(LPWSTR squished_pc, r = MSIREG_OpenUserDataComponentKey(comp, NULL, &hkey, FALSE); if (r != ERROR_SUCCESS) - return FALSE; + return r; res = RegQueryValueExW(hkey, squished_pc, NULL, NULL, (BYTE *)val, sz); if (res != ERROR_SUCCESS) - return FALSE; + return res; RegCloseKey(hkey); - return TRUE; + return res; } UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode, @@ -2177,7 +2177,6 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode, LPCWSTR szComponent, INSTALLSTATE *pdwState) { WCHAR squished_pc[GUID_SIZE]; - WCHAR val[MAX_PATH]; BOOL found; DWORD sz; @@ -2208,14 +2207,21 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode, *pdwState = INSTALLSTATE_UNKNOWN; - sz = MAX_PATH; - if (!msi_comp_find_prodcode(squished_pc, dwContext, szComponent, val, &sz)) + sz = 0; + if (msi_comp_find_prodcode(squished_pc, dwContext, szComponent, NULL, &sz)) return ERROR_UNKNOWN_COMPONENT; if (sz == 0) *pdwState = INSTALLSTATE_NOTUSED; else { + WCHAR *val; + UINT r; + + if (!(val = msi_alloc( sz ))) return ERROR_OUTOFMEMORY; + if ((r = msi_comp_find_prodcode(squished_pc, dwContext, szComponent, val, &sz))) + return r; + if (lstrlenW(val) > 2 && val[0] >= '0' && val[0] <= '9' && val[1] >= '0' && val[1] <= '9' && val[2] != ':') { @@ -2223,6 +2229,7 @@ UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode, } else *pdwState = INSTALLSTATE_LOCAL; + msi_free( val ); } TRACE("-> %d\n", *pdwState);
1
0
0
0
Hans Leidekker : msi: Initialize hkey in msi_comp_find_prod_key.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: cf1cb30dfae79d9fe2f772b52f242b432e8eca6d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cf1cb30dfae79d9fe2f772b52…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Apr 23 15:46:30 2012 +0200 msi: Initialize hkey in msi_comp_find_prod_key. --- dlls/msi/msi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 4783573..35ffe9e 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -2112,7 +2112,7 @@ UINT WINAPI MsiQueryComponentStateA(LPCSTR szProductCode, static BOOL msi_comp_find_prod_key(LPCWSTR prodcode, MSIINSTALLCONTEXT context) { UINT r; - HKEY hkey; + HKEY hkey = NULL; r = MSIREG_OpenProductKey(prodcode, NULL, context, &hkey, FALSE); RegCloseKey(hkey);
1
0
0
0
Hans Leidekker : msi: Reduce the indentation level in ACTION_GetComponentInstallStates.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: f1af03fa169d4fded80063ae43422cb5cc5b07a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f1af03fa169d4fded80063ae4…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Apr 23 15:46:12 2012 +0200 msi: Reduce the indentation level in ACTION_GetComponentInstallStates. --- dlls/msi/action.c | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index b3472f8..eb755be 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -1620,16 +1620,19 @@ static void ACTION_GetComponentInstallStates(MSIPACKAGE *package) r = MsiQueryComponentStateW( package->ProductCode, NULL, MSIINSTALLCONTEXT_USERMANAGED, comp->ComponentId, &comp->Installed ); - if (r != ERROR_SUCCESS) - r = MsiQueryComponentStateW( package->ProductCode, NULL, - MSIINSTALLCONTEXT_USERUNMANAGED, comp->ComponentId, - &comp->Installed ); - if (r != ERROR_SUCCESS) - r = MsiQueryComponentStateW( package->ProductCode, NULL, - MSIINSTALLCONTEXT_MACHINE, comp->ComponentId, - &comp->Installed ); - if (r != ERROR_SUCCESS) - comp->Installed = INSTALLSTATE_ABSENT; + if (r == ERROR_SUCCESS) continue; + + r = MsiQueryComponentStateW( package->ProductCode, NULL, + MSIINSTALLCONTEXT_USERUNMANAGED, comp->ComponentId, + &comp->Installed ); + if (r == ERROR_SUCCESS) continue; + + r = MsiQueryComponentStateW( package->ProductCode, NULL, + MSIINSTALLCONTEXT_MACHINE, comp->ComponentId, + &comp->Installed ); + if (r == ERROR_SUCCESS) continue; + + comp->Installed = INSTALLSTATE_ABSENT; } }
1
0
0
0
Jacek Caban : winhttp: Trace accept types in WinHttpOpenRequest.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: f69445adeb8ca9881982c151f328e4e8df48de45 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f69445adeb8ca9881982c151f…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Apr 23 14:50:15 2012 +0200 winhttp: Trace accept types in WinHttpOpenRequest. --- dlls/winhttp/session.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c index 2d899ab..1f5d825 100644 --- a/dlls/winhttp/session.c +++ b/dlls/winhttp/session.c @@ -917,6 +917,14 @@ HINTERNET WINAPI WinHttpOpenRequest( HINTERNET hconnect, LPCWSTR verb, LPCWSTR o TRACE("%p, %s, %s, %s, %s, %p, 0x%08x\n", hconnect, debugstr_w(verb), debugstr_w(object), debugstr_w(version), debugstr_w(referrer), types, flags); + if(types && TRACE_ON(winhttp)) { + const WCHAR **iter; + + TRACE("accept types:\n"); + for(iter = types; *iter; iter++) + TRACE(" %s\n", debugstr_w(*iter)); + } + if (!(connect = (connect_t *)grab_object( hconnect ))) { set_last_error( ERROR_INVALID_HANDLE );
1
0
0
0
Jacek Caban : mshtml: Accept different VARIANT types in document_write.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: f6980025b984b0a179dd01ef532ca2c4ea275ae8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f6980025b984b0a179dd01ef5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Apr 23 12:48:58 2012 +0200 mshtml: Accept different VARIANT types in document_write. --- dlls/mshtml/htmldoc.c | 35 +++++++++++++++++++++++------------ dlls/mshtml/tests/dom.c | 38 +++++++++++++++++++++++++++++++++++++- 2 files changed, 60 insertions(+), 13 deletions(-) diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 98bdcab..71f0db9 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -799,8 +799,8 @@ static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p) static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln) { + VARIANT *var, tmp; nsAString nsstr; - VARIANT *var; ULONG i, argc; nsresult nsres; HRESULT hres; @@ -824,27 +824,38 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln) return hres; } - nsAString_Init(&nsstr, NULL); + V_VT(&tmp) = VT_EMPTY; argc = psarray->rgsabound[0].cElements; for(i=0; i < argc; i++) { if(V_VT(var+i) == VT_BSTR) { - nsAString_SetData(&nsstr, V_BSTR(var+i)); - if(!ln || i != argc-1) - nsres = nsIDOMHTMLDocument_Write(This->doc_node->nsdoc, &nsstr, NULL /* FIXME! */); - else - nsres = nsIDOMHTMLDocument_Writeln(This->doc_node->nsdoc, &nsstr, NULL /* FIXME! */); - if(NS_FAILED(nsres)) - ERR("Write failed: %08x\n", nsres); + nsAString_InitDepend(&nsstr, V_BSTR(var+i)); }else { - FIXME("unsupported arg[%d] = %s\n", i, debugstr_variant(var+i)); + hres = VariantChangeType(&tmp, var+i, 0, VT_BSTR); + if(FAILED(hres)) { + WARN("Could not convert %s to string\n", debugstr_variant(var+i)); + break; + } + nsAString_InitDepend(&nsstr, V_BSTR(&tmp)); + } + + if(!ln || i != argc-1) + nsres = nsIDOMHTMLDocument_Write(This->doc_node->nsdoc, &nsstr, NULL /* FIXME! */); + else + nsres = nsIDOMHTMLDocument_Writeln(This->doc_node->nsdoc, &nsstr, NULL /* FIXME! */); + nsAString_Finish(&nsstr); + if(V_VT(var+i) != VT_BSTR) + VariantClear(&tmp); + if(NS_FAILED(nsres)) { + ERR("Write failed: %08x\n", nsres); + hres = E_FAIL; + break; } } - nsAString_Finish(&nsstr); SafeArrayUnaccessData(psarray); - return S_OK; + return hres; } static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 4176394..fcc2654 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -4783,6 +4783,34 @@ static void doc_write(IHTMLDocument2 *doc, BOOL ln, const char *text) SafeArrayDestroy(sa); } +static void doc_complex_write(IHTMLDocument2 *doc) +{ + SAFEARRAYBOUND dim = {5, 0}; + SAFEARRAY *sa; + VARIANT *args; + HRESULT hres; + + sa = SafeArrayCreate(VT_VARIANT, 1, &dim); + SafeArrayAccessData(sa, (void**)&args); + + V_VT(args) = VT_BSTR; + V_BSTR(args) = a2bstr("<body i4val=\""); + V_VT(args+1) = VT_I4; + V_I4(args+1) = 4; + V_VT(args+2) = VT_BSTR; + V_BSTR(args+2) = a2bstr("\" r8val=\""); + V_VT(args+3) = VT_R8; + V_R8(args+3) = 3.14; + V_VT(args+4) = VT_BSTR; + V_BSTR(args+4) = a2bstr("\">"); + SafeArrayUnaccessData(sa); + + hres = IHTMLDocument2_write(doc, sa); + ok(hres == S_OK, "write failed: %08x\n", hres); + + SafeArrayDestroy(sa); +} + static void test_frame_doc(IUnknown *frame_elem, BOOL iframe) { IHTMLDocument2 *window_doc, *elem_doc; @@ -4823,6 +4851,7 @@ static void test_iframe_elem(IHTMLElement *elem) IHTMLDocument2 *content_doc, *owner_doc; IHTMLElementCollection *col; IHTMLWindow2 *content_window; + IHTMLElement *body; IDispatch *disp; VARIANT errv; BSTR str; @@ -4854,7 +4883,9 @@ static void test_iframe_elem(IHTMLElement *elem) ok(iface_cmp((IUnknown*)disp, (IUnknown*)content_window), "disp != content_window\n"); IDispatch_Release(disp); - doc_write(content_doc, FALSE, "<html><head><title>test</title></head><body><br /></body>"); + doc_write(content_doc, FALSE, "<html><head><title>test</title></head>"); + doc_complex_write(content_doc); + doc_write(content_doc, TRUE, "<br />"); doc_write(content_doc, TRUE, "</html>"); hres = IHTMLDocument2_get_all(content_doc, &col); @@ -4862,6 +4893,11 @@ static void test_iframe_elem(IHTMLElement *elem) test_elem_collection((IUnknown*)col, all_types, sizeof(all_types)/sizeof(all_types[0])); IHTMLElementCollection_Release(col); + body = doc_get_body(content_doc); + test_elem_attr(body, "i4val", "4"); + test_elem_attr(body, "r8val", "3.14"); + IHTMLElement_Release(body); + hres = IHTMLDocument2_close(content_doc); ok(hres == S_OK, "close failed: %08x\n", hres);
1
0
0
0
Alexandre Julliard : gdi32: Fix some typos in the 4-bpp shrink_row function .
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: 6c2235cf98bcd187dd5ee4608d9edc3cabb224bb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6c2235cf98bcd187dd5ee4608…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Apr 23 14:58:12 2012 +0200 gdi32: Fix some typos in the 4-bpp shrink_row function. --- dlls/gdi32/dibdrv/primitives.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/gdi32/dibdrv/primitives.c b/dlls/gdi32/dibdrv/primitives.c index 55c17b7..21381ec 100644 --- a/dlls/gdi32/dibdrv/primitives.c +++ b/dlls/gdi32/dibdrv/primitives.c @@ -5319,8 +5319,8 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start, const struct stretch_params *params, int mode, BOOL keep_dst) { - BYTE *dst_ptr = get_pixel_ptr_8( dst_dib, dst_start->x, dst_start->y ); - BYTE *src_ptr = get_pixel_ptr_8( src_dib, src_start->x, src_start->y ); + BYTE *dst_ptr = get_pixel_ptr_4( dst_dib, dst_start->x, dst_start->y ); + BYTE *src_ptr = get_pixel_ptr_4( src_dib, src_start->x, src_start->y ); int err = params->err_start; int width, dst_x = dst_start->x, src_x = src_start->x; struct rop_codes codes; @@ -5330,12 +5330,12 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start, rop_codes_from_stretch_mode( mode, &codes ); for (width = params->length; width; width--) { - if (new_pix && !keep_dst) do_rop_mask_8( dst_ptr, 0, init_val, (dst_x & 1) ? 0xf0 : 0x0f ); + if (new_pix && !keep_dst) do_rop_mask_8( dst_ptr, 0, init_val, (dst_x & 1) ? 0x0f : 0xf0 ); if (src_x & 1) src_val = (*src_ptr & 0x0f) | (*src_ptr << 4); else src_val = (*src_ptr & 0xf0) | (*src_ptr >> 4); - do_rop_codes_mask_8( dst_ptr, src_val, &codes, (dst_x & 1) ? 0xf0 : 0x0f ); + do_rop_codes_mask_8( dst_ptr, src_val, &codes, (dst_x & 1) ? 0x0f : 0xf0 ); new_pix = FALSE; if ((src_x & ~1) != ((src_x + params->src_inc) & ~1))
1
0
0
0
Dmitry Timoshkov : include/wine/test.h: Fix tests compilation with a PSDK compiler.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: 3068ae8bce32f3d41d8b88057e59e07284274ca5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3068ae8bce32f3d41d8b88057…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Fri Apr 20 16:14:45 2012 +0900 include/wine/test.h: Fix tests compilation with a PSDK compiler. --- include/wine/test.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/wine/test.h b/include/wine/test.h index bee9c23..b3113a8 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -590,7 +590,9 @@ static LONG CALLBACK exc_filter( EXCEPTION_POINTERS *ptrs ) return EXCEPTION_EXECUTE_HANDLER; } +#ifdef __GNUC__ void _fpreset(void) {} /* override the mingw fpu init code */ +#endif /* main function */ int main( int argc, char **argv )
1
0
0
0
André Hentschel : dbghelp: Assorted fixes for shadow variables.
by Alexandre Julliard
23 Apr '12
23 Apr '12
Module: wine Branch: master Commit: 89cb501927833ed57132a4bb5b4eb77cc1b89e15 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=89cb501927833ed57132a4bb5…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Thu Apr 19 23:22:33 2012 +0200 dbghelp: Assorted fixes for shadow variables. --- dlls/dbghelp/dwarf.c | 4 ++-- dlls/dbghelp/msc.c | 11 +++++++---- dlls/dbghelp/path.c | 1 - dlls/dbghelp/stabs.c | 1 - 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c index a7a7001..2ce26fa 100644 --- a/dlls/dbghelp/dwarf.c +++ b/dlls/dbghelp/dwarf.c @@ -2188,7 +2188,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections, vector_init(&files, sizeof(unsigned), 16); while (*traverse.data) { - unsigned int dir_index, mod_time, length; + unsigned int dir_index, mod_time; const char* name; const char* dir; unsigned* psrc; @@ -2199,7 +2199,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections, mod_time = dwarf2_leb128_as_unsigned(&traverse); length = dwarf2_leb128_as_unsigned(&traverse); dir = *(const char**)vector_at(&dirs, dir_index); - TRACE("Got file %s/%s (%u,%u)\n", dir, name, mod_time, length); + TRACE("Got file %s/%s (%u,%lu)\n", dir, name, mod_time, length); psrc = vector_add(&files, &ctx->pool); *psrc = source_new(ctx->module, dir, name); } diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c index 53bf6bf..e32c463 100644 --- a/dlls/dbghelp/msc.c +++ b/dlls/dbghelp/msc.c @@ -1551,7 +1551,6 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root int i, length; struct symt_block* block = NULL; struct symt* symt; - const char* name; struct symt_compiland* compiland = NULL; struct location loc; @@ -1947,9 +1946,13 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root case S_PROCREF_V1: case S_DATAREF_V1: case S_LPROCREF_V1: - name = (const char*)sym + length; - length += (*name + 1 + 3) & ~3; - break; + { + const char* name; + + name = (const char*)sym + length; + length += (*name + 1 + 3) & ~3; + break; + } case S_MSTOOL_V3: /* just to silence a few warnings */ case S_MSTOOLINFO_V3: diff --git a/dlls/dbghelp/path.c b/dlls/dbghelp/path.c index f16eb00..5bd260e 100644 --- a/dlls/dbghelp/path.c +++ b/dlls/dbghelp/path.c @@ -479,7 +479,6 @@ static BOOL CALLBACK module_find_cb(PCWSTR buffer, PVOID user) { HANDLE hFile, hMap; void* mapping; - DWORD timestamp; timestamp = ~mf->dw1; size = ~mf->dw2; diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c index b4188d1..3546cff 100644 --- a/dlls/dbghelp/stabs.c +++ b/dlls/dbghelp/stabs.c @@ -604,7 +604,6 @@ static inline int stabs_pts_read_method_info(struct ParseTypedefData* ptd) if (mthd == '*') { long int ofs; - struct symt* dt; PTS_ABORTIF(ptd, stabs_pts_read_number(ptd, &ofs) == -1); PTS_ABORTIF(ptd, *ptd->ptr++ != ';');
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
72
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
Results per page:
10
25
50
100
200