[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
This commit is contained in:
Serge Gautherie 2018-02-13 11:23:25 +01:00 committed by Mark Jansen
parent 601871955f
commit 84a9284a3f
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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);
}