[W32KNAPI_APITEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 30 Aug 2014 12:03:58 +0000 (12:03 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 30 Aug 2014 12:03:58 +0000 (12:03 +0000)
* Fix a memset call. CID 1223160.
CORE-7975

svn path=/trunk/; revision=63988

rostests/apitests/w32knapi/ntgdi/NtGdiCreateDIBSection.c

index 9375ef2..04b3ba6 100644 (file)
@@ -417,7 +417,7 @@ printf("dib with bitfileds: %p\n", hbmp);
     pbV5h->bV5BlueMask = 0;
     pbV5h->bV5AlphaMask = 0;
     pbV5h->bV5CSType = 0;
-    memset(&pbV5h->bV5Endpoints, sizeof(CIEXYZTRIPLE), 0);
+    memset(&pbV5h->bV5Endpoints, 0, sizeof(CIEXYZTRIPLE));
     pbV5h->bV5GammaRed = 0;
     pbV5h->bV5GammaGreen = 0;
     pbV5h->bV5GammaBlue = 0;