From: Serge Gautherie Date: Tue, 13 Feb 2018 10:23:25 +0000 (+0100) Subject: [APPHELP_APITEST] Fix a Clang-Cl warning about a memcmp() call X-Git-Tag: 0.4.9-RC~660 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=84a9284a3f1ddcbd8892b556da6955b6fadc8d08;ds=sidebyside [APPHELP_APITEST] Fix a Clang-Cl warning about a memcmp() call "warning: argument to 'sizeof' in 'memcmp' call is the same pointer type 'SDBQUERYRESULT_VISTA *' (aka 'struct tagSDBQUERYRESULT_VISTA *') as the destination; expected 'SDBQUERYRESULT_VISTA' (aka 'struct tagSDBQUERYRESULT_VISTA') or an explicit length [-Wsizeof-pointer-memaccess]" CORE-14306 --- diff --git a/modules/rostests/apitests/apphelp/env.c b/modules/rostests/apitests/apphelp/env.c index 2ec1a46faf0..74e7d3b5dc1 100644 --- a/modules/rostests/apitests/apphelp/env.c +++ b/modules/rostests/apitests/apphelp/env.c @@ -716,7 +716,7 @@ static void Test_Shimdata(SDBQUERYRESULT_VISTA* result, const WCHAR* szLayer) output->dwCustomSDBMap = input->dwCustomSDBMap; output->rgGuidDB[0] = input->rgGuidDB[0]; } - ok(!memcmp(&result2, result, sizeof(result)), "Expected result2 to equal result for %s\n", wine_dbgstr_w(szLayer)); + ok(!memcmp(&result2, result, sizeof(*result)), "Expected result2 to equal result for %s\n", wine_dbgstr_w(szLayer)); RtlFreeHeap(GetProcessHeap(), 0, pData); }