=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: shlwapi/tests: Avoid preprocessor check to ensure it compiles.

Alexandre Julliard julliard at winehq.org
Mon Jan 27 13:32:54 CST 2014


Module: wine
Branch: master
Commit: e98844e5c92e47a5a8d15e70007ff8f06982cb42
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e98844e5c92e47a5a8d15e70007ff8f06982cb42

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Jan 24 23:07:39 2014 +0100

shlwapi/tests: Avoid preprocessor check to ensure it compiles.

---

 dlls/shlwapi/tests/istream.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/tests/istream.c b/dlls/shlwapi/tests/istream.c
index bacd0e6..95485b9 100644
--- a/dlls/shlwapi/tests/istream.c
+++ b/dlls/shlwapi/tests/istream.c
@@ -283,10 +283,11 @@ static void test_SHCreateStreamOnFileA(DWORD mode, DWORD stgm)
        "or HRESULT_FROM_WIN32(ERROR_BAD_PATHNAME), got 0x%08x\n", ret);
     ok(stream == NULL, "SHCreateStreamOnFileA: expected a NULL IStream object, got %p\n", stream);
 
-#if 0 /* This test crashes on WinXP SP2 */
+if (0) /* This test crashes on WinXP SP2 */
+{
     ret = (*pSHCreateStreamOnFileA)(test_file, mode | stgm, NULL);
     ok(ret == E_INVALIDARG, "SHCreateStreamOnFileA: expected E_INVALIDARG, got 0x%08x\n", ret);
-#endif
+}
 
     stream = NULL;
     ret = (*pSHCreateStreamOnFileA)(test_file, mode | STGM_CONVERT | stgm, &stream);




More information about the wine-cvs mailing list