winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
February 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
999 discussions
Start a n
N
ew thread
Jacek Caban : urlmon: Added HlinkParseDisplayNameEx implementation.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 60b0539c871c3b3c002e6e2e591fb912fb09d710 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=60b0539c871c3b3c002e6e2e5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jan 29 00:18:33 2008 +0100 urlmon: Added HlinkParseDisplayNameEx implementation. --- dlls/urlmon/session.c | 17 +++++++++++++++++ dlls/urlmon/umon.c | 21 +++++++++++++++++++++ dlls/urlmon/urlmon.spec | 2 +- dlls/urlmon/urlmon_main.h | 1 + 4 files changed, 40 insertions(+), 1 deletions(-) diff --git a/dlls/urlmon/session.c b/dlls/urlmon/session.c index 3571b05..9ce7b66 100644 --- a/dlls/urlmon/session.c +++ b/dlls/urlmon/session.c @@ -95,9 +95,26 @@ static HRESULT get_protocol_cf(LPCWSTR schema, DWORD schema_len, CLSID *pclsid, if(pclsid) *pclsid = clsid; + if(!ret) + return S_OK; + return CoGetClassObject(&clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IClassFactory, (void**)ret); } +BOOL is_registered_protocol(LPCWSTR url) +{ + DWORD schema_len; + WCHAR schema[64]; + HRESULT hres; + + hres = CoInternetParseUrl(url, PARSE_SCHEMA, 0, schema, sizeof(schema)/sizeof(schema[0]), + &schema_len, 0); + if(FAILED(hres)) + return FALSE; + + return get_protocol_cf(schema, schema_len, NULL, NULL) == S_OK; +} + IInternetProtocolInfo *get_protocol_info(LPCWSTR url) { IInternetProtocolInfo *ret = NULL; diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c index 5981a1c..640f382 100644 --- a/dlls/urlmon/umon.c +++ b/dlls/urlmon/umon.c @@ -1186,6 +1186,27 @@ HRESULT WINAPI BindAsyncMoniker(IMoniker *pmk, DWORD grfOpt, IBindStatusCallback } /*********************************************************************** + * MkParseDisplayNameEx (URLMON.@) + */ +HRESULT WINAPI MkParseDisplayNameEx(IBindCtx *pbc, LPCWSTR szDisplayName, ULONG *pchEaten, LPMONIKER *ppmk) +{ + TRACE("(%p %s %p %p)\n", pbc, debugstr_w(szDisplayName), pchEaten, ppmk); + + if(is_registered_protocol(szDisplayName)) { + HRESULT hres; + + hres = CreateURLMoniker(NULL, szDisplayName, ppmk); + if(SUCCEEDED(hres)) { + *pchEaten = strlenW(szDisplayName); + return hres; + } + } + + return MkParseDisplayName(pbc, szDisplayName, pchEaten, ppmk); +} + + +/*********************************************************************** * URLDownloadToFileA (URLMON.@) * * Downloads URL szURL to rile szFileName and call lpfnCB callback to diff --git a/dlls/urlmon/urlmon.spec b/dlls/urlmon/urlmon.spec index fdb94eb..06a56b0 100644 --- a/dlls/urlmon/urlmon.spec +++ b/dlls/urlmon/urlmon.spec @@ -53,7 +53,7 @@ @ stub IsLoggingEnabledA @ stub IsLoggingEnabledW @ stdcall IsValidURL(ptr wstr long) -@ stdcall MkParseDisplayNameEx(ptr ptr ptr ptr) ole32.MkParseDisplayName +@ stdcall MkParseDisplayNameEx(ptr wstr ptr ptr) @ stdcall ObtainUserAgentString(long str ptr) @ stub PrivateCoInstall @ stdcall RegisterBindStatusCallback(ptr ptr ptr long) diff --git a/dlls/urlmon/urlmon_main.h b/dlls/urlmon/urlmon_main.h index d845e6e..87e74f9 100644 --- a/dlls/urlmon/urlmon_main.h +++ b/dlls/urlmon/urlmon_main.h @@ -67,6 +67,7 @@ void UMCloseCacheFileStream(IUMCacheStream *pstr); IInternetProtocolInfo *get_protocol_info(LPCWSTR url); HRESULT get_protocol_handler(LPCWSTR url, CLSID *clsid, IClassFactory **ret); +BOOL is_registered_protocol(LPCWSTR); HRESULT bind_to_storage(LPCWSTR url, IBindCtx *pbc, REFIID riid, void **ppv); HRESULT bind_to_object(IMoniker *mon, LPCWSTR url, IBindCtx *pbc, REFIID riid, void **ppv);
1
0
0
0
Paul Vriens : include/wintrust.h: Add missing members to CRYPT_PROVIDER_DATA struct ( fixes some wintrust tests on Windows).
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 254000dc99085030d5e5780d937305e9a4540799 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=254000dc99085030d5e5780d9…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Sun Jan 27 17:28:18 2008 +0100 include/wintrust.h: Add missing members to CRYPT_PROVIDER_DATA struct (fixes some wintrust tests on Windows). --- include/wintrust.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/wintrust.h b/include/wintrust.h index 0c4d535..bc1c367 100644 --- a/include/wintrust.h +++ b/include/wintrust.h @@ -341,6 +341,8 @@ typedef struct _CRYPT_PROVIDER_DATA { HCRYPTMSG hMsg; DWORD csSigners; CRYPT_PROVIDER_SGNR *pasSigners; + DWORD csProvPrivData; + CRYPT_PROVIDER_PRIVDATA *pasProvPrivData; DWORD dwSubjectChoice; union { struct _PROVDATA_SIP *pPDSip;
1
0
0
0
Marcus Meissner : pdh: Fixed wrong condition.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 22aed3267b27667e87dc7654f838621abc0337ad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=22aed3267b27667e87dc7654f…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sat Jan 26 09:43:10 2008 +0100 pdh: Fixed wrong condition. --- dlls/pdh/pdh_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c index a7aa21b..d78af4a 100644 --- a/dlls/pdh/pdh_main.c +++ b/dlls/pdh/pdh_main.c @@ -873,7 +873,7 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexW( LPCWSTR machine, DWORD index, LPWST return PDH_CSTATUS_NO_MACHINE; } - if (!buffer && !size) return PDH_INVALID_ARGUMENT; + if (!buffer || !size) return PDH_INVALID_ARGUMENT; if (!index) return ERROR_SUCCESS; for (i = 0; i < sizeof(counter_sources) / sizeof(counter_sources[0]); i++)
1
0
0
0
Marcus Meissner : atl: Check for NULL.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: c46327b40cd16c09d0ad62acc3664b4fedbaed37 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c46327b40cd16c09d0ad62acc…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sat Jan 26 09:40:42 2008 +0100 atl: Check for NULL. --- dlls/atl/atl_ax.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c index 64b338b..6ffccde 100644 --- a/dlls/atl/atl_ax.c +++ b/dlls/atl/atl_ax.c @@ -1026,7 +1026,8 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd, IUnknown_AddRef( pUnkControl ); } - IUnknown_Release( pUnkControl ); + if ( pUnkControl ) + IUnknown_Release( pUnkControl ); if ( pContainer ) IUnknown_Release( pContainer );
1
0
0
0
Marcus Meissner : wordpad: Remove condition that never triggers.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: fa6937f4a5660a3b942de3f3fc5c62d42eb562b4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa6937f4a5660a3b942de3f3f…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sat Jan 26 09:32:41 2008 +0100 wordpad: Remove condition that never triggers. --- programs/wordpad/registry.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/wordpad/registry.c b/programs/wordpad/registry.c index 196e7d1..aef152a 100644 --- a/programs/wordpad/registry.c +++ b/programs/wordpad/registry.c @@ -187,7 +187,7 @@ static void format_filelist_filename(LPWSTR file, LPWSTR out) else if(truncpos1 == truncpos2 || !truncpos2) lstrcatW(out, file); else - truncate_path(file, out, truncpos1, truncpos2 ? truncpos2 : (pos_basename-1)); + truncate_path(file, out, truncpos1, truncpos2); } void registry_read_filelist(HWND hMainWnd)
1
0
0
0
Francois Gouget : winedump: Add support for dumping SZ_LINK and SPECIAL_FOLDER data blocks.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: fa9950f93e70b6358a69e85fa3f5e9671b5f7535 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa9950f93e70b6358a69e85fa…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Sat Jan 26 03:15:52 2008 +0100 winedump: Add support for dumping SZ_LINK and SPECIAL_FOLDER data blocks. --- tools/winedump/lnk.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 590a9d1..53d2a55 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -63,6 +63,8 @@ typedef enum { SLDF_RESERVED = 0x80000000, } SHELL_LINK_DATA_FLAGS; +#define EXP_SZ_LINK_SIG 0xa0000001 +#define EXP_SPECIAL_FOLDER_SIG 0xa0000005 #define EXP_DARWIN_ID_SIG 0xa0000006 #define EXP_SZ_ICON_SIG 0xa0000007 @@ -116,6 +118,14 @@ typedef struct _LOCAL_VOLUME_INFO DWORD dwVolLabelOfs; } LOCAL_VOLUME_INFO; +typedef struct +{ + DWORD cbSize; + DWORD dwSignature; + DWORD idSpecialFolder; + DWORD cbOffset; +} EXP_SPECIAL_FOLDER; + typedef struct lnk_string_tag { unsigned short size; @@ -288,6 +298,17 @@ static int base85_to_guid( const char *str, LPGUID guid ) return 1; } +static int dump_special_folder_block(const DATABLOCK_HEADER* bhdr) +{ + const EXP_SPECIAL_FOLDER *sfb = (const EXP_SPECIAL_FOLDER*)bhdr; + printf("Special folder block\n"); + printf("--------------------\n\n"); + printf("folder = 0x%04x\n", sfb->idSpecialFolder); + printf("offset = %d\n", sfb->cbOffset); + printf("\n"); + return 0; +} + static int dump_sz_block(const DATABLOCK_HEADER* bhdr, const char* label) { const LINK_SZ_BLOCK *szp = (const LINK_SZ_BLOCK*)bhdr; @@ -481,6 +502,12 @@ void lnk_dump(void) break; switch (bhdr->dwSignature) { + case EXP_SZ_LINK_SIG: + dump_sz_block(bhdr, "exp.link"); + break; + case EXP_SPECIAL_FOLDER_SIG: + dump_special_folder_block(bhdr); + break; case EXP_SZ_ICON_SIG: dump_sz_block(bhdr, "icon"); break;
1
0
0
0
Francois Gouget : winedump: Switch the block dumping code to be block-oriented, rather then flag oriented, so it is resilient to order changes.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 79a6f4193541a0f3d98e46e1b79908bd0c80947e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=79a6f4193541a0f3d98e46e1b…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Sat Jan 26 03:13:58 2008 +0100 winedump: Switch the block dumping code to be block-oriented, rather then flag oriented, so it is resilient to order changes. --- tools/winedump/lnk.c | 124 +++++++++++++++++++++++++++----------------------- 1 files changed, 67 insertions(+), 57 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index c63a1c6..590a9d1 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -63,6 +63,9 @@ typedef enum { SLDF_RESERVED = 0x80000000, } SHELL_LINK_DATA_FLAGS; +#define EXP_DARWIN_ID_SIG 0xa0000006 +#define EXP_SZ_ICON_SIG 0xa0000007 + typedef struct tagDATABLOCKHEADER { DWORD cbSize; @@ -86,13 +89,13 @@ typedef struct _LINK_HEADER DWORD Unknown6; /* 0x48 */ } LINK_HEADER, * PLINK_HEADER; -typedef struct tagLINK_ADVERTISEINFO +typedef struct tagLINK_SZ_BLOCK { DWORD size; DWORD magic; CHAR bufA[MAX_PATH]; WCHAR bufW[MAX_PATH]; -} LINK_ADVERTISEINFO; +} LINK_SZ_BLOCK; typedef struct _LOCATION_INFO { @@ -285,72 +288,64 @@ static int base85_to_guid( const char *str, LPGUID guid ) return 1; } -static int dump_advertise_info(const char *type) +static int dump_sz_block(const DATABLOCK_HEADER* bhdr, const char* label) { - const LINK_ADVERTISEINFO *avt; + const LINK_SZ_BLOCK *szp = (const LINK_SZ_BLOCK*)bhdr; + printf("String block\n"); + printf("-----------\n\n"); + printf("magic = %x\n", szp->magic); + printf("%s = %s\n", label, szp->bufA); + printf("\n"); + return 0; +} - avt = fetch_block(); - if (!avt) - return -1; +static int dump_darwin_id(const DATABLOCK_HEADER* bhdr) +{ + const LINK_SZ_BLOCK *szp = (const LINK_SZ_BLOCK*)bhdr; + char comp_str[40]; + const char *feat, *comp, *prod_str, *feat_str; + GUID guid; printf("Advertise Info\n"); printf("--------------\n\n"); - printf("magic = %x\n", avt->magic); - printf("%s = %s\n", type, avt->bufA); - if (avt->magic == 0xa0000006) - { - char comp_str[40]; - const char *feat, *comp, *prod_str, *feat_str; - GUID guid; - - if (base85_to_guid(avt->bufA, &guid)) - prod_str = get_guid_str( &guid ); - else - prod_str = "?"; - - comp = &avt->bufA[20]; - feat = strchr(comp,'>'); - if (!feat) - feat = strchr(comp,'<'); - if (feat) - { - memcpy( comp_str, comp, feat - comp ); - comp_str[feat-comp] = 0; - } - else - { - strcpy( comp_str, "?" ); - } + printf("msi string = %s\n", szp->bufA); - if (feat && feat[0] == '>' && base85_to_guid( &feat[1], &guid )) - feat_str = get_guid_str( &guid ); - else - feat_str = ""; + if (base85_to_guid(szp->bufA, &guid)) + prod_str = get_guid_str(&guid); + else + prod_str = "?"; - printf(" product: %s\n", prod_str); - printf(" component: %s\n", comp_str ); - printf(" feature: %s\n", feat_str); + comp = &szp->bufA[20]; + feat = strchr(comp, '>'); + if (!feat) + feat = strchr(comp, '<'); + if (feat) + { + memcpy(comp_str, comp, feat - comp); + comp_str[feat-comp] = 0; + } + else + { + strcpy(comp_str, "?"); } + + if (feat && feat[0] == '>' && base85_to_guid( &feat[1], &guid )) + feat_str = get_guid_str( &guid ); + else + feat_str = ""; + + printf(" product: %s\n", prod_str); + printf(" component: %s\n", comp_str ); + printf(" feature: %s\n", feat_str); printf("\n"); return 0; } -static int dump_raw_block(void) +static int dump_raw_block(const DATABLOCK_HEADER* bhdr) { - const DATABLOCK_HEADER *bhdr; int data_size; - bhdr = fetch_block(); - if (!bhdr) - { - printf("\n"); - printf("No end block!\n"); - return 0; - } - if (!bhdr->cbSize) - return 0; - printf("Raw Block\n"); printf("---------\n\n"); printf("size = %d\n", bhdr->cbSize); @@ -404,6 +399,7 @@ enum FileSig get_kind_lnk(void) void lnk_dump(void) { const LINK_HEADER* hdr; + const DATABLOCK_HEADER* bhdr; DWORD dwFlags; offset = 0; @@ -477,9 +473,23 @@ void lnk_dump(void) dump_string("Arguments", hdr->dwFlags & SLDF_UNICODE); if (hdr->dwFlags & SLDF_HAS_ICONLOCATION) dump_string("Icon path", hdr->dwFlags & SLDF_UNICODE); - if (hdr->dwFlags & SLDF_HAS_LOGO3ID) - dump_advertise_info("product"); - if (hdr->dwFlags & SLDF_HAS_DARWINID) - dump_advertise_info("msi string"); - while (dump_raw_block()); + + bhdr=fetch_block(); + while (bhdr) + { + if (!bhdr->cbSize) + break; + switch (bhdr->dwSignature) + { + case EXP_SZ_ICON_SIG: + dump_sz_block(bhdr, "icon"); + break; + case EXP_DARWIN_ID_SIG: + dump_darwin_id(bhdr); + break; + default: + dump_raw_block(bhdr); + } + bhdr=fetch_block(); + } }
1
0
0
0
Francois Gouget : winedump: Dump the raw data when finding an unknown block in an lnk file.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 9fc80d212fd892d24081c7d30c38a81a017d6e55 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9fc80d212fd892d24081c7d30…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Sat Jan 26 03:13:26 2008 +0100 winedump: Dump the raw data when finding an unknown block in an lnk file. --- tools/winedump/lnk.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 1da0176..c63a1c6 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -336,6 +336,58 @@ static int dump_advertise_info(const char *type) return 0; } +static int dump_raw_block(void) +{ + const DATABLOCK_HEADER *bhdr; + int data_size; + + bhdr = fetch_block(); + if (!bhdr) + { + printf("\n"); + printf("No end block!\n"); + return 0; + } + if (!bhdr->cbSize) + return 0; + + printf("Raw Block\n"); + printf("---------\n\n"); + printf("size = %d\n", bhdr->cbSize); + printf("magic = %x\n", bhdr->dwSignature); + + data_size=bhdr->cbSize-sizeof(*bhdr); + if (data_size > 0) + { + unsigned int i; + const unsigned char *data; + + printf("data = "); + data=(const unsigned char*)bhdr+sizeof(*bhdr); + while (data_size > 0) + { + for (i=0; i < 16; i++) + { + if (i < data_size) + printf("%02x ", data[i]); + else + printf(" "); + } + for (i=0; i < data_size && i < 16; i++) + printf("%c", (data[i] >= 32 && data[i] < 128 ? data[i] : '.')); + printf("\n"); + data_size-=16; + if (data_size <= 0) + break; + data+=16; + printf(" "); + } + } + printf("\n"); + + return 1; +} + static const GUID CLSID_ShellLink = {0x00021401L, 0, 0, {0xC0,0,0,0,0,0,0,0x46}}; enum FileSig get_kind_lnk(void) @@ -429,4 +481,5 @@ void lnk_dump(void) dump_advertise_info("product"); if (hdr->dwFlags & SLDF_HAS_DARWINID) dump_advertise_info("msi string"); + while (dump_raw_block()); }
1
0
0
0
Francois Gouget : winedump: Track unknown lnk flags and dump them.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 74d8536414c0cf11014ca7ba1ae1578ae54811fe URL:
http://source.winehq.org/git/wine.git/?a=commit;h=74d8536414c0cf11014ca7ba1…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Sat Jan 26 03:11:02 2008 +0100 winedump: Track unknown lnk flags and dump them. --- tools/winedump/lnk.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 2754602..1da0176 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -352,6 +352,7 @@ enum FileSig get_kind_lnk(void) void lnk_dump(void) { const LINK_HEADER* hdr; + DWORD dwFlags; offset = 0; hdr = fetch_block(); @@ -371,7 +372,15 @@ void lnk_dump(void) /* dump out all the flags */ printf("Flags: %04x ( ", hdr->dwFlags); -#define FLAG(x) if(hdr->dwFlags & SLDF_##x) printf("%s ",#x) + dwFlags=hdr->dwFlags; +#define FLAG(x) do \ + { \ + if (dwFlags & SLDF_##x) \ + { \ + printf("%s ", #x); \ + dwFlags&=~SLDF_##x; \ + } \ + } while (0) FLAG(HAS_ID_LIST); FLAG(HAS_LINK_INFO); FLAG(HAS_NAME); @@ -395,6 +404,8 @@ void lnk_dump(void) FLAG(DISABLE_KNOWNFOLDER_RELATIVE_TRACKING); FLAG(RESERVED); #undef FLAG + if (dwFlags) + printf("+%04x", dwFlags); printf(")\n"); printf("Length: %04x\n", hdr->dwFileLength);
1
0
0
0
Francois Gouget : winedump: Use the standard SLDF_XXX flag names instead of inventing new ones. Add the missing flags.
by Alexandre Julliard
04 Feb '08
04 Feb '08
Module: wine Branch: master Commit: 85eac20afdc0c64650054e0eded45ea2dbe3ac9f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=85eac20afdc0c64650054e0ed…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Sat Jan 26 03:10:44 2008 +0100 winedump: Use the standard SLDF_XXX flag names instead of inventing new ones. Add the missing flags. --- tools/winedump/lnk.c | 102 +++++++++++++++++++++++++++++++++----------------- 1 files changed, 67 insertions(+), 35 deletions(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 529e4ef..2754602 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -38,16 +38,36 @@ #include "pshpack1.h" -#define SCF_PIDL 1 -#define SCF_LOCATION 2 -#define SCF_DESCRIPTION 4 -#define SCF_RELATIVE 8 -#define SCF_WORKDIR 0x10 -#define SCF_ARGS 0x20 -#define SCF_CUSTOMICON 0x40 -#define SCF_UNICODE 0x80 -#define SCF_PRODUCT 0x800 -#define SCF_COMPONENT 0x1000 +typedef enum { + SLDF_HAS_ID_LIST = 0x00000001, + SLDF_HAS_LINK_INFO = 0x00000002, + SLDF_HAS_NAME = 0x00000004, + SLDF_HAS_RELPATH = 0x00000008, + SLDF_HAS_WORKINGDIR = 0x00000010, + SLDF_HAS_ARGS = 0x00000020, + SLDF_HAS_ICONLOCATION = 0x00000040, + SLDF_UNICODE = 0x00000080, + SLDF_FORCE_NO_LINKINFO = 0x00000100, + SLDF_HAS_EXP_SZ = 0x00000200, + SLDF_RUN_IN_SEPARATE = 0x00000400, + SLDF_HAS_LOGO3ID = 0x00000800, + SLDF_HAS_DARWINID = 0x00001000, + SLDF_RUNAS_USER = 0x00002000, + SLDF_HAS_EXP_ICON_SZ = 0x00004000, + SLDF_NO_PIDL_ALIAS = 0x00008000, + SLDF_FORCE_UNCNAME = 0x00010000, + SLDF_RUN_WITH_SHIMLAYER = 0x00020000, + SLDF_FORCE_NO_LINKTRACK = 0x00040000, + SLDF_ENABLE_TARGET_METADATA = 0x00080000, + SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000, + SLDF_RESERVED = 0x80000000, +} SHELL_LINK_DATA_FLAGS; + +typedef struct tagDATABLOCKHEADER +{ + DWORD cbSize; + DWORD dwSignature; +} DATABLOCK_HEADER; typedef struct _LINK_HEADER { @@ -351,39 +371,51 @@ void lnk_dump(void) /* dump out all the flags */ printf("Flags: %04x ( ", hdr->dwFlags); -#define FLAG(x) if(hdr->dwFlags & SCF_##x) printf("%s ",#x); - FLAG(PIDL) - FLAG(LOCATION) - FLAG(DESCRIPTION) - FLAG(RELATIVE) - FLAG(WORKDIR) - FLAG(ARGS) - FLAG(CUSTOMICON) - FLAG(UNICODE) - FLAG(PRODUCT) - FLAG(COMPONENT) +#define FLAG(x) if(hdr->dwFlags & SLDF_##x) printf("%s ",#x) + FLAG(HAS_ID_LIST); + FLAG(HAS_LINK_INFO); + FLAG(HAS_NAME); + FLAG(HAS_RELPATH); + FLAG(HAS_WORKINGDIR); + FLAG(HAS_ARGS); + FLAG(HAS_ICONLOCATION); + FLAG(UNICODE); + FLAG(FORCE_NO_LINKINFO); + FLAG(HAS_EXP_SZ); + FLAG(RUN_IN_SEPARATE); + FLAG(HAS_LOGO3ID); + FLAG(HAS_DARWINID); + FLAG(RUNAS_USER); + FLAG(HAS_EXP_ICON_SZ); + FLAG(NO_PIDL_ALIAS); + FLAG(FORCE_UNCNAME); + FLAG(RUN_WITH_SHIMLAYER); + FLAG(FORCE_NO_LINKTRACK); + FLAG(ENABLE_TARGET_METADATA); + FLAG(DISABLE_KNOWNFOLDER_RELATIVE_TRACKING); + FLAG(RESERVED); #undef FLAG printf(")\n"); printf("Length: %04x\n", hdr->dwFileLength); printf("\n"); - if (hdr->dwFlags & SCF_PIDL) + if (hdr->dwFlags & SLDF_HAS_ID_LIST) dump_pidl(); - if (hdr->dwFlags & SCF_LOCATION) + if (hdr->dwFlags & SLDF_HAS_LINK_INFO) dump_location(); - if (hdr->dwFlags & SCF_DESCRIPTION) - dump_string("Description", hdr->dwFlags & SCF_UNICODE); - if (hdr->dwFlags & SCF_RELATIVE) - dump_string("Relative path", hdr->dwFlags & SCF_UNICODE); - if (hdr->dwFlags & SCF_WORKDIR) - dump_string("Working directory", hdr->dwFlags & SCF_UNICODE); - if (hdr->dwFlags & SCF_ARGS) - dump_string("Arguments", hdr->dwFlags & SCF_UNICODE); - if (hdr->dwFlags & SCF_CUSTOMICON) - dump_string("Icon path", hdr->dwFlags & SCF_UNICODE); - if (hdr->dwFlags & SCF_PRODUCT) + if (hdr->dwFlags & SLDF_HAS_NAME) + dump_string("Description", hdr->dwFlags & SLDF_UNICODE); + if (hdr->dwFlags & SLDF_HAS_RELPATH) + dump_string("Relative path", hdr->dwFlags & SLDF_UNICODE); + if (hdr->dwFlags & SLDF_HAS_WORKINGDIR) + dump_string("Working directory", hdr->dwFlags & SLDF_UNICODE); + if (hdr->dwFlags & SLDF_HAS_ARGS) + dump_string("Arguments", hdr->dwFlags & SLDF_UNICODE); + if (hdr->dwFlags & SLDF_HAS_ICONLOCATION) + dump_string("Icon path", hdr->dwFlags & SLDF_UNICODE); + if (hdr->dwFlags & SLDF_HAS_LOGO3ID) dump_advertise_info("product"); - if (hdr->dwFlags & SCF_COMPONENT) + if (hdr->dwFlags & SLDF_HAS_DARWINID) dump_advertise_info("msi string"); }
1
0
0
0
← Newer
1
...
96
97
98
99
100
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
Results per page:
10
25
50
100
200