Commit 15a7bcb3 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

comctl32/tests: Replace some '#if 0's with 'if (0)'s.

Fix the code so it compiles without warnings.
parent df299b73
...@@ -165,9 +165,11 @@ static void test_MRUListA(void) ...@@ -165,9 +165,11 @@ static void test_MRUListA(void)
if (!pCreateMRUListA || !pFreeMRUList || !pAddMRUStringA) if (!pCreateMRUListA || !pFreeMRUList || !pAddMRUStringA)
return; return;
#if 0 /* Create (NULL) - crashes native */ if (0)
{
/* Create (NULL) - crashes native */
hMRU = pCreateMRUListA(NULL); hMRU = pCreateMRUListA(NULL);
#endif }
/* Create (size too small) */ /* Create (size too small) */
mruA.cbSize = sizeof(mruA) - 2; mruA.cbSize = sizeof(mruA) - 2;
...@@ -224,14 +226,15 @@ static void test_MRUListA(void) ...@@ -224,14 +226,15 @@ static void test_MRUListA(void)
iRet, GetLastError()); iRet, GetLastError());
/* Add (NULL string) */ /* Add (NULL string) */
#if 0 if (0)
{
/* Some native versions crash when passed NULL or fail to SetLastError() */ /* Some native versions crash when passed NULL or fail to SetLastError() */
SetLastError(0); SetLastError(0);
iRet = pAddMRUStringA(hMRU, NULL); iRet = pAddMRUStringA(hMRU, NULL);
ok(iRet == 0 && GetLastError() == ERROR_INVALID_PARAMETER, ok(iRet == 0 && GetLastError() == ERROR_INVALID_PARAMETER,
"AddMRUStringA(NULL str) expected 0,ERROR_INVALID_PARAMETER got %d,%ld\n", "AddMRUStringA(NULL str) expected 0,ERROR_INVALID_PARAMETER got %d,%d\n",
iRet, GetLastError()); iRet, GetLastError());
#endif }
/* Add 3 strings. Check the registry is correct after each add */ /* Add 3 strings. Check the registry is correct after each add */
SetLastError(0); SetLastError(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment