Austin English : msi/tests: Don't check return values inside of if(0) (LLVM /Clang).
Alexandre Julliard
julliard at winehq.org
Fri Feb 11 11:16:34 CST 2011
Module: wine
Branch: master
Commit: 5e92277f97aac84354e5f4acd835fc81dbdad677
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e92277f97aac84354e5f4acd835fc81dbdad677
Author: Austin English <austinenglish at gmail.com>
Date: Thu Feb 10 13:27:40 2011 -0800
msi/tests: Don't check return values inside of if(0) (LLVM/Clang).
---
dlls/msi/tests/automation.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c
index 46178b8..a6f1ddb 100644
--- a/dlls/msi/tests/automation.c
+++ b/dlls/msi/tests/automation.c
@@ -661,10 +661,10 @@ static void test_dispatch(void)
/* Test invoking this function (without parameters passed) */
if (0) /* All of these crash MSI on Windows XP */
{
- hr = IDispatch_Invoke(pInstaller, dispid, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, NULL, NULL, NULL, NULL);
- hr = IDispatch_Invoke(pInstaller, dispid, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, NULL, NULL, &excepinfo, NULL);
+ IDispatch_Invoke(pInstaller, dispid, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, NULL, NULL, NULL, NULL);
+ IDispatch_Invoke(pInstaller, dispid, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, NULL, NULL, &excepinfo, NULL);
VariantInit(&varresult);
- hr = IDispatch_Invoke(pInstaller, dispid, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, NULL, &varresult, &excepinfo, NULL);
+ IDispatch_Invoke(pInstaller, dispid, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, NULL, &varresult, &excepinfo, NULL);
}
/* Try with NULL params */
@@ -2289,7 +2289,7 @@ static void test_Installer_Products(BOOL bProductInstalled)
if (0) /* Crashes on Windows XP */
{
/* IEnumVARIANT::Clone, NULL pointer */
- hr = IEnumVARIANT_Clone(pEnum, NULL);
+ IEnumVARIANT_Clone(pEnum, NULL);
}
/* IEnumVARIANT::Clone */
More information about the wine-cvs
mailing list