https://git.reactos.org/?p=reactos.git;a=commitdiff;h=84a9284a3f1ddcbd8892b556da6955b6fadc8d08

commit 84a9284a3f1ddcbd8892b556da6955b6fadc8d08
Author:     Serge Gautherie <reactos-git_serge_171...@gautherie.fr>
AuthorDate: Tue Feb 13 11:23:25 2018 +0100
Commit:     Mark Jansen <mark.jan...@reactos.org>
CommitDate: Wed Mar 7 20:42:14 2018 +0100

    [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
---
 modules/rostests/apitests/apphelp/env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/rostests/apitests/apphelp/env.c 
b/modules/rostests/apitests/apphelp/env.c
index 2ec1a46faf..74e7d3b5dc 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);
     }

Reply via email to