[PSEH_TEST]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 12 Sep 2014 10:31:48 +0000 (10:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 12 Sep 2014 10:31:48 +0000 (10:31 +0000)
- Fix incorrect size in memcmp. Spotted by clang

svn path=/trunk/; revision=64123

rostests/tests/pseh2/psehtest.c

index 4325ab2..dbd0e1e 100644 (file)
@@ -2620,7 +2620,7 @@ static
 DECLSPEC_NOINLINE
 int sanity_check(int ret, struct volatile_context * before, struct volatile_context * after)
 {
-       if(ret && memcmp(before, after, sizeof(before)))
+       if(ret && memcmp(before, after, sizeof(*before)))
        {
                trace("volatile context corrupted\n");
                return 0;