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
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
October 2010
----- 2025 -----
June 2025
May 2025
April 2025
March 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
1174 discussions
Start a n
N
ew thread
Juan Lang : crypt32: Pass additional store to CertVerifyRevocation.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: 8714c11247f25d9adca1adfb4ce466604cbba1a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8714c11247f25d9adca1adfb4…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Oct 21 09:06:39 2010 -0700 crypt32: Pass additional store to CertVerifyRevocation. --- dlls/crypt32/chain.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index af8f386..e3cf401 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -2569,7 +2569,8 @@ typedef struct _CERT_CHAIN_PARA_NO_EXTRA_FIELDS { } CERT_CHAIN_PARA_NO_EXTRA_FIELDS, *PCERT_CHAIN_PARA_NO_EXTRA_FIELDS; static void CRYPT_VerifyChainRevocation(PCERT_CHAIN_CONTEXT chain, - LPFILETIME pTime, const CERT_CHAIN_PARA *pChainPara, DWORD chainFlags) + LPFILETIME pTime, HCERTSTORE hAdditionalStore, + const CERT_CHAIN_PARA *pChainPara, DWORD chainFlags) { DWORD cContext; @@ -2618,6 +2619,12 @@ static void CRYPT_VerifyChainRevocation(PCERT_CHAIN_CONTEXT chain, if (chainFlags & CERT_CHAIN_REVOCATION_ACCUMULATIVE_TIMEOUT) revocationFlags |= CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG; revocationPara.pftTimeToUse = pTime; + if (hAdditionalStore) + { + revocationPara.cCertStore = 1; + revocationPara.rgCertStore = &hAdditionalStore; + revocationPara.hCrlStore = hAdditionalStore; + } if (pChainPara->cbSize == sizeof(CERT_CHAIN_PARA)) { revocationPara.dwUrlRetrievalTimeout = @@ -2855,8 +2862,8 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine, if (!(dwFlags & CERT_CHAIN_RETURN_LOWER_QUALITY_CONTEXTS)) CRYPT_FreeLowerQualityChains(chain); pChain = (PCERT_CHAIN_CONTEXT)chain; - if (!pChain->TrustStatus.dwErrorStatus) - CRYPT_VerifyChainRevocation(pChain, pTime, pChainPara, dwFlags); + CRYPT_VerifyChainRevocation(pChain, pTime, hAdditionalStore, + pChainPara, dwFlags); CRYPT_CheckUsages(pChain, pChainPara); TRACE_(chain)("error status: %08x\n", pChain->TrustStatus.dwErrorStatus);
1
0
0
0
Marcus Meissner : winspool.drv: Check return value of EnumPrintersA.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: c7f158824f41f37168222cb09a12c385d98315c3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c7f158824f41f37168222cb09…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Oct 24 11:09:42 2010 +0100 winspool.drv: Check return value of EnumPrintersA. --- dlls/winspool.drv/info.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 4a084d1..4ffe092 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -964,8 +964,7 @@ void WINSPOOL_LoadSystemPrinters(void) printers AddPrinter takes a while. So we'll tag all printers that were automatically added last time around, if they still exist we'll leave them be otherwise we'll delete them. */ - EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 5, NULL, 0, &needed, &num); - if(needed) { + if (EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 5, NULL, 0, &needed, &num) && needed) { PRINTER_INFO_5A* pi = HeapAlloc(GetProcessHeap(), 0, needed); if(EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 5, (LPBYTE)pi, needed, &needed, &num)) { for(i = 0; i < num; i++) {
1
0
0
0
Marcus Meissner : regedit: Fixed a wrong buffer size.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: e2eb5e2348dd974c5e87ae53f8053039319dd1d1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e2eb5e2348dd974c5e87ae53f…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Oct 24 14:26:15 2010 +0200 regedit: Fixed a wrong buffer size. --- programs/regedit/tests/regedit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c index da8b1e0..2002e64 100644 --- a/programs/regedit/tests/regedit.c +++ b/programs/regedit/tests/regedit.c @@ -142,7 +142,7 @@ static void r_verify_reg_wsz(unsigned line, HKEY key, const char *subkey, return; MultiByteToWideChar(CP_ACP, 0, value_name, -1, value_nameW, - sizeof(value_nameW)); + sizeof(value_nameW)/sizeof(value_nameW[0])); fnd_len = sizeof(fnd_value); lr = RegQueryValueExW(fnd_key, value_nameW, NULL, &fnd_type,
1
0
0
0
Marcus Meissner : wineboot: Fixed 2 buffer sizes.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: a2dfa7d8a6cae4ab651d2e7ba06cc01f5781d7c4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a2dfa7d8a6cae4ab651d2e7ba…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Oct 24 12:32:26 2010 +0200 wineboot: Fixed 2 buffer sizes. --- programs/wineboot/wineboot.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index 92331ee..4407e17 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -351,7 +351,7 @@ static void create_volatile_environment_registry_key(void) set_reg_value( hkey, HomeDriveW, path ); } - size = sizeof(path); + size = sizeof(path)/sizeof(path[0]); if (GetUserNameW( path, &size )) set_reg_value( hkey, UserNameW, path ); set_reg_value( hkey, HomeShareW, EmptyW ); @@ -360,7 +360,7 @@ static void create_volatile_environment_registry_key(void) if (SUCCEEDED(hr)) set_reg_value( hkey, LocalAppDataW, path ); - size = sizeof(computername) - 2; + size = (sizeof(computername)/sizeof(WCHAR)) - 2; if (GetComputerNameW(&computername[2], &size)) { computername[0] = computername[1] = '\\';
1
0
0
0
Marcus Meissner : ipconfig: Fixed buffer size to MultiByteToWideChar.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: 243d458909185a75fd86d0c8efa5cebaf92b5170 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=243d458909185a75fd86d0c8e…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Oct 24 12:26:47 2010 +0200 ipconfig: Fixed buffer size to MultiByteToWideChar. --- programs/ipconfig/ipconfig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/ipconfig/ipconfig.c b/programs/ipconfig/ipconfig.c index b6eb5f0..50f7e6c 100644 --- a/programs/ipconfig/ipconfig.c +++ b/programs/ipconfig/ipconfig.c @@ -289,7 +289,7 @@ static void print_full_information(void) { WCHAR hostnameW[MAX_HOSTNAME_LEN + 4]; - MultiByteToWideChar(CP_ACP, 0, info->HostName, -1, hostnameW, sizeof(hostnameW)); + MultiByteToWideChar(CP_ACP, 0, info->HostName, -1, hostnameW, sizeof(hostnameW)/sizeof(hostnameW[0])); print_field(STRING_HOSTNAME, hostnameW); /* FIXME: Output primary DNS suffix. */
1
0
0
0
Marcus Meissner : shell32: Pass correct size to MultiByteToWideChar.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: f5518eb3d861a7e06a97bf638886425e42941a19 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f5518eb3d861a7e06a97bf638…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Oct 24 12:04:12 2010 +0200 shell32: Pass correct size to MultiByteToWideChar. --- dlls/shell32/tests/brsfolder.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/tests/brsfolder.c b/dlls/shell32/tests/brsfolder.c index e9a6e2c..16d4597 100644 --- a/dlls/shell32/tests/brsfolder.c +++ b/dlls/shell32/tests/brsfolder.c @@ -198,7 +198,7 @@ static void test_click_make_new_folder_button(void) bi.lpfn = create_new_folder_callback; /* Use test folder as the root folder for dialog box */ MultiByteToWideChar(CP_UTF8, 0, test_folder_path, MAX_PATH, - test_folder_pathW, MAX_PATH*sizeof(WCHAR)); + test_folder_pathW, MAX_PATH); SHGetDesktopFolder(&test_folder_object); test_folder_object->lpVtbl->ParseDisplayName(test_folder_object, NULL, NULL, test_folder_pathW, 0UL, &test_folder_pidl, 0UL);
1
0
0
0
Marcus Meissner : comdlg32: Fixed bad size to GetModuleFilenameW.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: 5b09820d7cb360233197e25216553549fbb37711 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5b09820d7cb360233197e2521…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Oct 24 11:08:30 2010 +0200 comdlg32: Fixed bad size to GetModuleFilenameW. --- dlls/comdlg32/filedlg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index 01b068e..2687029 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -2070,7 +2070,7 @@ static void FILEDLG95_MRU_save_filename(LPCWSTR filename) HKEY hkey; /* get the current executable's name */ - if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path))){ + if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path)/sizeof(module_path[0]))) { WARN("GotModuleFileName failed: %d\n", GetLastError()); return; } @@ -2157,7 +2157,7 @@ static void FILEDLG95_MRU_load_filename(LPWSTR stored_path) WCHAR module_path[MAX_PATH], *module_name; /* get the current executable's name */ - if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path))){ + if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path)/sizeof(module_path[0]))) { WARN("GotModuleFileName failed: %d\n", GetLastError()); return; }
1
0
0
0
Nikolay Sivov : oleaut32: Fix properties type conversion on property bag load.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: 2c91ccede63b8352f349e2ed7103ef3ab6b54aab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2c91ccede63b8352f349e2ed7…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Oct 24 00:06:19 2010 +0400 oleaut32: Fix properties type conversion on property bag load. --- dlls/oleaut32/olefont.c | 87 ++++++++++++++++++++++------------------------- 1 files changed, 41 insertions(+), 46 deletions(-) diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index 24d18b7..31575ee 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -2131,111 +2131,106 @@ static HRESULT WINAPI OLEFontImpl_IPersistPropertyBag_Load( static const WCHAR sAttrUnderline[] = {'U','n','d','e','r','l','i','n','e',0}; static const WCHAR sAttrItalic[] = {'I','t','a','l','i','c',0}; static const WCHAR sAttrStrikethrough[] = {'S','t','r','i','k','e','t','h','r','o','u','g','h',0}; - VARIANT rawAttr; - VARIANT valueAttr; - HRESULT iRes = S_OK; OLEFontImpl *this = impl_from_IPersistPropertyBag(iface); + VARIANT value; + HRESULT iRes; - VariantInit(&rawAttr); - VariantInit(&valueAttr); + VariantInit(&value); - if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrName, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrName, &value, pErrorLog); + if (iRes == S_OK) + { + iRes = VariantChangeType(&value, &value, 0, VT_BSTR); if (iRes == S_OK) - { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_BSTR); - if (iRes == S_OK) - iRes = IFont_put_Name((IFont *)this, V_BSTR(&valueAttr)); - } - else if (iRes == E_INVALIDARG) - iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + iRes = IFont_put_Name((IFont *)this, V_BSTR(&value)); } + else if (iRes == E_INVALIDARG) + iRes = S_OK; + + VariantClear(&value); if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrSize, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrSize, &value, pErrorLog); if (iRes == S_OK) { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_CY); + iRes = VariantChangeType(&value, &value, 0, VT_CY); if (iRes == S_OK) - iRes = IFont_put_Size((IFont *)this, V_CY(&valueAttr)); + iRes = IFont_put_Size((IFont *)this, V_CY(&value)); } else if (iRes == E_INVALIDARG) iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + + VariantClear(&value); } if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrCharset, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrCharset, &value, pErrorLog); if (iRes == S_OK) { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_I2); + iRes = VariantChangeType(&value, &value, 0, VT_I2); if (iRes == S_OK) - iRes = IFont_put_Charset((IFont *)this, V_I2(&valueAttr)); + iRes = IFont_put_Charset((IFont *)this, V_I2(&value)); } else if (iRes == E_INVALIDARG) iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + + VariantClear(&value); } if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrWeight, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrWeight, &value, pErrorLog); if (iRes == S_OK) { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_I2); + iRes = VariantChangeType(&value, &value, 0, VT_I2); if (iRes == S_OK) - iRes = IFont_put_Weight((IFont *)this, V_I2(&valueAttr)); + iRes = IFont_put_Weight((IFont *)this, V_I2(&value)); } else if (iRes == E_INVALIDARG) iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + VariantClear(&value); } if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrUnderline, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrUnderline, &value, pErrorLog); if (iRes == S_OK) { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_BOOL); + iRes = VariantChangeType(&value, &value, 0, VT_BOOL); if (iRes == S_OK) - iRes = IFont_put_Underline((IFont *)this, V_BOOL(&valueAttr)); + iRes = IFont_put_Underline((IFont *)this, V_BOOL(&value)); } else if (iRes == E_INVALIDARG) iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + + VariantClear(&value); } if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrItalic, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrItalic, &value, pErrorLog); if (iRes == S_OK) { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_BOOL); + iRes = VariantChangeType(&value, &value, 0, VT_BOOL); if (iRes == S_OK) - iRes = IFont_put_Italic((IFont *)this, V_BOOL(&valueAttr)); + iRes = IFont_put_Italic((IFont *)this, V_BOOL(&value)); } else if (iRes == E_INVALIDARG) iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + + VariantClear(&value); } if (iRes == S_OK) { - iRes = IPropertyBag_Read(pPropBag, sAttrStrikethrough, &rawAttr, pErrorLog); + iRes = IPropertyBag_Read(pPropBag, sAttrStrikethrough, &value, pErrorLog); if (iRes == S_OK) { - iRes = VariantChangeType(&rawAttr, &valueAttr, 0, VT_BOOL); + iRes = VariantChangeType(&value, &value, 0, VT_BOOL); if (iRes == S_OK) - IFont_put_Strikethrough((IFont *)this, V_BOOL(&valueAttr)); + IFont_put_Strikethrough((IFont *)this, V_BOOL(&value)); } else if (iRes == E_INVALIDARG) iRes = S_OK; - VariantClear(&rawAttr); - VariantClear(&valueAttr); + + VariantClear(&value); } if (FAILED(iRes))
1
0
0
0
Nikolay Sivov : oleaut32: Remove some useless null checks.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: 71a3fe3c9452fb5c54291ca2e4204a5e19919d67 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=71a3fe3c9452fb5c54291ca2e…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sat Oct 23 23:23:07 2010 +0400 oleaut32: Remove some useless null checks. --- dlls/oleaut32/olefont.c | 11 +---------- dlls/oleaut32/tests/olefont.c | 3 +++ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index 3c8c91f..24d18b7 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -480,15 +480,6 @@ static HRESULT WINAPI OLEFontImpl_QueryInterface( OLEFontImpl *this = (OLEFontImpl *)iface; TRACE("(%p)->(%s, %p)\n", this, debugstr_guid(riid), ppvObject); - /* - * Perform a sanity check on the parameters. - */ - if ( (this==0) || (ppvObject==0) ) - return E_INVALIDARG; - - /* - * Initialize the return parameter. - */ *ppvObject = 0; /* @@ -1143,7 +1134,7 @@ static HRESULT WINAPI OLEFontImpl_IsEqual( INT ret; INT left_len,right_len; - if((iface == NULL) || (pFontOther == NULL)) + if(pFontOther == NULL) return E_POINTER; else if (left->description.cySize.s.Lo != right->description.cySize.s.Lo) return S_FALSE; diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index 7c0a112..0b08432 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -127,6 +127,9 @@ static void test_QueryInterface(void) IFont* font = NULL; LONG ret; + hres = pOleCreateFontIndirect(NULL, &IID_IFont, NULL); + ok(hres == E_POINTER, "got 0x%08x\n", hres); + hres = pOleCreateFontIndirect(NULL, &IID_IFont, &pvObj); font = pvObj;
1
0
0
0
Nikolay Sivov : shlwapi: Allow IUnknown_SetSite() to be requested by name.
by Alexandre Julliard
25 Oct '10
25 Oct '10
Module: wine Branch: master Commit: 88136e689738e64be397352fe563f4cf8f5ed360 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=88136e689738e64be397352fe…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sat Oct 23 22:17:21 2010 +0400 shlwapi: Allow IUnknown_SetSite() to be requested by name. --- dlls/shlwapi/shlwapi.spec | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/shlwapi.spec b/dlls/shlwapi/shlwapi.spec index 4a4f594..60eef7a 100644 --- a/dlls/shlwapi/shlwapi.spec +++ b/dlls/shlwapi/shlwapi.spec @@ -171,7 +171,7 @@ 171 stdcall -noname SHIsSameObject(ptr ptr) 172 stdcall -noname IUnknown_GetWindow(ptr ptr) 173 stdcall -noname IUnknown_SetOwner(ptr ptr) -174 stdcall -noname IUnknown_SetSite(ptr ptr) +174 stdcall -ordinal IUnknown_SetSite(ptr ptr) 175 stdcall -noname IUnknown_GetClassID(ptr ptr) 176 stdcall -noname IUnknown_QueryService(ptr ptr ptr ptr) 177 stdcall -noname SHLoadMenuPopup(ptr wstr)
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
118
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Results per page:
10
25
50
100
200