Austin English : shell32/tests: Don't check return values inside of if(0) ( LLVM/Clang).
Alexandre Julliard
julliard at winehq.org
Wed Feb 9 15:30:13 CST 2011
Module: wine
Branch: master
Commit: fe067c53ddb956874b14cdfad1c293c32a7f24f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe067c53ddb956874b14cdfad1c293c32a7f24f8
Author: Austin English <austinenglish at gmail.com>
Date: Tue Feb 8 16:04:30 2011 -0800
shell32/tests: Don't check return values inside of if(0) (LLVM/Clang).
---
dlls/shell32/tests/ebrowser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c
index a8da1cc..db302ad 100644
--- a/dlls/shell32/tests/ebrowser.c
+++ b/dlls/shell32/tests/ebrowser.c
@@ -749,8 +749,8 @@ static void test_initialization(void)
if(0)
{
/* Crashes on Windows 7 */
- hr = IExplorerBrowser_Initialize(peb, NULL, NULL, NULL);
- hr = IExplorerBrowser_Initialize(peb, hwnd, NULL, NULL);
+ IExplorerBrowser_Initialize(peb, NULL, NULL, NULL);
+ IExplorerBrowser_Initialize(peb, hwnd, NULL, NULL);
}
ZeroMemory(&rc, sizeof(RECT));
@@ -1227,7 +1227,7 @@ static void test_Advise(void)
{
/* Using unadvise with a previously unadvised cookie results
* in a crash. */
- hr = IExplorerBrowser_Unadvise(peb, cookies[5]);
+ IExplorerBrowser_Unadvise(peb, cookies[5]);
}
/* Remove the rest. */
@@ -1566,7 +1566,7 @@ static void test_GetCurrentView(void)
if(0)
{
/* Crashes under Windows 7 */
- hr = IExplorerBrowser_GetCurrentView(peb, NULL, NULL);
+ IExplorerBrowser_GetCurrentView(peb, NULL, NULL);
}
hr = IExplorerBrowser_GetCurrentView(peb, NULL, (void**)&punk);
ok(hr == E_FAIL, "Got 0x%08x\n", hr);
More information about the wine-cvs
mailing list